#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 6 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 7 | 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 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)# bridge 1 protocol provider-rstp edge | Enter configure bridge type as provider-RSTP edge bridge |
(config-if)#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-if)#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 6 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 7 | 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 6 cvlan 3 svlan 7 | 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 6 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 7 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 6 | Unconfigure Translation Case1 from PNP port |
(config-if)#switchport provider-network vlan translation cvlan 2 svlan 6 svlan 7 | 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 6 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 7 | 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 6 | Unconfigure Translation Case2 from PNP port |
(config-if)#switchport provider-network vlan translation svlan 6 svlan 7 | 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 6 untagged-pep | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 7 | 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 6 svlan 7 | Unconfigure Translation Case2 from PNP port |
(config-if)#switchport provider-network vlan translation svlan 6 cvlan 3 svlan 7 | 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 cvlan3 svlan 4 | Map CVLAN to C’VLAN and SVLAN |
(config-cvlan-registration)#cvlan 5 cvlan 6 svlan 7 | 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 4 | Map CVLAN to SVLAN |
(config-cvlan-registration)#cvlan 3 svlan 6 | 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 allowed vlan all | Add all VLANs configured above to this PNP port |
(config-if)#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. |