5 ip route – CANOGA PERKINS CanogaOS Command Reference User Manual
Page 216
![background image](/manuals/651410/216/background.png)
CanogaOS Command Line Reference
Revision 1.02
Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches
Page 216 of 855
Examples
The following is sample output from the clear ip route static command:
Switch# clear ip route static
Related Commands
ip route
12.5 ip route
To establish static routes, use the ip route command in global configuration mode. To remove static
routes, use the no form of this command.
Command Syntax
ip route [vrf name] {prefix mask | prefix/prefix-length} ip-address [distance]
vrf name
VRF instance name.
prefix
IP route prefix for the destination.
mask
Prefix mask for the destination.
prefix-length
Prefix length for the destination.
ip-address
IP address of the next hop that can be used to reach that network.
distance
(Optional) An administrative distance. The default administrative distance
for a static route is 1.
Command Mode
Privileged EXEC
Default
No static routes are established.
Usage
The establishment of a static route is appropriate when the switch cannot dynamically build a route to
the destination.
Examples
The following example routes packets for network 172.31.0.0 to a switch at 172.31.6.6:
Switch(config)# ip route 172.31.0.0 255.255.0.0 172.31.6.6
Related Commands
clear ip route static