Bridge1#configure terminal | Enter the configure mode |
Bridge1(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge |
Bridge1(config)#vlan 10-100 bridge 1 state enable | Create VLAN 10-100 on bridge 1 |
Bridge1(config)#commit | Commit the transaction |
Bridge1(config)#interface xe1 | Configure interface xe1 |
Bridge1(config-if)# switchport | Configure xe1 as a layer 2 port |
Bridge1(config-if)# bridge-group 1 | Configure interface in bridge group 1 |
Bridge1(config-if)# switchport mode trunk | Configure port as trunk port |
Bridge1(config-if)# switchport trunk allowed vlan add 10-100 | Allow VLAN 10-100 on xe1 interface |
Bridge1(config)#interface xe2 | Configure interface xe2 |
Bridge1(config-if)# switchport | Configure xe2 as a layer 2 port |
Bridge1(config-if)# bridge-group 1 | Configure interface in bridge group 1 |
Bridge1(config-if)# switchport mode trunk | Configure port as trunk port |
Bridge1(config-if)# switchport trunk allowed vlan add 10-100 | Allow VLAN 10-100 on xe1 interface |
Bridge1(config-if)#exit | Exit the interface mode |
Bridge1(config)#commit | Commit the transaction |
Bridge1(config)#ethernet cfm domain-type character-string domain-name 12345 level 5 mip-creation none | Create CFM domain with type as character string with name 12345 and set mip creation criteria to default with level 5 on bridge 1 |
Bridge1(config-ether-cfm)#service ma-type string ma-name 54321 | Create MA type as string with name 54321 |
Bridge1(config-ether-cfm-ma)# vlan 10 bridge 1 | Add VLAN 10 |
Bridge1(config-ether-cfm-ma)#mip-creation none | Set mip-creation creation criteria to none |
Bridge1(config-ether-cfm-ma)#ethernet cfm mep down mpid 111 active true xe1 | Create the down MEP 111 for xe1 interface |
Bridge1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable CC multi-cast |
Bridge1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit the Ethernet CFM MA-MEP mode |
Bridge1(config-ether-cfm-ma)#mep crosscheck mpid 222 | Configure crosscheck to remote MEP with value 222 |
Bridge1(config-ether-cfm-ma)#cc interval 3ms | Enable CC interval with 3ms |
Bridge1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit the Ethernet MA mode |
Bridge1(config-ether-cfm)#exit | Exit the Ethernet CFM mode |
Bridge1(config)#ethernet cfm domain-type character-string domain-name 56789 level 5 mip-creation none | Create CFM domain with type as character string with name 56789 and set MIP creation criteria to default with level 5 on bridge 1 |
Bridge1(config-ether-cfm)#service ma-type string ma-name 98765 | Create MA type as string with name 98765. |
Bridge1(config-ether-cfm-ma)# vlan 10 bridge 1 | Add VLAN 10 |
Bridge1(config-ether-cfm-ma)#mip-creation none | Set MIP-creation creation criteria to none |
Bridge1(config-ether-cfm-ma)#ethernet cfm mep down mpid 333 active true xe2 | Create down MEP 333 for xe2 interface |
Bridge1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable CC multi-cast |
Bridge1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit the Ethernet CFM MA-MEP mode |
Bridge1(config-ether-cfm-ma)#mep crosscheck mpid 444 | Configure crosscheck to remote MEP with value 444 |
Bridge1(config-ether-cfm-ma)#cc interval 3ms | Enable CC interval with 3ms |
Bridge1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit the Ethernet ma mode |
Bridge1(config-ether-cfm)#exit | Exit the Ethernet CFM mode |
Bridge1(config)#commit | Commit transaction |
Bridge1(config)#g8031 eps-protection group eps1 | Create g8031 protection group |
Bridge1(g8031-config-protection)# working-port xe2 | Associate xe2 interface as working port to g8031 protection group |
Bridge1(g8031-config-protection)# protection-port xe1 | Associate xe1 interface as protection port to g8031 protection group |
Bridge1(g8031-config-protection)#g8031 profile eps1 | Create g8031 profile |
Bridge1(g8031-config-profile)# mode one-and-one-bidirectional | Associate g8031 mode one-and-one bidirectional |
Bridge1(g8031-config-profile)# switching mode revertive | Set switchover type revertive mode |
Bridge1(g8031-config-profile)# timer wait-to-restore 420 | Set timer wait-to-restore |
Bridge1(g8031-config-profile)#g8031 eps-instance eps1 | Create g8031 instance |
Bridge1(g8031-config-eps-instance)# eps-protection-group eps1 | Associate g8031 protection group to instance |
Bridge1(g8031-config-eps-instance)# g8031-profile eps1 | Associate g8031 profile to instance |
Bridge1(g8031-config-eps-instance)# aps-channel level 5 | Add control VLAN 10 |
Bridge1(g8031-config-eps-instance)# control vlan 10 | Commit the transaction |
Bridge1(g8031-config-eps-instance)#data vlan 20,30 | Add data VLAN 20,30 |
Bridge1(g8031-config-eps-instance)#exit | Exit the g8031 configuration mode |
Bridge1(config)#commit | Commit the transaction |
Bridge1(config)#end | Exit configuration terminal |
Bridge2#configure terminal | Enter the configure mode |
Bridge2(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge |
Bridge2(config)#vlan 10-100 bridge 1 state enable | Create VLAN 10-100 on bridge 1 |
Bridge2(config)#commit | Commit the transaction |
Bridge2(config)#interface xe1 | Configure interface xe1 |
Bridge2(config-if)# switchport | Configure xe1 as a layer 2 port |
Bridge2(config-if)# bridge-group 1 | Configure interface in bridge group 1 |
Bridge2(config-if)# switchport mode trunk | Configure port as trunk port |
Bridge2(config-if)# switchport trunk allowed vlan add 10-100 | Allow VLAN 10-100 on xe1 interface |
Bridge2(config)#interface xe2 | Configure interface xe2 |
Bridge2(config-if)# switchport | Configure xe2 as a layer 2 port |
Bridge2(config-if)# bridge-group 1 | Configure interface in bridge group 1 |
Bridge2(config-if)# switchport mode trunk | Configure port as trunk port |
Bridge2(config-if)# switchport trunk allowed vlan add 10-100 | Allow VLAN 10-100 on xe1 interface |
Bridge2(config-if)#exit | Exit the interface mode |
Bridge2(config)#commit | Commit the transaction |
Bridge2(config)#g8031 eps-protection group eps1 | Create g8031 protection group |
Bridge2(g8031-config-protection)# working-port xe2 | Associate xe2 interface as working port to g8031 protection group |
Bridge2(g8031-config-protection)# protection-port xe1 | Associate xe1 interface as protection port to g8031 protection group |
Bridge2(g8031-config-protection)#g8031 profile eps1 | Create g8031 profile |
Bridge2(g8031-config-profile)# mode one-and-one-bidirectional | Associate g8031 mode one-and-one bidirectional |
Bridge2(g8031-config-profile)# timer wait-to-restore 420 | Set timer wait-to-restore |
Bridge2(g8031-config-profile)#g8031 eps-instance eps1 | Create g8031 instance |
Bridge2(g8031-config-eps-instance)# eps-protection-group eps1 | Associate g8031 protection group to instance |
Bridge2(g8031-config-eps-instance)# g8031-profile eps1 | Associate g8031 profile to instance |
Bridge2(g8031-config-eps-instance)# aps-channel level 5 | Associate CFM to PG |
Bridge2(g8031-config-eps-instance)# control vlan 10 | Add control VLAN 10 |
Bridge2(g8031-config-eps-instance)#data vlan 20,30 | Add data VLAN 20,30 |
Bridge2(g8031-config-eps-instance)#exit | Exit g8031 configuration mode |
Bridge2(config)#commit | Commit the transaction |
Bridge2(config)#end | Exit the configuration terminal |