network route delete
Delete a manually configured network route from the current configuration. This command should be used only on the advice of a network administrator.
NOTE Running this command changes the interface state and causes the ctc service to restart (see Crypto Traffic Controller for QoS).
User Privileges
Users with the following privileges can perform this command:
>Admin
>Operator
Syntax
network route delete <routetype> <ipaddress> -device <netdevice> [-metric <metric>] [-netmask <ipaddress>] [-gateway <ipaddress>] [-force] [-ipv6]
Argument(s) | Shortcut | Description |
---|---|---|
<routetype> |
Set to "network" or "host" for network or host specific routes respectively. Valid values: host, network |
|
<IP_address> |
Specifies the IP address of the target network or host to be deleted. You can specify an IPv4 or IPv6 address. If you are deleting an IPv6 address, you must also include the -ipv6 flag in the command. When entering an IPv6 address, you can use full or shorthand syntax. For example, the following notations are equivalent: >2001:0db3:8ba3:0000:0000:8a5e:03f0:7384 >2001:db3:8ba3::8a5e:3f0:7384 |
|
-device <netdevice> | -d |
Specifies a specific network device for the route. Valid values: eth0, eth1, eth2, eth3, bond0, bond1 |
-force | -f | Force the action without prompting |
-gateway <IP_address> | -g |
Specifies the gateway/router IP address to be deleted, if this is not a locally connected network or host. |
-metric <metric> | -m |
Specifies a routing metric. Range: 0 to 65535 Default: 0 |
-netmask <IP_address> | -n |
Specifies the network mask. Include this option only if you are deleting a network route. If not specified, the default netmask is used. >If you are deleting an IPv4 route, you must specify the network mask in dotted-decimal format (for example, 255.255.255.0) >If you are deleting an IPv6 route, you must specify the prefix length (for example, 64) Default: ><routetype> = network IPv4: 255.255.255.0 IPv6: 64 ><routetype> = host IPv4: 255.255.255.255 IPv6: 128 |
Example
lunash:>network route delete host 123.45.67.89 -device eth2 -metric 1000 NOTICE: The network connection for device eth2 will be restarted for new network settings to take effect. If you are sure that you wish to restart the device connection, then type 'proceed', otherwise type 'quit' > proceed Proceeding... Command Result : Success