Creating Policy Lists for GRE Tunnels

The following example creates a GRE tunnel policy list named routeGre50. For information about creating the CLACL used in this example, see the previous sections.

  1. Create the policy list routeGre50.
    host1(config)#gre-tunnel policy-list routeGre50
  2. Create the classification group for the CLACL named gre8 and assign a precedence of 150 to it.
    host1(config-policy-list)#classifier-group gre8 precedence 150 host1(config-policy-list-classifier-group)#
  3. Add two rules for traffic based on the CLACL named gre8: one rule to color packets as red, and a second rule that specifies the ToS DS field value to be assigned to the packets.
    host1(config-policy-list-classifier-group)#color red host1(config-policy-list-classifier-group)#mark dsfield 20 host1(config-policy-list-classifier-group)#
  4. Exit Policy List Configuration mode to save the configuration.
    host1(config-policy-list-classifier-group)#exit host1(config-policy-list)#exit host1(config)#
  5. Display the policy list.
    host1#show policy-list routeGre50
                                      Policy Table
                                      ------ -----
    GRE Tunnel Policy routeGre50
       Administrative state: enable
       Reference count:      0
       Classifier control list: gre8, precedence 150
          color red
          mark dsfield 20

Related Documentation