CLI Guide

Layer 3 Routing Commands 1517
no ip route distance integer
vrf-name—The name of the VRF associated with the routing table context
used by the command. If no vrf is specified, the global routing table
context is used.
integer — Specifies the distance (preference) of an individual static route.
(Range 1-255)
Default Configuration
Default value of distance is 1.
Command Mode
Global Configuration mode
User Guidelines
Lower route distance values are preferred when determining the best route.
The VRF identified in the parameter must have been previously created or an
error is returned.
Only IPv4 addresses are supported with the vrf parameter.
This command is only available on the N3000-ON/N3100 switches.
Example
The following example sets the default route metric to 80.
console(config)#ip route distance 80
ip routing
Use the ip routing command in Global Configuration mode to globally
enable IPv4 routing on the router. To disable IPv4 routing globally, use the no
form of the command.
Syntax
ip routing
no ip routing