The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
This chapter describes the Cisco NX-OS Policy Based Routing (PBR) show commands.
To display the route policy information, use the show ip policy command.
show ip policy [vrf vrf-name ]
|
|
---|---|
This example shows the policies attached to interfaces:
switch(config)#
show ip policy
Interface Route-map Status VRF-name
Eternet2/45 floor1 Inactive --
|
|
---|---|
To display the route policy information, use the show ipv6 policy command.
|
|
---|---|
This example shows the policies attached to interfaces:
|
|
---|---|
To indicate where to output packets that pass a match clause of a route map for policy routing, use the set ipv6 next-hop command in route-map configuration mode. To delete an entry, use the no form of this command.
set ipv6 next-hop { ipv6-address [... ipv6 - address ]}
no set ipv6 next-hop { ipv6-address [... ip v6- address ]}
IPv6 address of the next hop to which packets are output. It need not be an adjacent router. You can configure one or more IP addresses. |
Route-map configuration (config-route-map)
|
|
---|---|
An ellipsis (...) in the command syntax indicates that your command input can include multiple values for the ip-address argument.
Use the ipv6 policy route-map command and the match and set commands to define the conditions for policy routing packets. The ipv6 policy route-map command identifies a route map by name. 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 occurs. The set commands specify the set actions—the particular routing actions to perform if the criteria enforced by the match commands are met.
If the first next hop specified with the set ipv6 next-hop command is down, the optionally specified IP addresses are tried in turn.
This example shows how to configure a route map that sets the IPv6 next-hop address:
switch(config-route-map)# match ipv6 address test
switch(config-route-map)# set ipv6 next-hop 2001:0DB8::3
switch(config-route-map))# exit
switch(config)# interface externet 2/1