#configure terminal | Enter configure mode. |
(config)#hostname SW1 | Set the host name |
(config)#bridge 1 protocol rstp vlan-bridge | Create a RSTP VLAN bridge on customer side |
(config)#vlan 2-200 bridge 1 state enable | Configure VLAN for the bridge |
(config)#interface ge1 | Enter interface mode |
(config-if)#switchport | Make the interface Layer 2 |
(config-if)#bridge-group 1 | Associate the interface to bridge |
(config-if)#switchport mode hybrid | Configure the mode as trunk |
(config-if)#switchport hybrid allowed vlan all | Configure allowed VLAN all on the interface |
(config-if)#switchport port-security | Enable port security mode dynamic |
(config-if)#switchport port-security maximum 3 | Limit secure MAC to 3 mac addresses. |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface ge2 | Enter interface mode |
(config-if)#switchport | Make the interface Layer 2 |
(config-if)#bridge-group 1 | Associate the interface to bridge |
(config-if)#switchport mode hybrid | Configure the mode as trunk |
(config-if)#switchport hybrid allowed vlan all | Configure allowed VLAN all on the interface |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#logging monitor 7 | Enable logging level as 7 for debugging |
(config)#interface ge1 | Enter interface mode |
(config-if)#switchport port-security mac-address 0000.0000.aaaa vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode |
(config-if)#switchport port-security mac-address 0000.0000.aaab vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode |
(config-if)#switchport port-security mac-address 0000.0000.aaac vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode |
(config-if)#commit | Commit candidate configuration to be running configuration |
config)#interface ge1 | Enter interface mode |
(config-if)#no switchport port-security | Set the port-security method to static. |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config)#interface ge1 | Enter interface mode |
(config-if)#switchport port-security static | Set the port-security method as static. |
(config-if)#switchport port-security max 3 | Limit static secure MAC to 3 mac addresses. |
(config-if)#switchport port-security mac-address 0000.0000.aaaa vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode. |
(config-if)#switchport port-security mac-address 0000.0000.aaab vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode. |
(config-if)#switchport port-security mac-address 0000.0000.aaac vlanId 100 | Add static secure MAC address for VLAN 100 in interface mode . |
(config-if)#commit | Commit candidate configuration to be running configuration |
#configgure termonal | Enter configure mode |
(config)#bridge 1 protocol provider-rstp edge | Create provider RSTP bridge |
(config)#vlan 2-10 type customer bridge 1 state enable | Enabling customer vlan for bridge |
(config)#vlan 2-10 type service point-point bridge 1 state enable | Enabling service vlan for bridge |
(config)#cvlan registration table map1 bridge 1 | Creating registration table |
(config-cvlan-registation)#cvlan 2 svlan 2 | Mapping CVLAN to SVLAN |
(config-cvlan-registation)#cvlan 10 svlan 2 | Mapping CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit candidate configuration to be running configuration |
(config-cvlan-registation)#exit | Exit registration table mode |
(config)#interface mlag3 | Entering MLAG interface |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po1 | Entering dynamic lag interface |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN 2 |
(config-if)#switchport customer-edge hybrid allowed vlan all | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#mlag 3 | Enabling mlag group number |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe49/1 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 | Associate the interface with bridge group 1. |
(config-if)#switchport mode provider-network | Set the switching characteristics of this interface to provider network |
(config-if)#switchport provider-network allowed vlan all | Set the switching characteristics of this interface to provider network and allow all VLAN |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Enter interface mode |
(config)#interface xe3 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 | Associate the interface with bridge group 1. |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow vlan 2 |
(config-if)#switchport customer-edge hybrid allowed vlan all | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#channel-group 1 mode active | Add this interface to channel group 1 and enable link aggregation so that it can be selected for aggregation by the local system |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface mlag3 | Entering MLAG interface |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN 2 |
(config-if)#switchport customer-edge hybrid allowed vlan all | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#switchport customer-edge vlan registration map1 | Configuring the registration table mapping on MLAG interface |
(config-if)#switchport port-security | Enabling port security |
(config-if)#switchport port-security maximum 10 | Limiting the maximum mac to 10 |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#mcec domain configuration | Entering MCEC mode |
(config-mcec-domain)#domain-address 2222.2222.2222 | Domain address for the MLAG domain |
(config-mcec-domain)#domain-system-number 1 | Number to identify the node in a domain |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-mcec-domain)#exit | Exit MCEC mode |
(config)#intra-domain-link xe49/1 | Intra domain line between MLAG domain |
(config-if)#domain-priority 333 | Domain priority for MCEC |
(config-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode |
(config)#bridge 1 protocol provider-rstp edge | Create provider RSTP bridge |
(config)#vlan 2-10 type customer bridge 1 state enable | Enabling customer VLAN for bridge |
(config)#vlan 2-10 type service point-point bridge 1 state enable | Enabling service VLAN for bridge |
(config)#cvlan registration table map1 bridge 1 | Creating registration table |
(config-cvlan-registation)#cvlan 2 svlan 2 | Mapping CVLAN to SVLAN |
(config-cvlan-registation)#cvlan 10 svlan 2 | Mapping CVLAN to SVLAN |
(config-cvlan-registration)#commit | Commit candidate configuration to be running configuration |
(config-cvlan-registation)#exit | Exit registration table mode |
(config)#interface mlag3 | Entering MLAG interface |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po1 | Entering dynamic lag interface |
(config-if)#Switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN 2 |
(config-if)#switchport customer-edge hybrid allowed vlan all | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#mlag 3 | Enabling MLAG group number |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe49/1 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 | Associate the interface with bridge group 1. |
(config-if)#switchport mode provider-network | Set the switching characteristics of this interface to provider network |
(config-if)#switchport provider-network allowed vlan all | Set the switching characteristics of this interface to provider network and allow all VLAN |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe3 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
bridge-group 1 | Associate the interface with bridge group 1 |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN 2 |
(config-if)#switchport customer-edge hybrid allowed vlan all | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#channel-group 1 mode active | Add this interface to channel group 1 and enable link aggregation so that it can be selected for aggregation by the local system |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface mlag3 | Entering MLAG interface |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode customer-edge hybrid | Set the switching characteristics of this interface to customer edge hybrid |
(config-if)#switchport customer-edge hybrid vlan 2 | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN 2 |
(config-if)#switchport customer-edge hybrid allowed vlanall | Set the switching characteristics of this interface to customer edge hybrid and allow VLAN all |
(config-if)#switchport customer-edge vlan registration map1 | Configuring the registration table mapping on MLAG interface |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
mcec domain configuration | Entering MCEC mode |
(config-mcec-domain)#domain-address 2222.2222.2222 | Domain address for the MLAG domain |
(config-mcec-domain)#domain-system-number 2 | Number to identify the node in a domain |
(config-mcec-domain)#intra-domain-link xe49/1 | Intra domain line between MLAG domain |
(config-mcec-domain)#domain-priority 333 | Domain priority for MCEC |
(config-mcec-domain)#commit | Commit candidate configuration to be running configuration |
configure terminal | Enter configuration mode |
(config)#bridge 1 protocol rstp vlan-bridge | Configuring the RSTP vlan bridge |
(config)#interface po1 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode hybrid | Set the switching characteristics of this interface hybrid |
(config-if)#switchport hybrid allowed vlan all | Set the switching characteristics of this interface hybrid and allowing all vlan |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe1/3 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode hybrid | Set the switching characteristics of this interface hybrid |
(config-if)#switchport hybrid allowed vlan all | Set the switching characteristics of this interface hybrid and allowing all vlan |
(config-if)#channel-group 1 mode active | Add this interface to channel group 1 and enable link aggregation so that it can be selected for aggregation by the local system. |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe1/1 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 spanning-tree disable | Associate the interface with bridge group 1 and disabling spanning-tree |
(config-if)#switchport mode hybrid | Set the switching characteristics of this interface hybrid |
(config-if)#switchport hybrid allowed vlan all | Set the switching characteristics of this interface hybrid and allowing all vlan |
(config-if)#channel-group 1 mode active | Add this interface to channel group 1 and enable link aggregation so that it can be selected for aggregation by the local system. |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe3/3 | Entering interface mode |
(config-if)#switchport | Configuring interface as switchport |
(config-if)#bridge-group 1 | Associate the interface with bridge group 1and disabling spanning-tree |
(config-if)#switchport mode hybrid | Set the switching characteristics of this interface hybrid |
(config-if)#switchport hybrid allowed vlan all | Set the switching characteristics of this interface hybrid and allowing all VLAN |
(config-if)#commit | Commit candidate configuration to be running configuration |