#configure terminal | Enter configure mode. |
(config)# bridge 1 protocol provider-rstp edge | Enter configure bridge type as provider-RSTP edge bridge |
(config)#exit | Exit configure mode. |
#configure terminal | Enter configure mode. |
(config)#vlan database | Enter VLAN database |
(config-vlan)#vlan 2-500 type customer bridge 1 state enable | Configure customer VLANs on bridge 1 |
(config-vlan)#vlan 501-1005 type service point-point bridge 1 state enable | Configure service VLANs on bridge 1 |
(config-vlan)#end | Exit VLAN database and configure mode. |
#configure terminal | Enter configure mode. |
(config)#cvlan registration table map1 bridge 1 | Configure CVLAN registration table as map1 |
(config-cvlan-registration)#cvlan 2 svlan 501 | Map CVLAN to SVLAN |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface xe2 | Enter the interface mode |
(config-if)#switchport | Configure switchport |
(config-if)#bridge-group 1 | Attach port to bridge |
(config-if)#switchport mode customer-edge hybrid | Configure port as customer-edge hybrid port |
(config-if)#switchport customer-edge hybrid allowed vlan all | Add all VLANs configured above to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface xe3 | Enter the interface mode |
(config-if)#switchport | Configure switchport |
(config-if)#bridge-group 1 | Attach port to bridge |
(config-if)#switchport mode provider-network | Configure port as Provider Network Port (PNP) |
(config-if)#switchport provider-network allowed vlan add 501 | Add all VLANs configured above to this PNP port |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#hardware-profile filter qos-ext enable | Enabling Ingress extended QoS group for QoS support with statistics |
(config-if)#qos enable | Enabling QoS |
(config-if)#qos statistics | Enabling QoS statistics |
(config-if)#qos profile cos-to-queue cosq-cust1 | Configure QoS map profile |
config-ingress-cos-map)#cos 0 queue 1 | Configuring the cos value to be mapped to queue |
(config-ingress-cos-map)#exit | Exit configure mode. |
(config)#qos profile queue-color-to-cos cosq-service1 | Configuring profile for queue color to cos map |
(config-egress-cos-map)#queue 1 cos 3 | Configuring the queue value to be cos remarked. |
(config-egress-cos-map)#exit | Exit configure mode |
(config)#cvlan registration table map1 bridge 1 | Enter CVLAN registration mode |
(config-cvlan-registration)#cvlan 2 svlan 501 cos-to-queue cosq-cust1 | Map CVLAN to SVLAN with QoS map profile. Eg: when vlan 2 customer traffic with cos 0 value is received, queue will be assigned to 1 based on mapping. |
(config-cvlan-registration)#end | End the CVLAN registration mode |
(config)#interface xe3 | Enter the interface mode |
(config-if)#qos map-profile queue-color-to-cos cosq-service1 | Map the profile to the PNP port. Eg: when traffic goes out of queue 1, cos value on service vlan header will be modified to 3 as remarking is enabled on the interface. |
(config-if)#qos remark cos enable | Enabling Cos Remark on the Network Interface. |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)# bridge 1 protocol provider-rstp edge | Enter configure bridge type as provider-RSTP edge bridge |
(config)#exit | Exit configure mode. |
#configure terminal | Enter configure mode. |
(config)#vlan database | Enter VLAN database |
(config-vlan)#vlan 2-500 type customer bridge 1 state enable | Configure customer VLANs on bridge 1 |
(config-vlan)#vlan 501-1005 type service point-point bridge 1 state enable | Configure service VLANs on bridge 1 |
(config-vlan)#end | Exit VLAN database and configure mode. |
#configure terminal | Enter configure mode. |
(config)#cvlan registration table map1 bridge 1 | Configure CVLAN registration table as map1 |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface xe2 | Enter the interface mode |
(config-if)#switchport | Configure switchport |
(config-if)#bridge-group 1 | Attach port to bridge |
(config-if)#switchport mode customer-edge hybrid | Configure port as customer-edge hybrid port |
(config-if)#switchport customer-edge hybrid allowed vlan all | Add all VLANs configured above to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface xe3 | Enter the interface mode |
(config-if)#switchport | Configure switchport |
(config-if)#bridge-group 1 | Attach port to bridge |
(config-if)#switchport mode provider-network | Configure port as Provider Network Port (PNP) |
(config-if)#switchport provider-network allowed vlan add 501 | Add all VLANs configured above to this PNP port |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#hardware-profile filter qos-ext enable | Enabling Ingress extended QoS group for QoS support with statistics |
(config-if)#qos enable | Enabling QoS |
(config-if)#qos statistics | Enabling QoS statistics |
(config-if)#qos profile cos-to-queue cosq-cust1 | Configure QoS map profile |
config-ingress-cos-map)#cos 2 queue 5 | Configuring the cos value to be mapped to queue. Eg: when double tagged traffic with cos 2 for outer vlan is received, queue will be assigned to 5 based on mapping. |
(config-ingress-cos-map)#exit | Exit configure mode. |
(config)#cvlan registration table map1 bridge 1 | Enter CVLAN registration mode |
(config-cvlan-registration)#cvlan 2 svlan 501 remark-cos | Map CVLAN to SVLAN with remark cos enabled. Eg: when double tagged traffic with cos 2 for outer vlan is received, queue will be assigned to 5 based on mapping and cos value will be changed to 5 when it goes out of cep port since remark cos is enabled. |
(config-cvlan-registration)#cvlan 3 svlan 501 remark-cos | Map CVLAN to SVLAN without remark cos. Eg: when double tagged traffic with cos 2 for outer vlan is received, and cos value will be forwarded as it is when it goes out of cep port since remark cos is not enabled for customer2. |
(config-cvlan-registration)#end | End the CVLAN registration mode |
(config)#configure terminal | Enter configure mode |
(config)#interface xe3 | Enter the interface mode |
(config-if)#qos map-profile cos-to-queue cosq-service | Map the profile to the PNP port |
(config-if)#end | Exit interface and configure mode |