Version 7.6.1.0 Introduced on the S-Series.
Version 7.5.1.0 Introduced on the C-Series.
pre-Version
6.1.1.0
Introduced on the E-Series.
Related
Commands
show ip interface — displays the interface routing status and configuration.
ip route
Assign a static route to the switch.
S4810
Syntax
ip route [vrf vrf-name] ip-address mask {ip-address | interface
[ip-address]} [distance] [permanent] [tag tag-value] [vrf vrf-
name]
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
vrf vrf-name (Optoinal) Enter the keyword vrf and then the name of the
VRF to configure a static route corresponding to that VRF.
Use this VRF option after the
ip route keyword to
configure a static route on that particular VRF.
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 ip-
address
Enter the keyword interface then the IP address.
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.
872
IPv4 Routing