I Commands
This chapter describes the Cisco NX-OS Policy Based Routing (PBR) commands that begin with I.
ip policy route-map
To identify a route map to use the policy routing on an interface, use the ip policy route-map command.
To remove the route map, use the no form of this command.
Syntax Description
Name of the route map. The name can be any alphanumeric string up to 63 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the ip policy route-map command to identify a route map to use for policy routing. Use the route-map command to create the route map. Each route-map command has a list of match and set commands associated with it. The match commands specify the match criteria—the conditions under which policy routing is allowed for the interface, based on the destination IP address of the packet. The set commands specify the set actions—the particular policy routing actions to perform if the criteria enforced by the match commands are met. The no ip policy route-map command deletes the pointer to the route map.
You can perform policy-based routing on any match criteria that can be defined in an expanded IP access list when using the match ip address command and referencing an expanded IP access list.
You must enable policy-based routing with the feature pbr command before you can use the ip policy route-map command.
Examples
This example shows how to configure a policy-based route map to an interface:
|
|
---|---|
ipv6 policy route-map
To identify a route map to use the policy routing on an interface, use the ip policy route-map command.
To remove the route map, use the no form of this command.
Syntax Description
Name of the route map. The name can be any alphanumeric string up to 63 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
Use the ipv6 policy route-map command to identify a route map to use for policy routing on an IPv6 interface. Use the route-map command to create the route map. Each route-map command has a list of match and set commands associated with it. The match commands specify the match criteria—the conditions under which policy routing is allowed for the interface, based on the destination IPv6 address of the packet. The set commands specify the set actions—the particular policy routing actions to perform if the criteria enforced by the match commands are met. The no ipv6 policy route-map command deletes the pointer to the route map.
You can perform policy-based routing on any match criteria that can be defined in an IPv6 access list when using the match ipv6 address command and referencing an IPv6 access list.
You must enable policy-based routing with the feature pbr command before you can use the ipv6 policy route-map command.
Examples
This example shows how to configure a policy-based route map to an interface:
|
|
---|---|