SW1#configure terminal | Enter configuration mode |
SW1(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW1(config)#vlan database | Enter VLAN configuration mode |
SW1(config-vlan)#vlan 2 type customer bridge 1 state enable | Create customer vlan VLAN 2 |
SW1(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW1(config-vlan)#exit | Exit VLAN configuration mode |
SW1(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW1(config-cvlan-registration)#cvlan 2 svlan 200 | Map cvlan2 with svlan 200 |
SW1(config-cvlan-registration)#exit | Exit registration table |
SW1(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW1(config-if)#switchport | Configure switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW1(config-if)#switchport customer-edge access vlan 2 | Associate customer vlan2 with interface |
SW1(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW1(config-if)#exit | Exit interface mode |
SW1(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW1(config-if)#switchport | Make interface as switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW1(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW1(config-if)#exit | Exit interface configuration mode |
SW1(config)#commit | Commit the transaction. |
SW2#configure terminal | Enter configuration mode |
SW2(config)#bridge 1 protocol provider-rstp | Create provider bridge |
SW2(config)#vlan database | Enter VLAN configuration mode |
SW2(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW2(config-vlan)#exit | Exit VLAN configuration mode |
SW2(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#commit | Commit the transaction. |
SW3#configure terminal | Enter configuration mode |
SW3(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW3(config)#vlan database | Enter VLAN configuration mode |
SW3(config-vlan)#vlan 2 type customer bridge 1 state enable | Create customer vlan VLAN 2 |
SW3(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW3(config-vlan)#exit | Exit VLAN configuration mode |
SW3(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW3(config-cvlan-registration)#cvlan 2 svlan 200 | Map cvlan2 with svlan 200 |
SW3(config-cvlan-registration)#exit | Exit registration table |
SW3(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW3(config-if)#switchport | Configure switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW3(config-if)#switchport customer-edge access vlan 2 | Associate customer vlan2 with interface |
SW3(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW3(config-if)#exit | Exit interface mode |
SW3(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW3(config-if)#switchport | Make interface as switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW3(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW3(config-if)#exit | Exit interface configuration mode |
SW3(config)#commit | Commit the transaction. |
SW1#configure terminal | Enter configuration mode |
SW1(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW1(config)#vlan database | Enter VLAN configuration mode |
SW1(config-vlan)#vlan 2 type customer bridge 1 state enable | Create customer vlan VLAN 2 |
SW1(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW1(config-vlan)#exit | Exit VLAN configuration mode |
SW1(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW1(config-cvlan-registration)#cvlan 2 svlan 200 | Map cvlan2 with svlan 200 |
SW1(config-cvlan-registration)#exit | Exit registration table |
SW1(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW1(config-if)#switchport | Configure switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW1(config-if)#switchport customer-edge access vlan 2 | Associate customer vlan2 with interface |
SW1(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW1(config-if)#exit | Exit interface mode |
SW1(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW1(config-if)#switchport | Make interface as switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW1(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW1(config-if)#exit | Exit interface mode |
SW1(config)#interface eth3 | Enter interface configuration mode for eth2 |
SW1(config-if)#switchport | Make interface as switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW1(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW1(config-if)#exit | Exit interface configuration mode |
SW1(config)#commit | Commit the transaction. |
SW2#configure terminal | Enter configuration mode |
SW2(config)#bridge 1 protocol provider-rstp | Create provider bridge |
SW2(config)#vlan database | Enter VLAN configuration mode |
SW2(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW2(config-vlan)#exit | Exit VLAN configuration mode |
SW2(config)#interface eth3 | Enter interface configuration mode for eth1 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#commit | Commit the transaction. |
SW3#configure terminal | Enter configuration mode |
SW3(config)#bridge 1 protocol provider-rstp | Create provider bridge |
SW3(config)#vlan database | Enter VLAN configuration mode |
SW3(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW3(config-vlan)#exit | Exit VLAN configuration mode |
SW3(config)#interface eth3 | Enter interface configuration mode for eth1 |
SW3(config-if)#switchport | Make interface as switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW3(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW3(config-if)#exit | Exit interface configuration mode |
SW3(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW3(config-if)#switchport | Make interface as switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW3(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW3(config-if)#exit | Exit interface configuration mode |
SW3(config)#commit | Commit the transaction. |
SW4#configure terminal | Enter configuration mode |
SW4(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW4(config)#vlan database | Enter VLAN configuration mode |
SW4(config-vlan)#vlan 2 type customer bridge 1 state enable | Create customer vlan VLAN 2 |
SW4(config-vlan)#vlan 200 type service point-point bridge 1 state enable | Create service vlan VLAN200 |
SW4(config-vlan)#exit | Exit VLAN configuration mode |
SW4(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW4(config-cvlan-registration)#cvlan 2 svlan 200 | Map cvlan2 with svlan 200 |
SW4(config-cvlan-registration)#exit | Exit registration table |
SW4(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW4(config-if)#switchport | Configure switchport |
SW4(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW4(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW4(config-if)#switchport customer-edge access vlan 2 | Associate customer vlan2 with interface |
SW4(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW4(config-if)#exit | Exit interface mode |
SW4(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW4(config-if)#switchport | Make interface as switchport |
SW4(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW4(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW4(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW4(config-if)#interface eth3 | Enter interface configuration mode for eth2 |
SW4(config-if)#switchport | Make interface as switchport |
SW4(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW4(config-if)#switchport mode provider-network | Configure switchport pnp port |
SW4(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW4(config-if)#exit | Exit interface configuration mode |
SW4(config)#commit | Commit the transaction. |
PB1#configure terminal | Enter Configure mode. |
PB1(config)#interface eth2 | Enter Interface mode |
PB1(config-if)#l2protocol stp peer | Configure STP protocol as peer |
PB1(config-if)#l2protocol elmi tunnel | Configure Elmi protocol as tunnel |
PB1(config-if)#l2protocol lldp tunnel | Configure LLDP protocol as tunnel |
PB1(config-if)#l2protocol lacp discard | Configure LACP protocol as discard |
PB1(config-if)#l2protocol efm discard | Configure EFM protocol as discard |
PB1(config-if)#exit | Exit of the interface |
PB1(config)#commit | Commit the transaction. |
#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. |
(config)#commit | Commit the transaction. |
#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)#commit | Commit the transaction. |
(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 1000 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the transaction. |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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)#commit | Commit the transaction. |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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 1000 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | Enter the interface mode |
(config-if)#switchport provider-network vlan translation cvlan 2 svlan 1000 cvlan 3 svlan 1005 | Translate CVLAN and SVLAN to new CVLAN and new SVLAN on PNP port |
#configure terminal | Enter configure mode. |
(config)#cvlan registration table map1 bridge 1 | Configure CVLAN registration table as map1 |
(config-cvlan-registration)#cvlan 2 svlan 1000 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 untagged-pep | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | Enter the interface mode |
(config-if)#switchport customer-edge hybrid vlan 3 | Allow access VLAN 3 configured above to this CEP port |
(config-if)#switchport customer-edge hybrid allowed vlan add 2-3 | Allow other VLANs configured to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | Enter the interface mode |
(config-if)#no switchport provider-network vlan translation cvlan 2 svlan 1000 | Unconfigure Translation Case1 from PNP port |
(config-if)#switchport provider-network vlan translation cvlan 2 svlan 1000 svlan 1005 | Configure Translation Case2 on PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface 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 1000 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | Enter the interface mode |
(config-if)#switchport customer-edge hybrid vlan 2 | Allow access VLAN 2 configured above to this CEP port |
(config-if)#switchport customer-edge hybrid allowed vlan add 2-3 | Allow other VLANs configured to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | Enter the interface mode |
(config-if)#switchport | Configure switchport |
(config-if)#switchport mode provider-network | Configure port as Provider Network Port (PNP) |
(config-if)#switchport provider-network allowed vlan all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | Enter the interface mode |
(config-if)#no switchport provider-network vlan translation cvlan 2 svlan 1000 | Unconfigure Translation Case2 from PNP port |
(config-if)#switchport provider-network vlan translation svlan 1000 svlan 1005 | Configure Translation Case3 on PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface 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 1000 untagged-pep | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | Enter the interface mode |
(config-if)#switchport customer-edge hybrid vlan 2 | Allow access VLAN 2 configured above to this CEP port |
(config-if)#switchport customer-edge hybrid allowed vlan add 2-3 | Allow other VLANs configured to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | Enter the interface mode |
(config-if)#no switchport provider-network vlan translation svlan 1000 svlan 1005 | Unconfigure Translation Case2 from PNP port |
(config-if)#switchport provider-network vlan translation svlan 1000 cvlan 3 svlan 1005 | Configure Translation Case3 on PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface 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 cvlan 3 svlan 500 | Map CVLAN to C’VLAN and SVLAN |
(config-cvlan-registration)#cvlan 5 cvlan 6 svlan 1500 | Map CVLAN to C’VLAN and SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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 | Allow other VLANs configured to this CEP port |
(config-if)#switchport customer-edge vlan registration map1 | Attach the Map1 to CEP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface 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 1000 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 1005 | Map CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit the configuration |
(config-cvlan-registration)#end | End the CVLAN registration mode |
#configure terminal | Enter configure mode. |
(config)#interface ge3 | 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 all | Add all VLANs configured above to this PNP port |
(config-if)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode. |
#configure terminal | Enter configure mode. |
(config)#interface ge9 | 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 vlan allowed vlan all | Add all VLANs configured above to this PNP port |
(config-if)#switchport dot1ad ethertype 0x88a8 | Change the TPID of the SVLAN to 0x88a8 |
(config-if)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#qos enable | Enabling QoS |
(config)#qos statistics | Enabling QoS statistics |
(config)#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)#exit | Exit 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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(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)#qos enable | Enabling QoS |
(config)#qos statistics | Enabling QoS statistics |
(config)#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)#commit | Commit the configuration |
(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)#commit | Commit the configuration |
(config-if)#end | Exit interface and configure mode |
SW1#configure terminal | Enter configuration mode |
SW1(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW1(config)#vlan database | Enter VLAN configuration mode |
SW1(config-vlan)#vlan 2-10 type customer bridge 1 state enable | Create customer vlan VLAN 2-10 |
SW1(config-vlan)#vlan 11-15 type service point-point bridge 1 state enable | Create service vlan VLAN 11-15 |
SW1(config-vlan)#exit | Exit VLAN configuration mode |
SW1(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW1(config-cvlan-registration)#cvlan 2 svlan 11 untagged-pep | Map cvlan2 with svlan 11 |
SW1(config-cvlan-registration)#cvlan 3 svlan 12 | Map cvlan3 with svlan 12 |
SW1(config-cvlan-registration)#cvlan 4 svlan 14 | Map cvlan4 with svlan 14 |
SW1(config-cvlan-registration)#exit | Exit registration table |
SW1(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW1(config-if)#switchport | Configure switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW1(config-if)#switchport customer-edge hybrid vlan 2 | Associate customer vlan2 with interface |
SW1(config-if)#switchport customer-edge hybrid allowed vlan all | Associate all customer vlan with interface |
SW1(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW1(config-if)#exit | Exit interface mode |
SW1(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW1(config-if)#switchport | Make interface as switchport |
SW1(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW1(config-if)#switchport mode provider- network | Configure switchport pnp port |
SW1(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW1(config-if)#exit | Exit interface configuration mode |
SW1(config)#commit | Apply the commit |
SW1(config)#end | Exit configuration mode |
SW2#configure terminal | Enter configuration mode |
SW2(config)#bridge 1 protocol provider-rstp | Create provider bridge |
SW2(config)#vlan database | Enter VLAN configuration mode |
SW2(config-vlan)# vlan 2-15 type service point-point bridge 1 state enable | Create service vlan VLAN2-15 |
SW2(config-vlan)#exit | Exit VLAN configuration mode |
SW2(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider- network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW2(config-if)#switchport | Make interface as switchport |
SW2(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW2(config-if)#switchport mode provider- network | Configure switchport pnp port |
SW2(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW2(config-if)#exit | Exit interface configuration mode |
SW2(config)#commit | Apply the commit |
SW2(config)#end | Exit configuration mode |
SW3#configure terminal | Enter configuration mode |
SW3(config)#bridge 1 protocol provider-rstp edge | Create bridge |
SW3(config)#vlan database | Enter VLAN configuration mode |
SW3(config-vlan)#vlan 2-10 type customer bridge 1 state enable | Create customer vlan VLAN 2-10 |
SW3(config-vlan)#vlan 11-15 type service point-point bridge 1 state enable | Create service vlan VLAN11-15 |
SW3(config-vlan)#exit | Exit VLAN configuration mode |
SW3(config)#cvlan registration table map1 bridge 1 | Create cvlan registration table map1 |
SW3(config-cvlan-registration)#cvlan 2 svlan 11 untagged-pep | Map cvlan 2 with svlan 11 |
SW3(config-cvlan-registration)#cvlan 3 svlan 12 | Map cvlan 3 with svlan 12 |
SW3(config-cvlan-registration)#cvlan 4 svlan 14 | Map cvlan 4 with svlan 14 |
SW3(config-cvlan-registration)#exit | Exit registration table |
SW3(config)#interface eth1 | Enter interface configuration mode for eth1 |
SW3(config-if)#switchport | Configure switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode customer-edge access | Configure switchport mode customer edge |
SW3(config-if)#switchport customer-edge hybrid vlan 2 | Associate customer vlan2 with interface |
SW3(config-if)#switchport customer-edge hybrid allowed vlan all | Associate all customer vlan with interface |
SW3(config-if)#switchport customer-edge vlan registration map1 | Attach registration table map1 with interface |
SW3(config-if)#exit | Exit interface mode |
SW3(config)#interface eth2 | Enter interface configuration mode for eth2 |
SW3(config-if)#switchport | Make interface as switchport |
SW3(config-if)#bridge-group 1 | Associate interface with bridge-group 1 |
SW3(config-if)#switchport mode provider- network | Configure switchport pnp port |
SW3(config-if)#switchport provider-network allowed vlan all | Associate all svlan to the port |
SW3(config-if)#exit | Exit interface configuration mode |
SW3(config)#commit | Apply the commit |
SW3(config)#end | Exit configuration mode |