CLI Reference Guide

1050 IP Routing Commands
Default Configuration
No route maps are configured by default.
Command Mode
Interface Configuration (VLAN) mode
User Guidelines
Policy-based routing must be configured on the VLAN interface that receives
the packets, not on the VLAN interface from which the packets are sent.
Packets matching a deny route map are routed using the routing table. Policy
maps with no set clause are ignored.
Example
Considering equal-access as a route-map configured earlier, the following
sequence is an example of how a route map is applied to a VLAN.
console(config)#interface vlan 10
console(config-if-vlan10)#ip policy route-map equal-access
ip route
Use the ip route command in Global Configuration mode to configure a
static route. Use the no form of the command to delete the static route. The
IP route command sets a value for the route preference. Among routes to the
same destination, the route with the lowest preference value is the route
entered into the forwarding database. Specifying the preference of a static
route controls whether a static route is more or less preferred than routes from
dynamic routing protocols. The preference also controls whether a static
route is more or less preferred than other static routes to the same
destination.
Syntax
ip route
networkaddr
{
subnetmask
|
prefix-length
}
nexthopip
[
preference
]
no ip route
networkaddr
{
subnetmask
|
prefix-length
}
nexthopip
[
preference
]
networkaddr
— IP address of destination interface.
subnetmask
— Subnet mask of destination interface.
2CSNXXX_SWUM200.book Page 1050 Tuesday, December 10, 2013 1:22 PM