Creating Policy Lists for IPv6
The following example creates an IPv6 policy list named routeForIPv6. For information about creating the CLACL used in this example, see the previous sections.
- Create the policy list routeForIPv6.host1(config)#ipv6 policy-list routeForIPv6 host1(config-policy-list)#
- Create the classification group for the CLACL named ipv6tc67
and assign the precedence to the classification group.host1(config-policy-list)#classifier-group ipv6tc67 precedence 75 host1(config-policy-list-classifier-group)#
- Add a rule to color packets as red, and a second rule
that sets the traffic class field of the packets to 7.host1(config-policy-list-classifier-group)#color red host1(config-policy-list-classifier-group)#mark tcfield 7
- Exit Policy List Configuration mode to save the configuration.host1(config-policy-list-classifier-group)#exit host1(config-policy-list)#exit host1(config)#
- Display the policy list.
host1#show policy-list routeForIPv6
Policy Table ------ ----- IPv6 Policy routeForIPv6 Administrative state: enable Reference count: 0 Classifier control list: ipv6tc67, precedence 75 color red mark tc-precedence 7
You use the exception http-redirect command to create an exception rule within a policy classifier group to specify the client application for the destination of packets rather than forwarding them using the forwarding controller (FC).
In lower-numbered releases, the exception http-redirect command only supported the creation of exception rules within IPv4 policy lists. You can now configure the exception http-redirect command to create exception rules within IPv4 and IPv6 policy lists.
The following example creates an IPv6 policy list, epIPv6 for the http-redirect exception:
- Create the policy list epIPv6.host1(config)#ipv6 policy-list epIPv6 host1(config-policy-list)#
- Create the classification group to match all packets.host1(config-policy-list)#classifier-group * host1(config-policy-list-classifier-group)#
- Create an exception policy for http-redirect.host1(config-policy-list-classifier-group)#exception http-redirect
- Exit Policy List Configuration mode to save the configuration.host1(config-policy-list-classifier-group)#exit host1(config-policy-list)#exit host1(config)#
- Display the policy list.
host1#show policy-list epIPv6
Policy Table ------ ----- IPv6 Policy epIPv6 Administrative state: enable Reference count: 0 Classifier control list: *, precedence 100 exception http-redirect
Hide Navigation Pane
Show Navigation Pane
SHA1