ip policy route-map

Use this command to identify a route map to use for policy-based routing on an interface specified by route-map-name. Policy-based routing is configured on the interface that receives the packets, not on the interface from which the packets are sent.

When a route-map applied on the interface is changed, that is, if new statements are added to the route-map or match/set terms are added to or removed from the route-map statement, and also if the route-map that is applied on an interface is removed, the route-map needs to be removed from the interface and added back again in order for the changed route-map configuration to take effect.

A route-map statement should contain eligible match/set conditions for policy-based routing in order to be applied to hardware.

A route-map statement should contain at least one match condition and one set condition as specified above for it to be eligible to be applied to hardware. If not, the route-map is not applied to hardware.

When a route-map is applied on a VLAN interface and a DiffServ policy is applied on a member port of the same VLAN interface, the port policy takes priority over the VLAN policy.

Note:

Route-map and DiffServ cannot work on the same interface.

Format ip policy route-map-name
Mode Interface Config

Example: The following is an example of this command.

(Routing) (Config)#interface 1/0/1
(Routing) (Interface 1/0/1)#
(Switching) (Interface 1/0/1)# #ip policy route-map equal-access

To disable policy based routing from an interface, use the no form of this command:

no ip policy route-map route-map-name

When a route-map has both IPv4 and IPv6 statements provisioned and the user applies the route-map using IP policy command, the IPv6 statements in the route-map will not take effect. A message will be displayed to the user to indicate this.

Example:

(Routing) (Interface vlan 40)#ip policy route-map rm4

IPv6 statements in this route-map will not be applied using IPv4 Policy Based Routing.

www.lancom-systems.com

LANCOM Systems GmbH | A Rohde & Schwarz Company | Adenauerstr. 20/B2 | 52146 Wuerselen | Germany | E‑Mail info@lancom.de

LANCOM Logo