Reference Guide

IPv4 Routing | 671
Usage
Information
This command is available for physical interfaces and port-channel interfaces on the E-Series.
ip route
c e s
Assign a static route to the switch.
Syntax
ip route vrf {vrf instance} 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 {address | interface
[
ip-address]} command.
To delete all routes matching a certain route, use the
no ip route destination mask command.
Parameters
Note: This command is not supported on default VLAN (default vlan-id command).
vrf name (OPTIONAL) E-Series Only: Enter the keyword vrf followed by the VRF
Instances name to tie the static route to the VRF instance.
destination Enter the IP address in dotted decimal format of the destination device.
mask
Enter the mask in slash prefix formation (/x) of the destination device’s IP
address.
ip-address
Enter the IP address in dotted decimal format of the forwarding router.
interface
Enter the following keywords and slot/port or number information:
For a 1-Gigabit Ethernet interface, enter the keyword GigabitEthernet
followed by the slot/port information.
For a loopback interface, enter the keyword loopback followed by a
number from zero (0) to 16383.
For the null interface, enter the keyword null followed by zero (0).
For a Port Channel interface, enter the keyword port-channel followed by
a number:
C-Series and S-Series Range: 1-128
E-Series Range: 1 to 255 for TeraScale and 1 to 512 for ExaScale.
For a SONET interface, enter the keyword sonet followed by the sonet
followed by the slot/port information.
For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet followed by the slot/port information.
For a 40-Gigabit Ethernet interface, enter the keyword fortyGigE followed
by the slot/port information.
For a VLAN, enter the keyword vlan followed by a number from 1 to 4094.
distance
(OPTIONAL) Enter a number as the distance metric assigned to the route.
Range: 1 to 255