Related
Commands
show ip interface
— displays the interface routing status and configuration.
ip route
Assign a static route to the switch.
Syntax
ip route {
destination mask
{
ip-address
| interface [
ip-address
]
| [
distance
] | [permanent] | tag
tag-value
}}
To delete a specific static route, use the
no ip route
destination mask
command.
To delete all routes matching a certain route, use the
no ip route
destination mask
command.
Parameters
destination
Enter the IP address in dotted decimal format of the
destination device.
mask
Enter the mask in the slash prefix format (/x) of the
destination IP address.
ip-address
Enter the IP address of the forwarding router in dotted
decimal format.
interface
Enter the keyword
interface
then the slot/port number.
• For a Loopback interface, enter the keyword
loopback
then a number from zero (0) to 16383.
• For the null interface, enter the keyword
null
then zero
(0).
• For a Port Channel interface, enter the keywords
port-
channel
then a number. The range is from 1 to 128.
• For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet
then the slot/port information.
• For a 40-Gigabit Ethernet interface, enter the keyword
fortyGigE
then the slot/port information.
• For a VLAN, enter the keyword
vlan
then a number from
1 to 4094.
distance
(OPTIONAL) Enter the value of the distance metric assigned
to the route. The range is from 1 to 255.
permanent
(OPTIONAL) Enter the keyword
permanent
to specify that
the route must not be removed even if the interface assigned
to that route goes down. The route must be currently active
to be installed in the routing table. If you disable the
interface, the route is removed from the routing table.
tag
tag-value
(OPTIONAL) Enter the keyword
tag
then a number to assign
to the route. The range is from 1 to 4294967295.
632
IPv4 Routing