Creating Policy Lists for Frame Relay
The following example creates a Frame Relay policy that on egress marks the DE bit to 1, and on ingress colors frames with a DE bit of 1 as red.
- Create the policy list used to mark egress traffic, then create the classifier group for packets conforming to CLACL frMatchDeSet. Add a rule that marks the DE bit as 1.
host1(config)#frame-relay policy-list frOutputPolicyhost1(config-policy-list)#classifier-group frMatchDeSethost1(config-policy-list-classifier-group)#mark-de 1host1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exit- Create the policy list used for the ingress traffic. and create the classifier group conforming to CLACL frMatchDeSet. Add a rule that colors the ingress traffic.
host1(config)#frame-relay policy-list frInputPolicyhost1(config-policy-list)#classifier-group frGroupAhost1(config-policy-list-classifier-group)#color redhost1(config-policy-list-classifier-group)#exithost1(config-policy-list)#exit- Apply the policy lists.
host1(config)#interface serial 5/0:1/1.1host1(config-subif)#frame-relay policy output frOutputPolicy statistics enabledhost1(config-subif)#ip address 10.0.0.1 255.255.255.0host1(config-subif)#exithost1(config)#interface serial 5/1:1/1.1host1(config-subif)#frame-relay policy input frInputPolicy statistics enabledhost1(config-subif)#exit- Display interface information to view the applied policies.
host1#show frame-relay subinterfaceFrame relay sub-interface SERIAL5/0:1/1.1, status is upNumber of sub-interface down transitions is 0Time since last status change 03:04:59No baseline has been setIn bytes: 660 Out bytes: 660In frames: 5 Out frames: 5In errors: 0 Out errors: 0In discards: 0 Out discards: 0In unknown protos: 0Frame relay policy output frOutputPolicyclassifier-group frGroupA entry 15 packets, 640 bytesmark-de 1Frame relay sub-interface SERIAL5/1:1/1.1, status is upNumber of sub-interface down transitions is 0Time since last status change 03:05:09No baseline has been setIn bytes: 660 Out bytes: 660In frames: 5 Out frames: 5In errors: 0 Out errors: 0In discards: 0 Out discards: 0In unknown protos: 0Frame relay policy input frInputPolicyclassifier-group frMatchDeSet entry 15 packets, 660 bytescolor red- Display the classifier list.
host1#show classifier-list detailedClassifier Control List Table---------- ------- ---- -----Frame relay Classifier Control List frMatchDeSetReference count: 1Entry count: 1Classifier-List frMatchDeSet Entry 1DE Bit: 1- Display the policy lists.
host1#show policy-listPolicy Table------ -----Frame relay Policy frOutputPolicyAdministrative state: enableReference count: 0Classifier control list: frMatchDeSet, precedence 100mark-de 1Frame relay Policy frInputPolicyAdministrative state: enableReference count: 0Classifier control list: frGroupA, precedence 100color red