User Manual
IP address
Set this to 0.0.0.0 if specifying the default gateway
mask : <1-31>
Number of mask bits
Set this to 0 if specifying the default gateway
netmask : A.B.C.D
Netmask in address format
Set this to 0.0.0.0 if specifying the default gateway
gateway : A.B.C.D
IP address of gateway
number : <1-255>
Administrative distance (priority order when selecting route) (if omitted: 1)
Lower numbers have higher priority.
[Initial value]
none
[Input mode]
global configuration mode
[Description]
Adds a static route for IP.
If this command is executed with the "no" syntax, the specified route is deleted.
[Example]
Set the default gateway to 192.168.1.1.
SWP1(config)#ip route 0.0.0.0/0 192.168.1.1
For the destination 172.16.0.0/16, set the gateway to 192.168.2.1.
SWP1(config)#ip route 172.16.0.0 255.255.0.0 192.168.2.1
6.2.2 Show IP Forwarding Information Base
[Syntax]
show ip route [ip_address[/mask]]
[Parameter]
ip_address : A.B.C.D
IP address
mask : <0-32>
Number of mask bits (if omitted: 32)
[Input mode]
unprivileged EXEC mode, priviledged EXEC mode
[Description]
Shows the IP Forwarding Information Base (FIB).
If the IP address is omitted, the entire content of the FIB is shown.
If the IP address or network address is specified, detailed information for the routing entry that matches the destination is
shown.
[Example]
Show the entire IP forwarding information base.
SWP1>show ip route
Codes: C - connected, S - static
* - candidate default
Gateway of last resort is 192.168.100.1 to network 0.0.0.0
Command Reference | IPv4 | 61