SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering VLAN database. |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit config mode. |
SW1(config)#int ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW1(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW1(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to de-fault. |
SW1(config-ether-cfm-ma)#vlan 512 bridge 1 | Configure primary VLAN ID |
SW1(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true ce49 | Create down mep for local-vid on ce49. |
SW1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW1(config-ether-cfm-ma-mep)#exit-ether-ma- mep-mode | Exit ethernet cfm ma-mep mode. |
SW1(config-ether-cfm-ma)#mep crosscheck mpid 1 | Configure crosscheck to remote MEP in VLAN 512. |
SW1(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW1(config-ether-cfm)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1(config)#ethernet cfm loss-measurement profile-name SLM | Creating loss-measurement profile for SLM |
SW1(config-cfm-lm)#measurement-interval 1 | Specify the measurement-interval in minutes |
SW1(config)#intervals-stored 3 | Specify the number of history interval to be stored |
SW1(config)# message-period 1 | Specify message period interval time |
SW1(config)#commit | Commit the candidate configuration to the running configuration. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW2(config)#vlan database | Entering VLAN database. |
SW2(config-vlan)#vlan 512 type customer bridge 1 state enable | Create VLAN 512 for customer bridge. |
SW2(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-vlan)#exit | Exit config mode. |
SW2(config)#interface ce0 | Configure interface ce0. |
SW2(config)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#switchport | Configure interface as a switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all customer VLANs on interface ce0. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#int xe0 | Configure interface xe0 |
SW2(config-if)#switchport | Configure interface as switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1 |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit config mode. |
SW3#configure terminal | Enter configure mode. |
SW3(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW3(config)#vlan database | Entering VLAN database. |
SW3(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW3(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-vlan)#exit | Exit config mode. |
SW3(config)#int xe17 | Configure interface xe17. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe17. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit config mode. |
SW3(config)#int xe1 | Configure interface xe1. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW3(config-if)#exit | Exit config mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW4(config)#vlan database | Entering VLAN database. |
SW4(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW4(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-vlan)#exit | Exit config mode. |
SW4(config)#int xe1 | Configure interface xe1. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit config mode. |
SW4(config)#int xe9 | Configure interface xe9. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW4(config-if)#exit | Exit config mode. |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering VLAN database. |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit config mode. |
SW5(config)#int xe9 | Configure interface xe9. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW5(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW5(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to default. |
SW5(config-ether-cfm-ma)#vlan 512 bridge 1 | Configure primary VLAN ID |
SW5(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9 | Create down mep for local-vid on xe9 |
SW5(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW5(config-ether-cfm-ma-mep)#ethernet cfm loss-measurement reply slm | Generate and send SLR responses tacked |
SW5(config-ether-cfm-ma-mep)#exit-ether-ma- mep-mode | Exit ethernet cfm ma-mep mode. |
SW5(config-ether-cfm-ma)#mep crosscheck mpid 2 | Configure crosscheck to remote MEP in VLAN 512. |
SW5(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW5(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW5(config-ether-cfm)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering VLAN database. |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit config mode. |
SW1(config)#interface ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#interface ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure interface as a switch port. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface xe0 | Configure interface xe1. |
SW2(config-if)#no switchport | Configure interface as router port. |
SW2(config-if)#ip address 10.0.0.1/24 | Assign IP address to router port xe0 |
SW2(config-if)#no shutdown | Making the interface up |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface lo | Configure interface lo |
SW2(config-if)#ip address 1.1.1.1/32 secondary | Configure secondary IP address to loopback interface . |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ospf 100 | Configure ospf |
SW2(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW2(config-router)#network 1.1.1.1/32 area 0 | Advertising loopback IP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#router rsvp | Configuring rsvp |
SW2(config-router)#hello-receipt | Configuring hello reception |
SW2(config-router)#no php | Configuring device as not a PHP |
SW2(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW2(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW2(config-trunk)#to 3.3.3.3 | Configuring second hop |
SW2(config-trunk)#exit | Exit trunk mode. |
SW2(config)#interface xe0 | Configuring interface |
SW2(config-if)#enable-rsvp | Enabling RSVP in interface |
SW2(config-if)#label-switching | Enabling MPLS labeling |
SW2(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ldp | Configuring LDP |
SW2(config-router)#targeted-peer ipv4 3.3.3.3 | Configuring LDP target peer for PW |
SW2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW2(config-router)#no multicast-hellos | Disabling LDP multicast |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3 | Creating VPWS PW |
SW2(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-pseudowire)#exit | Exit pseudowire config mode. |
SW2(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW2(config-svc)#match outer-vlan 10 | Configuring match condition |
SW2(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW2(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-svc)#exit | Exit service template mode |
SW2(config)#interface ce0 | Configuring interface |
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW2(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW2(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none | Creating MA for domain |
SW2(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW2(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 1 | Configuring remote mep |
SW2(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 4001 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW2(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW2(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-ether-cfm-mpls-ma-mep)#exit | Exit CFM MEP configuration mode |
SW2(config-ether-cfm-mpls-md-ma)#exit | Exit CFM MA configuration mode |
SW2(config-ether-cfm-mpls-md)#exit | End current mode and down to previous mode |
SW2(config)#ethernet cfm loss-measurement profile-name slm | Configuring LM profile |
SW2(config-cfm-lm)#measurement-type slm | Configuring measurement type as SLM |
SW2(config-cfm-lm)#message-period 3 | Configuring message period |
SW2(config-cfm-lm)#measurement-interval 1 | Configuring measurement interval |
SW2(config-cfm-lm)#intervals-stored 3 | Configuring number of interval to be stored |
SW2(config-cfm-lm)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-cfm-lm)#end | Exit config mode |
SW3#configure terminal | Enter configure mode. |
SW3(config)#interface xe17 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 20.0.0.1/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe1 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 10.0.0.2/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface lo | Configure interface lo |
SW3(config-if)#ip address 2.2.2.2/32 secondary | Configure secondary IP address to loopback interface . |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#router ospf 100 | Configure ospf |
SW3(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 2.2.2.2/32 area 0 | Advertising loopback IP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#router rsvp | Configuring rsvp |
SW3(config-router)#hello-receipt | Configuring hello reception |
SW3(config-router)#no php | Configuring device as not a PHP |
SW3(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#interface xe1 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe17 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#interface xe9 | Configure interface |
SW4(config-if)#switchport | Configure interface as switch port. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface xe1 | Configure interface |
SW4(config-if)#no switchport | Configure interface as router port. |
SW4(config-if)#ip address 20.0.0.2/24 | Assign IP address to router port |
SW4(config-if)#no shutdown | Making the interface up |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface lo | Configure interface lo |
SW4(config-if)#ip address 3.3.3.3/32 secondary | Configure secondary IP address to loopback interface . |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ospf 100 | Configure ospf |
SW4(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW4(config-router)#network 3.3.3.3/32 area 0 | Advertising loopback IP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#router rsvp | Configuring rsvp |
SW4(config-router)#hello-receipt | Configuring hello reception |
SW4(config-router)#no php | Configuring device as not a PHP |
SW4(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW4(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW4(config-trunk)#to 1.1.1.1 | Configuring second hop |
SW4(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-trunk)#exit | Exit trunk mode. |
SW4(config)#interface xe1 | Configuring interface |
SW4(config-if)#enable-rsvp | Enabling RSVP in interface |
SW4(config-if)#label-switching | Enabling MPLS labeling |
SW4(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ldp | Configuring LDP |
SW4(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring LDP target peer for PW |
SW4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW4(config-router)#no multicast-hellos | Disabling LDP multicast |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1 | Creating VPWS PW |
SW4(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-pseudowire)#exit | Exit pseudowire config mode. |
SW4(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW4(config-svc)# match outer-vlan 200 | Configuring match condition |
SW4(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW4(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-svc)#exit | Exit service template mode |
SW4(config)#interface xe9 | Configuring interface |
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW4(config)#ethernet cfm domain-type charac-ter-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW4(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 | Creating MA for domain |
SW4(config-ether-cfm-ma)#mip-creation none | Configuring MIP creation permission |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 3 | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 4001 | Configuring remote mep |
SW4(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 1 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW4(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply slm | Configuring SLR |
SW4(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-ether-cfm-mpls-ma-mep)#end | Exit config mode |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering VLAN database. |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit config mode. |
SW5(config)#interface xe9 | Configure interface ce49. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1 |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering VLAN database. |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit config mode. |
SW1(config)#interface ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#interface ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure interface as a switch port. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface xe0 | Configure interface xe1. |
SW2(config-if)#no switchport | Configure interface as router port. |
SW2(config-if)#ip address 10.0.0.1/24 | Assign IP address to router port xe0 |
SW2(config-if)#no shutdown | Making the interface up |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface lo | Configure interface lo |
SW2(config-if)#ip address 1.1.1.1/32 secondary | Configure secondary IP address to loopback interface . |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ospf 100 | Configure ospf |
SW2(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW2(config-router)#network 1.1.1.1/32 area 0 | Advertising loopback IP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#router rsvp | Configuring rsvp |
SW2(config-router)#hello-receipt | Configuring hello reception |
SW2(config-router)#no php | Configuring device as not a PHP |
SW2(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW2(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW2(config-trunk)#to 3.3.3.3 | Configuring second hop |
SW2(config-trunk)#exit | Exit trunk mode. |
SW2(config)#interface xe0 | Configuring interface |
SW2(config-if)#enable-rsvp | Enabling RSVP in interface |
SW2(config-if)#label-switching | Enabling MPLS labeling |
SW2(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ldp | Configuring LDP |
SW2(config-router)#targeted-peer ipv4 3.3.3.3 | Configuring LDP target peer for PW |
SW2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW2(config-router)#no multicast-hellos | Disabling LDP multicast |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3 | Creating VPWS PW |
SW2(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-pseudowire)#exit | Exit pseudowire config mode. |
SW2(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW2(config-svc)#match outer-vlan 10 | Configuring match condition |
SW2(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW2(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-svc)#exit | Exit service template mode |
SW2(config)#interface ce0 | Configuring interface |
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW2(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW2(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none | Creating MA for domain |
SW2(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW2(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 1 | Configuring remote mep |
SW2(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 4001 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW2(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW2(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-ether-cfm-mpls-ma-mep)#exit | Exit CFM MEP configuration mode |
SW2(config-ether-cfm-mpls-md-ma)#exit | Exit CFM MA configuration mode |
SW2(config-ether-cfm-mpls-md)#exit | End current mode and down to previous mode |
SW2(config)#ethernet cfm loss-measurement profile-name slm | Configuring LM profile |
SW2(config-cfm-lm)#measurement-type slm | Configuring measurement type as SLM |
SW2(config-cfm-lm)#message-period 3 | Configuring message period |
SW2(config-cfm-lm)#measurement-interval 1 | Configuring measurement interval |
SW2(config-cfm-lm)#intervals-stored 3 | Configuring number of interval to be stored |
SW2(config-cfm-lm)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-cfm-lm)#end | Exit config mode |
SW3#configure terminal | Enter configure mode. |
SW3(config)#interface xe17 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 20.0.0.1/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe1 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 10.0.0.2/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface lo | Configure interface lo |
SW3(config-if)#ip address 2.2.2.2/32 secondary | Configure secondary IP address to loopback interface . |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#router ospf 100 | Configure ospf |
SW3(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 2.2.2.2/32 area 0 | Advertising loopback IP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#router rsvp | Configuring rsvp |
SW3(config-router)#hello-receipt | Configuring hello reception |
SW3(config-router)#no php | Configuring device as not a PHP |
SW3(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#interface xe1 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe17 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#interface xe9 | Configure interface |
SW4(config-if)#switchport | Configure interface as switch port. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface xe1 | Configure interface |
SW4(config-if)#no switchport | Configure interface as router port. |
SW4(config-if)#ip address 20.0.0.2/24 | Assign IP address to router port |
SW4(config-if)#no shutdown | Making the interface up |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface lo | Configure interface lo |
SW4(config-if)#ip address 3.3.3.3/32 secondary | Configure secondary IP address to loopback interface . |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ospf 100 | Configure ospf |
SW4(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW4(config-router)#network 3.3.3.3/32 area 0 | Advertising loopback IP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#router rsvp | Configuring rsvp |
SW4(config-router)#hello-receipt | Configuring hello reception |
SW4(config-router)#no php | Configuring device as not a PHP |
SW4(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW4(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW4(config-trunk)#to 1.1.1.1 | Configuring second hop |
SW4(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-trunk)#exit | Exit trunk mode. |
SW4(config)#interface xe1 | Configuring interface |
SW4(config-if)#enable-rsvp | Enabling RSVP in interface |
SW4(config-if)#label-switching | Enabling MPLS labeling |
SW4(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ldp | Configuring LDP |
SW4(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring LDP target peer for PW |
SW4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW4(config-router)#no multicast-hellos | Disabling LDP multicast |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1 | Creating VPWS PW |
SW4(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-pseudowire)#exit | Exit pseudowire config mode. |
SW4(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW4(config-svc)# match outer-vlan 200 | Configuring match condition |
SW4(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW4(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-svc)#exit | Exit service template mode |
SW4(config)#interface xe9 | Configuring interface |
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW4(config)#ethernet cfm domain-type charac-ter-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW4(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 | Creating MA for domain |
SW4(config-ether-cfm-ma)#mip-creation none | Configuring MIP creation permission |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 3 | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 4001 | Configuring remote mep |
SW4(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 1 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW4(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply slm | Configuring SLR |
SW4(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-ether-cfm-mpls-ma-mep)#end | Exit config mode |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering VLAN database. |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit config mode. |
SW5(config)#interface xe9 | Configure interface ce49. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1 |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering vlan database |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit vlan database |
SW1(config)#int ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW1(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW1(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to default. |
SW1(config-ether-cfm)#vlan 512 | Configure primary VLAN ID |
SW1(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true local-vid 512 ce49 | Create down mep for local-vid on ce49. |
SW1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit ethernet cfm ma-mep mode. |
SW1(config-ether-cfm-ma)#mep crosscheck mpid 1 | Configure crosscheck to remote MEP in VLAN 512. |
SW1(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW1(config-ether-cfm)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1(config)# ethernet cfm loss-measurement profile-name LMM | Creating loss-measurement profile for LMM |
SW1(config-cfm-lm)# measurement-type lmm | Specify the measurement type |
SW1(config-cfm-lm)# measurement-interval 1 | Specify the measurement-interval in minutes |
SW1(config)# intervals-stored 3 | Specify the number of history interval to be stored |
SW1(config)# message-period 1s | Specify message period interval time |
SW1(config)#commit | Commit the candidate configuration to the running configuration. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW2(config)#vlan database | Entering vlan database |
SW2(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW2(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-vlan)#exit | Exit vlan database |
SW2(config)#int ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure the interface as switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce0. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit config mode. |
SW2(config)#int xe0 | Configure interface xe0. |
SW2(config-if)#switchport | Configure the interface as switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit config mode. |
SW3#configure terminal | Enter configure mode. |
SW3(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW3(config)#vlan database | Entering vlan database |
SW3(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW3(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-vlan)#exit | Exit vlan database |
SW3(config)#int xe17 | Configure interface xe17. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe17. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit config mode. |
SW3(config)#int xe1 | Configure interface xe1. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit config mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW4(config)#vlan database | Entering vlan database |
SW4(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW4(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-vlan)#exit | Exit vlan database |
SW4(config)#int xe1 | Configure interface xe1. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit config mode. |
SW4(config)#int xe9 | Configure interface xe9. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit config mode. |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering vlan database |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit vlan database |
SW5(config)#int xe9 | Configure interface xe9. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW5(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW5(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to default. |
SW5(config-ether-cfm-ma)#vlan 512 bridge 1 | Configure primary VLAN ID |
SW5(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9 | Create down mep for local-vid on xe9 |
SW5(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW5(config-ether-cfm-ma-mep)#ethernet cfm loss-measurement reply lmm | Generate and send LMR responses tacked |
SW5(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit ethernet cfm ma-mep mode. |
SW5(config-ether-cfm-ma)#mep crosscheck mpid 2 | Configure crosscheck to remote MEP in VLAN 512. |
SW5(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW5(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW5(config-ether-cfm-ma)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering VLAN database. |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit config mode. |
SW1(config)#interface ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#interface ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure interface as a switch port. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface xe0 | Configure interface xe0. |
SW2(config-if)#no switchport | Configure interface as router port. |
SW2(config-if)#ip address 10.0.0.1/24 | Assign IP address to router port xe0 |
SW2(config-if)#no shutdown | Making the interface up |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface lo | Configure interface lo |
SW2(config-if)#ip address 1.1.1.1/32 secondary | Configure secondary IP address to loopback interface . |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ospf 100 | Configure ospf |
SW2(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW2(config-router)#network 1.1.1.1/32 area 0 | Advertising loopback IP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#router rsvp | Configuring rsvp |
SW2(config-router)#hello-receipt | Configuring hello reception |
SW2(config-router)#no php | Configuring device as not a PHP |
SW2(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW2(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW2(config-trunk)#to 3.3.3.3 | Configuring second hop |
SW2(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-trunk)#exit | Exit trunk mode. |
SW2(config)#interface xe0 | Configuring interface |
SW2(config-if)#enable-rsvp | Enabling RSVP in interface |
SW2(config-if)#label-switching | Enabling MPLS labeling |
SW2(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ldp | Configuring LDP |
SW2(config-router)#targeted-peer ipv4 3.3.3.3 | Configuring LDP target peer for PW |
SW2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW2(config-router)#no multicast-hellos | Disabling LDP multicast |
SW2(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3 | Creating VPWS PW |
SW2(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-pseudowire)#exit | Exit pseudowire config mode. |
SW2(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW2(config-svc)#match outer-vlan 200 | Configuring match condition |
SW2(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW2(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-svc)#exit | Exit service template mode |
SW2(config)#interface ce0 | Configuring interface |
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW2(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW2(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none | Creating MA for domain |
SW2(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW2(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 1 | Configuring remote mep |
SW2(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 4001 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW2(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW2(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-ether-cfm-mpls-ma-mep)#exit | Exit CFM MEP configuration mode |
SW2(config-ether-cfm-mpls-md-ma)#exit | Exit CFM MA configuration mode |
SW2(config-ether-cfm-mpls-md)#exit | End current mode and down to previous mode |
SW2(config)#ethernet cfm loss-measurement profile-name lmm | Configuring LM profile |
SW2(config-cfm-lm)#measurement-type lmm | Configuring measurement type as LMM |
SW2(config-cfm-lm)#message-period 3 | Configuring message period |
SW2(config-cfm-lm)#measurement-interval 1 | Configuring measurement interval |
SW2(config-cfm-lm)#intervals-stored 3 | Configuring number of interval to be stored |
SW2(config-cfm-lm)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-cfm-lm)#end | Exit config mode |
SW3#configure terminal | Enter configure mode. |
SW3(config)#interface xe17 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 20.0.0.1/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe1 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 10.0.0.2/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface lo | Configure interface lo |
SW3(config-if)#ip address 2.2.2.2/32 secondary | Configure secondary IP address to loopback interface. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#router ospf 100 | Configure ospf |
SW3(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 2.2.2.2/32 area 0 | Advertising loopback IP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#router rsvp | Configuring rsvp |
SW3(config-router)#hello-receipt | Configuring hello reception |
SW3(config-router)#no php | Configuring device as not a PHP |
SW3(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#interface xe1 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe17 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#interface xe9 | Configure interface |
SW4(config-if)#switchport | Configure interface as switch port. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface xe1 | Configure interface |
SW4(config-if)#no switchport | Configure interface as router port. |
SW4(config-if)#ip address 20.0.0.2/24 | Assign IP address to router port |
SW4(config-if)#no shutdown | Making the interface up |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface lo | Configure interface lo |
SW4(config-if)#ip address 3.3.3.3/32 secondary | Configure secondary IP address to loopback interface . |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ospf 100 | Configure ospf |
SW4(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW4(config-router)#network 3.3.3.3/32 area 0 | Advertising loopback IP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#router rsvp | Configuring rsvp |
SW4(config-router)#hello-receipt | Configuring hello reception |
SW4(config-router)#no php | Configuring device as not a PHP |
SW4(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW4(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW4(config-trunk)#to 1.1.1.1 | Configuring second hop |
SW4(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-trunk)#exit | Exit trunk mode. |
SW4(config)#interface xe1 | Configuring interface |
SW4(config-if)#enable-rsvp | Enabling RSVP in interface |
SW4(config-if)#label-switching | Enabling MPLS labeling |
SW4(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ldp | Configuring LDP |
SW4(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring LDP target peer for PW |
SW4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW4(config-router)#no multicast-hellos | Disabling LDP multicast |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1 | Creating VPWS PW |
SW4(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-pseudowire)#exit | Exit pseudowire config mode. |
SW4(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW4(config-svc)# match outer-vlan 200 | Configuring match condition |
SW4(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW4(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-svc)#exit | Exit service template mode |
SW4(config)#interface xe9 | Configuring interface |
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW4(config)#ethernet cfm domain-type charac-ter-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW4(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 | Creating MA for domain |
SW4(config-ether-cfm-ma)#mip-creation none | Configuring MIP creation permission |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 4001 | Configuring remote mep |
SW4(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 1 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW4(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm loss-measurement reply lmm | Configuring LMR |
SW4(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-ether-cfm-mpls-ma-mep)#end | Exit config mode |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering VLAN database. |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit config mode. |
SW5(config)#interface xe9 | Configure interface ce49. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1 |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering vlan database |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit vlan database |
SW1(config)#int ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW1(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW1(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to default. |
SW1(config-ether-cfm-ma)#vlan 512 bridge 1 | Configure primary VLAN ID |
SW1(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW1(config-ether-cfm-ma)#ethernet cfm mep down mpid 2 active true ce49 | Create down mep for local-vid on ce49. |
SW1(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW1(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit ethernet cfm ma-mep mode. |
SW1(config-ether-cfm-ma)#mep crosscheck mpid 1 | Configure crosscheck to remote MEP in VLAN 512. |
SW1(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW1(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW1(config-ether-cfm)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1(config)# ethernet cfm delay-measurement profile-name DM | Creating loss-measurement profile for DM |
SW1(config-cfm-dm)# measurement-interval 1 | Specify the measurement-interval in minutes |
SW1(config-cfm-dm)# intervals-stored 3 | Specify the number of history interval to be stored |
SW1(config-cfm-dm)# message-period 1s | Specify message period interval time |
SW1(config-cfm-dm)# bins-per-fd-interval 4 | Specify the number of measurement bins per Measurement Interval for Frame Delay measurements. |
SW1(config-cfm-dm)# bins-per-ifdv-interval 3 | Specify the number of measurement bins per Measurement Interval for Inter-Frame Delay Variation measurements. |
SW1(config-cfm-dm)#commit | Commit the candidate configuration to the running configuration. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW2(config)#vlan database | Entering vlan database |
SW2(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW2(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-vlan)#exit | Exit vlan database |
SW2(config)#int ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure the interface as switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce0. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit config mode. |
SW2(config)#int xe0 | Configure interface xe0. |
SW2(config-if)#switchport | Configure the interface as switch port. |
SW2(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW2(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW2(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit config mode. |
SW3#configure terminal | Enter configure mode. |
SW3(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW3(config)#vlan database | Entering vlan database |
SW3(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW3(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-vlan)#exit | Exit vlan database |
SW3(config)#int xe17 | Configure interface xe17. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe17. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit config mode. |
SW3(config)#int xe1 | Configure interface xe1. |
SW3(config-if)#switchport | Configure the interface as switch port. |
SW3(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW3(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW3(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit config mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW4(config)#vlan database | Entering vlan database |
SW4(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW4(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-vlan)#exit | Exit vlan database |
SW4(config)#int xe1 | Configure interface xe1. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe1. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit config mode. |
SW4(config)#int xe9 | Configure interface xe9. |
SW4(config-if)#switchport | Configure the interface as switch port. |
SW4(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW4(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW4(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit config mode. |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan-bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering vlan database |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit vlan database |
SW5(config)#int xe9 | Configure interface xe9. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface xe9. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
SW5(config)#ethernet cfm domain-type character-string domain-name mdnam level 7 mip-creation default | Create cfm domain with type as character string and set mip creation criteria to default. |
SW5(config-ether-cfm)#service ma-type string ma-name testtm | Create ma type as string and set mip creation criteria to default. |
SW5(config-ether-cfm)#vlan 512 bridge 1 | Configure primary VLAN ID |
SW5(config-ether-cfm-ma)#mip-creation default | Configure MIP creation permission |
SW5(config-ether-cfm-ma)#ethernet cfm mep down mpid 1 active true xe9 | Create down mep for local-vid on xe9 |
SW5(config-ether-cfm-ma-mep)#cc multicast state enable | Enable cc multicast. |
SW5(config-ether-cfm-ma-mep)# ethernet cfm delay-measurement reply dmm | Generate and send DMM responses tacked |
SW5(config-ether-cfm-ma-mep)#exit-ether-ma-mep-mode | Exit ethernet cfm ma-mep mode. |
SW5(config-ether-cfm-ma)#mep crosscheck mpid 2 | Configure crosscheck to remote MEP in VLAN 512. |
SW5(config-ether-cfm-ma)#cc interval 10ms | Enable cc interval for 10 millisecond. |
SW5(config-ether-cfm-ma)#exit-ether-ma-mode | Exit ethernet ma mode. |
SW5(config-ether-cfm)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-ether-cfm)#exit | Exit ethernet CFM mode. |
SW1#configure terminal | Enter configure mode. |
SW1(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW1(config)#vlan database | Entering VLAN database. |
SW1(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-vlan)#exit | Exit config mode. |
SW1(config)#interface ce49 | Configure interface ce49. |
SW1(config-if)#switchport | Configure the interface as switch port. |
SW1(config-if)#bridge-group 1 | Configure interface in bridge group 1. |
SW1(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW1(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW1(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW1(config-if)#exit | Exit config mode. |
SW2#configure terminal | Enter configure mode. |
SW2(config)#interface ce0 | Configure interface ce0. |
SW2(config-if)#switchport | Configure interface as a switch port. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface xe0 | Configure interface xe0. |
SW2(config-if)#no switchport | Configure interface as router port. |
SW2(config-if)#ip address 10.0.0.1/24 | Assign IP address to router port xe0 |
SW2(config-if)#no shutdown | Making the interface up |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#interface lo | Configure interface lo |
SW2(config-if)#ip address 1.1.1.1/32 secondary | Configure secondary IP address to loopback interface. |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ospf 100 | Configure ospf |
SW2(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW2(config-router)#network 1.1.1.1/32 area 0 | Advertising loopback IP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#router rsvp | Configuring rsvp |
SW2(config-router)#hello-receipt | Configuring hello reception |
SW2(config-router)#no php | Configuring device as not a PHP |
SW2(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW2(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW2(config-trunk)#to 3.3.3.3 | Configuring second hop |
SW2(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-trunk)#exit | Exit trunk mode. |
SW2(config)#interface xe0 | Configuring interface |
SW2(config-if)#enable-rsvp | Enabling RSVP in interface |
SW2(config-if)#label-switching | Enabling MPLS labeling |
SW2(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#router ldp | Configuring LDP |
SW2(config-router)#targeted-peer ipv4 3.3.3.3 | Configuring LDP target peer for PW |
SW2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW2(config-router)#no multicast-hellos | Disabling LDP multicast |
SW2(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-router)#exit | Exit router mode. |
SW2(config)#mpls l2-circuit ETH-2001 1 3.3.3.3 | Creating VPWS PW |
SW2(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-pseudowire)#exit | Exit pseudowire config mode. |
SW2(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW2(config-svc)#match outer-vlan 200 | Configuring match condition |
SW2(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW2(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-svc)#exit | Exit service template mode |
SW2(config)#interface ce0 | Configuring interface |
SW2(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW2(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-if)#exit | Exit interface mode. |
SW2(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW2(config)#ethernet cfm domain-type character-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW2(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 mip-creation none | Creating MA for domain |
SW2(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW2(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 1 | Configuring remote mep |
SW2(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 4001 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW2(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW2(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-ether-cfm-mpls-ma-mep)#exit | Exit CFM MEP configuration mode |
SW2(config-ether-cfm-mpls-md-ma)#exit | Exit CFM MA configuration mode |
SW2(config-ether-cfm-mpls-md)#exit | End current mode and down to previous mode |
SW2(config)#ethernet cfm delay-measurement profile-name DM | Configuring DM profile |
SW2(config-cfm-dm)#measurement interval | Configuring measurement interval |
SW2(config-cfm-dm)#intervals-stored 3 | Configuring the number of history interval to be stored |
SW2(config-cfm-dm)# message-period 1s | Configuring message period interval time |
SW2(config-cfm-dm)# bins-per-fd-interval 4 | Configuring the number of measurement bins per Meas-urement Interval for Frame Delay measurements. |
SW2(config-cfm-dm)# bins-per-ifdv-interval 3 | Configuring the number of measurement bins per Meas-urement Interval for Inter-Frame Delay Variation measure-ments. |
SW2(config-cfm-dm)#commit | Commit the candidate configuration to the running configuration. |
SW2(config-cfm-dm)#end | Exit config mode |
SW3#configure terminal | Enter configure mode. |
SW3(config)#interface xe17 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 20.0.0.1/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe1 | Configure interface |
SW3(config-if)#no switchport | Configure interface as router port. |
SW3(config-if)#ip address 10.0.0.2/24 | Assign IP address to router port |
SW3(config-if)#no shutdown | Making the interface up |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface lo | Configure interface lo |
SW3(config-if)#ip address 2.2.2.2/32 secondary | Configure secondary IP address to loopback interface . |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#router ospf 100 | Configure ospf |
SW3(config-router)#network 10.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW3(config-router)#network 2.2.2.2/32 area 0 | Advertising loopback IP |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#router rsvp | Configuring rsvp |
SW3(config-router)#hello-receipt | Configuring hello reception |
SW3(config-router)#no php | Configuring device as not a PHP |
SW3(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW3(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-router)#exit | Exit router mode. |
SW3(config)#interface xe1 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW3(config)#interface xe17 | Configuring interface |
SW3(config-if)#enable-rsvp | Enabling RSVP in interface |
SW3(config-if)#label-switching | Enabling MPLS labeling |
SW3(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW3(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW3(config-if)#exit | Exit interface mode. |
SW4#configure terminal | Enter configure mode. |
SW4(config)#interface xe9 | Configure interface |
SW4(config-if)#switchport | Configure interface as switch port. |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface xe1 | Configure interface |
SW4(config-if)#no switchport | Configure interface as router port. |
SW4(config-if)#ip address 20.0.0.2/24 | Assign IP address to router port |
SW4(config-if)#no shutdown | Making the interface up |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#interface lo | Configure interface lo |
SW4(config-if)#ip address 3.3.3.3/32 secondary | Configure secondary IP address to loopback interface . |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ospf 100 | Configure ospf |
SW4(config-router)#network 20.0.0.0/24 area 0 | Advertising 10 network |
SW4(config-router)#network 3.3.3.3/32 area 0 | Advertising loopback IP |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#router rsvp | Configuring rsvp |
SW4(config-router)#hello-receipt | Configuring hello reception |
SW4(config-router)#no php | Configuring device as not a PHP |
SW4(config-router)#revert-timer 10 | Configuring reversion time of RSVP |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#rsvp-trunk to-1 ipv4 | Configuring RSVP path |
SW4(config-trunk)#to 2.2.2.2 | Configuring first hop |
SW4(config-trunk)#to 1.1.1.1 | Configuring second hop |
SW4(config-trunk)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-trunk)#exit | Exit trunk mode. |
SW4(config)#interface xe1 | Configuring interface |
SW4(config-if)#enable-rsvp | Enabling RSVP in interface |
SW4(config-if)#label-switching | Enabling MPLS labeling |
SW4(config-if)#enable-ldp ipv4 | Enabling ldp on interface |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#router ldp | Configuring LDP |
SW4(config-router)#targeted-peer ipv4 1.1.1.1 | Configuring LDP target peer for PW |
SW4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit target peer mode |
SW4(config-router)#no multicast-hellos | Disabling LDP multicast |
SW4(config-router)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-router)#exit | Exit router mode. |
SW4(config)#mpls l2-circuit ETH-2001 1 1.1.1.1 | Creating VPWS PW |
SW4(config-pseudowire)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-pseudowire)#exit | Exit pseudowire config mode. |
SW4(config)#service-template ETH-2001 | Configuring service template profile for PW |
SW4(config-svc)# match outer-vlan 200 | Configuring match condition |
SW4(config-svc)# rewrite ingress push 2000 | Configuring action for match |
SW4(config-svc)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-svc)#exit | Exit service template mode |
SW4(config)#interface xe9 | Configuring interface |
SW4(config-if)#mpls-l2-circuit ETH-2001 ser-vice-template ETH-2001 | Mapping VPWS in AC |
SW4(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-if)#exit | Exit interface mode. |
SW4(config)#hardware-profile filter cfm-domain-name-str enable | Enabling HW filter for character string domain name |
SW4(config)#ethernet cfm domain-type charac-ter-string domain-name 12345 level 7 mip-creation none | Configuring CFM domain over VPWS |
SW4(config-ether-cfm-mpls-md)#service ma-type string ma-name 43981 | Creating MA for domain |
SW4(config-ether-cfm-ma)#mip-creation none | Configuring MIP creation permission |
SW4(config-ether-cfm-mpls-md-ma)#cc interval 100ms | Configuring CFM interval |
SW4(config-ether-cfm-mpls-md-ma)#mep cross-check mpid 4001 | Configuring remote mep |
SW4(config-ether-cfm-mpls-md-ma)#ethernet cfm mep up mpid 1 active true vpws ETH-2001 | Configuring local mep and mapping the same with vpws ser-vice |
SW4(config-ether-cfm-mpls-ma-mep)#cc mul-ticast state enable | Enabling the CFM multicast |
SW4(config-ether-cfm-mpls-ma-mep)#ethernet cfm delay-measurement reply dmm | Configuring DMR |
SW4(config-ether-cfm-mpls-ma-mep)#commit | Commit the candidate configuration to the running configuration. |
SW4(config-ether-cfm-mpls-ma-mep)#end | Exit config mode |
SW5#configure terminal | Enter configure mode. |
SW5(config)#bridge 1 protocol rstp vlan- bridge | Create bridge 1 as an RSTP VLAN-aware bridge. |
SW5(config)#vlan database | Entering VLAN database. |
SW5(config-vlan)#vlan 512 bridge 1 state enable | Create VLAN 512 on bridge 1. |
SW5(config-vlan)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-vlan)#exit | Exit config mode. |
SW5(config)#interface xe9 | Configure interface ce49. |
SW5(config-if)#switchport | Configure the interface as switch port. |
SW5(config-if)#bridge-group 1 | Configure interface in bridge group 1 |
SW5(config-if)#switchport mode trunk | Configure interface mode as trunk. |
SW5(config-if)#switchport trunk allowed vlan all | Allow all VLANs on interface ce49. |
SW5(config-if)#commit | Commit the candidate configuration to the running configuration. |
SW5(config-if)#exit | Exit config mode. |
PE1#configure terminal | Enter the configure mode |
PE1(config)#interface lo | Enter the interface mode for the loopback interface |
PE1(config-if)#ip address 7.7.7.7/32 secondary | Configure IP address on loopback interface |
PE1(config-if)#exit | Exit the interface mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
PE1#configure terminal | Enter the configuration mode |
PE1(config)#evpn mpls enable | Enable EVPN MPLS |
PE1(config-evpn-mpls)#evpn mpls vtep-ip-global 7.7.7.7 | Configure the VTEP global IP to loopback IP |
PE1(config)#commit | Commit candidate configuration to the running configuration. Note: Reload is required after enabling or disabling EVPN MPLS |
PE1(config)#router ldp | Enter the Router LDP mode |
PE1(config-router)#router-id 7.7.7.7 | Set the router ID to IP address 7.7.7.7 |
PE1(config-router)#targeted-peer ipv4 8.8.8.8 | Configure the targeted peer 8.8.8.8 |
PE1(config-router-targeted-peer)#exit | Exit the targeted peer |
PE1OcNOS(config-router)#exit | Exit from the LDP mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#interface xe21 | Enter the interface mode for xe21 |
PE1(config-if)#ip address 123.1.1.2/24 | Configure the IP address on the interface |
PE1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
PE1(config-if)#label-switching | Enable label switching on the interface |
PE1(config-if)#exit | Exit the interface mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#router ospf 1 | Enter the router OSPF mode |
PE1(config-router)#ospf router-id 7.7.7.7 | Configure the Router-ID |
PE1(config-router)#network 7.7.7.7/32 area 0.0.0.0 | Advertise the loopback address in OSPF |
PE1(config-router)#network 123.1.1.0/24 area 0.0.0.0 | Advertise xe21 network address in OSPF |
PE1(config-router)#exit | Exit the router OSPF mode and return to Configure mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#router bgp 1 | Enter the router BGP mode, AS number 1 |
PE1(config-router)#neighbor 8.8.8.8 remote-as 65010 | Configure PE2 as iBGP neighbor using its loopback IP |
PE1(config-router)#neighbor 8.8.8.8 update-source lo | Source of routing updates as loop-back |
PE1(config-router)#address-family l2vpn evpn | Enter the address family mode as EVPN |
PE1(config-router-af)#neighbor 8.8.8.8 activate | Enable the EVPN address family for the neighbor |
PE1(config-router-af)#exit | Exit the address family mode |
PE1(config-router)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#mac vrf vrf2 | Enter the VRF mode |
PE1(config-vrf)#rd 7.7.7.7:2 | Configure the Route-Distinguisher (rd) value as 7.7.7.2 |
PE1(config-vrf)#route-target both 2:2 | Configure the import and export value as 2:2 |
PE1(config-vrf)#exit | Exit the VRF mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#evpn mpls id 2 xconnect target-mpls-id 52 | Configure the EVPN VPWS identifier with source identifier 2 and target identifier 52 |
PE1(config)#host-reachability-protocol evpn-bgp vrf2 | Map VRF "VRF2" to the EVPN VPWS identifier |
PE1(config)#commit | Commit candidate configuration to the running configuration |
PE1(config)#interface xe5 | Enter the interface mode for xe5 |
PE1(config-if)#description access-side-int | Provide an Interface description |
PE1(config-if)#interface xe5.2 switchport | Create the L2 subinterface for the physical interface xe6 |
PE1(config-if)#encapsulation dot1q 2 | Set the encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
PE1(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration |
PE1(config-access-if)#map vpn-id 2 | Map VPN-id 252 to interface xe2.2 (VPWS) |
PE1(config-access-if)#exit | Exit the access interface mode |
PE1(config-if)#commit | Commit the candidate configuration to the running configuration |
PE1(config)#hardware-profile filter cfm-domain-name-str enable | Configure the CFM-domain-name-SRR profile to enable CFM |
PE1(config)#ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none | Create the CFM domain for EVPN ELINE with type as character string and set MIP creation to none |
PE1(config-ether-cfm-mpls-md)#service ma-type string ma-name evp1 | Create MA type with string and set MIP creation to none |
PE1(config-ether-cfm-mpls-ma)# evpn2 | Configure EVPN <EVPN-id> |
PE1(config-ether-cfm-mpls-ma)#ethernet cfm mep up mpid 10 active true evpn 2 | Create up-MEP for local EVPN id 2 |
PE1(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable CC multicast |
PE1(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode | Exit Ethernet MA-MEP-MEP-mode |
PE1(config-ether-cfm-mpls-ma)#mep crosscheck mpid 20 | Configure cross check remote MPID |
PE1(config-ether-cfm-mpls-ma)#cc interval 100 | Enable CC interval with value 2 that is 100 milliseconds |
PE1(config-ether-cfm-mpls-ma)#exit-ether-ma-mode | Exit the Ethernet MA mode |
PE1(config-ether-cfm-mpls-md)#exit | Exit the Ethernet CFM mode |
PE1(config)#commit | Commit the candidate configuration to the running configuration |
P1#configure terminal | Enter the configure mode |
P1(config)#interface lo | Enter the interface mode for the loopback interface |
P1(config-if)#ip address 2.2.2.2/32 secondary | Configure the IP address for the loopback interface |
P1(config-if)#exit | Exit the interface mode |
P1(config)#commit | Commit the candidate configuration to the running configuration |
P1(config)#router ldp | Enter the router LDP mode |
P1(config-router)#router-id 2.2.2.2 | Set the router ID to IP address 2.2.2.2 |
P1(config-router)#exit | Exit from the LDP mode |
P1(config)#commit | Commit the candidate configuration to the running configuration |
P1(config)#interface xe21 | Enter the interface mode for xe21 |
P1(config-if)#ip address 123.1.1.1/24 | Configure the IP address on the interface |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
P1(config-if)#label-switching | Enable label switching on the interface |
P1(config-if)#exit | Exit the interface mode |
P1(config)#interface Se14 | Enter the interface mode for xe14 |
P1(config-if)#ip address 100.1.0.1/30 | Configure the IP address on the interface |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
P1(config-if)#label-switching | Enable label switching on the interface |
P1(config-if)#exit | Exit the interface mode |
P1(config)#commit | Commit the candidate configuration to the running configuration |
P1(config)#router ospf 1 | Enter the router OSPF mode |
P1(config-router)#ospf router-id 2.2.2.2 | Set the Router ID as the loopback IP |
P1(config-router)#network 2.2.2.2/32 area 0.0.0.0 | Advertise the loopback address in OSPF |
P1(config-router)#network 100.1.0.0/16 area 0.0.0.0 | Advertise the xe5 network address in OSPF |
P1(config-router)#network 123.1.1.0/24 area 0.0.0.0 | Advertise xe3 network address in OSPF |
P1(config-router)#exit | Exit the router OSPF mode and return to configure mode |
P1(config)#commit | Commit the candidate configuration to the running configuration |
P2#configure terminal | Enter configuration mode. |
P2(config)#interface lo | Enter the interface mode for the loop-back interface |
P2(config-if)#ip address 3.3.3.3/32 secondary | Configure the IP address on loop-back interface |
P2(config-if)#exit | Exit interface mode |
P2(config)#commit | Commit the candidate configuration to the running configuration |
P2(config)#router ldp | Enter the router LDP mode |
P2(config-router)#router-id 3.3.3.3 | Set the router ID to IP address 10.143.73.3 |
P2(config-router)#exit | Exit from router target peer and LDP mode |
P2(config)#commit | Commit the candidate configuration to the running configuration |
P2(config)#interface xe2 | Enter the Interface mode for xe2 |
P2(config-if)# ip address 100.1.0.1/30 | Configure IP address on the interface |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
P2(config-if)#label-switching | Enable label switching on the interface |
P2(config-if)#exit | Exit interface mode |
P2(config)#interface xe22 | Enter the Interface mode for xe22 |
P2(config-if)# ip address 124.1.1.1/24 | Configure the IP address on the interface |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
P2(config-if)#label-switching | Enable label switching on the interface |
P2(config-if)#exit | Exit the interface mode |
P2(config)#commit | Commit the candidate configuration to the running configuration |
P2(config)#router ospf 1 | Enter the Router OSPF mode. |
P2(config-router)#ospf router-id 3.3.3.3 | Setting the Router ID as Loop-back IP |
P2(config-router)#network 3.3.3.3/32 area 0.0.0.0 | Advertise the loop-back address in OSPF |
P2(config-router)#network 100.1.0.0/16 area 0.0.0.0 | Advertise xe5 network address in OSPF |
(config-router)#network 124.1.1.0/24 area 0.0.0.0 | Advertise xe3 network address in OSPF |
P2(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
P2(config)#commit | Commit the candidate configuration to the running configuration |
PE2#configure terminal | Enter the configuration mode |
PE2(config)#interface lo | Enter the Interface mode for the loop-back interface |
PE2(config-if)#ip address 8.8.8.8/32 secondary | Configure the IP address on loop-back interface |
PE2(config-if)#exit | Exit the Interface mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#router ldp | Enter the Router LDP mode. |
PE2(config-router)#router-id 8.8.8.8 | Set the router ID to IP address 8.8.8.8 |
PE2(config-router)#targeted-peer ipv4 7.7.7.7 | Configure targeted peer |
PE2(config-router)#exit | Exit from the router target peer and LDP mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#evpn mpls enable | Enable EVPN MPLS |
PE2(config)#commit | Commit the candidate configuration to the running configuration Note: Reload is required after Enabling or Disabling EVPN MPLS |
PE2(config-evpn-mpls)#evpn mpls vtep-ip-global 8.8.8.8 | Configure the VTEP global IP to loop-back IP.‘ |
PE2(config-evpn-mpls)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#interface xe18 | Enter the interface mode for xe18 |
PE2(config-if)#enable-ldp ipv4 | Configure IP address on the interface |
PE2(config-if)#label-switching | Enable label switching on the interface |
PE2(config-if)#exit | Exit the interface mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#router ospf 1 | Enter the interface mode for xe2 |
PE2(config-router)#ospf router-id 8.8.8.8 | Router-ID configurations |
PE2(config-router)#network 8.8.8.8/32 area 0.0.0.0 | Advertise loop-back address in OSPF. |
PE2(config-router)#network 124.1.1.0/24 area 0.0.0.0 | Advertise the xe5 network address in OSPF |
PE2(config-router)#exit | Exit the router OSPF mode and return to configure mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#router bgp 1 | Enter the router BGP mode, ASN: 65010 |
PE2(config-router)#neighbor 7.7.7.7 remote- as 65010 | Configure PE1 as iBGP neighbor using it's loopback IP address |
PE2(config-router)#neighbor 7.7.7.7 update- source lo | Source of routing updates as loop-back |
PE2(config-router)#address-family l2vpn evpn | Enter the address family mode as EVPN |
PE2(config-router-af)#neighbor 7.7.7.7 activate | Enable the EVPN Address family for neighbor |
PE2(config-router-af)#exit | Exit the address family mode |
PE2(config-router)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#mac vrf vrf2 | Enter the VRF mode |
PE2(config-vrf)#rd 8.8.8.8:2 | Configure the rd value 8.8.8.8:2 |
PE2(config-vrf)#route-target both 2:2 | Configure the import and export value as 2:2 |
PE2(config-vrf)#exit | Exit the VRF Mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#evpn mpls id 52 xconnect target- mpls-id 2 | Configure the EVPN-ELINE identifier with source identifier 52 and target identifier 2 |
PE2(config-evpn-mpls)#host-reachability- protocol evpn-bgp vrf2 | Map VFRF "VRF2" to EVPN-ELINE identifier |
PE2(config-evpn-mpls)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#interface xe4 | Enter the interface mode for xe4 |
PE2(config-if)#description access-side-int | Provide an interface description |
PE2(config-if)#interface xe2 switchport | Create L2 subinterface of physical interface xe2 |
PE2(config-if)#encapsulation dot1q 2 | Set encapsulation to dot1q with VLAN ID 2 Supported encapsulation is dot1ad, dot1q, untagged, default |
PE2(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration |
PE2(config-access-if)#map vpn-id 52 | Map VPN-id 52 to interface xe2.2 (VPWS) |
PE2(config-access-if)#exit | Exit out of the access interface mode |
PE2(config-if)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#hardware-profile filter cfm-domain- name-str enable | Configure the CFM-domain-name-str profile to enable CFM |
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none | Create CFM domain for EVPN ELINE with type as character string and set MIP creation to none |
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1 | Create MA type with string and set MIP creation to none |
PE2(config-ether-cfm-mpls-ma)# evpn 52 | Configure EVPN <EVPN-id> |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52 | Create up-MEP for local EVPN id 52 |
PE2s(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable CC multicast |
PE2(config)#ethernet cfm loss-measurement profile-name lmm | Configure LM profile |
PE2(config-cfm-lm)#measurement-type lmm | Configure measurement type as LMM |
PE2(config-cfm-lm)#measurement-interval 1 | Configure measurement interval |
PE2(config-cfm-lm)#intervals-stored 3 | Configure number of interval to be stored |
PE2(config-cfm-lm)#commit | Commit the candidate configuration to the running configuration. |
PE2(config-cfm-lm)#end | Exit configure mode |
PE2(config)#hardware-profile filter cfm-domain- name-str enable | Configure the CFM-domain-name-STR profile to enable CFM |
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none | Create the CFM domain for EVPN ELINE with type as character string and set MIP creation to none |
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1 | Create the MA type with string and set MIP creation to none |
PE2(config-ether-cfm-mpls-ma)# evpn 52 | Configure EVPN <EVPN-id> |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52 | Create up-MEP for local EVPN id 52 |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm loss-measurement reply lmm | Enable the LM responder |
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable CC multi cast |
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode | Exit Ethernet MA-MEP-mode |
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10 | Configure cross check to remote MEP for VLAN 2 |
PE2(config-ether-cfm-mpls-ma)#cc interval 100 | Enable the CC interval with value 2 that is 10 milliseconds |
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode | Exit the Ethernet MA mode |
PE2(config-ether-cfm-mpls)#exit | Exit the Ethernet CFM mode |
PE2(config)#exit | Exit the configure mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#ethernet cfm loss-measurement profile-name slm | Configure the LM profile |
PE2(config-cfm-lm)#measurement-type lmm | Configure measurement type as LMM |
PE2(config-cfm-lm)#message-period 3 | Configure the message period |
PE2(config-cfm-lm)#measurement-interval 1 | Configure the measurement interval |
PE2(config-cfm-lm)#intervals-stored 3 | Configure the number of interval to the stored |
PE2(config-cfm-lm)#commit | Commit the candidate configuration to the running configuration |
PE2(config-cfm-lm)#end | Exit the configure mode |
PE2(config)#hardware-profile filter cfm-domain- name-str enable | Configure CFM-domain-name-str profile to enable CFM |
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none | Create CFM domain for EVPN ELINE with type as character string and set MIP creation to none |
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1 | Create MA type with string and set MIP creation to none |
PE2(config-ether-cfm-mpls-ma)# evpn 52 | Configure EVPN <EVPN-id> |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52 | Create up-MEP for local EVPN id 52 |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm loss-measurement reply slm | Enable SLM responder |
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable CC multi cast |
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode | Exit Ethernet MA-MEP-mode |
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10 | Configure cross check to remote MEP for VLAN 2 |
PE2(config-ether-cfm-mpls-ma)#cc interval 100 | Enable CC interval with value 2 that is 100 milliseconds |
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode | Exit the Ethernet MA mode |
PE2(config-ether-cfm-mpls)#exit | Exit the Ethernet CFM mode |
PE2(config)#exit | Exit from configure mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |
PE1(config)# ethernet cfm delay-measurement profile-name dmm | Create the loss-measurement profile for DM |
PE1(config-cfm-dm)# measurement-interval 1 | Specify the measurement-interval in minutes |
PE1(config-cfm-dm)# intervals-stored 3 | Specify the number of history interval to be stored |
PE1(config-cfm-dm)# message-period 1s | Specify the message period interval time |
PE1(config-cfm-dm)# bins-per-fd-interval 4 | Specify the number of measurement bins per Measurement Interval for Frame Delay measurements |
PE1(config-cfm-dm)# bins-per-ifdv-interval 3 | Specify the number of measurement bins per Measurement Interval for Inter-Frame Delay Variation measurements |
PE1(config-cfm-dm)#commit | Commit the candidate configuration to the running configuration |
PE2(config)#hardware-profile filter cfm-domain- name-str enable | Configure CFM-domain-name-str profile to enable CFM |
PE2(config)# ethernet cfm domain-type character-string domain-name evpn1 level 7 mip-creation none | Create CFM domain for EVPN-ELINE with type as character string and set MIP creation to none |
PE2(config-ether-cfm-mpls-md)# service ma-type string ma-name evp1 | Create MA type with string and set MIP creation to none |
PE2(config-ether-cfm-mpls-ma)# evpn 52 | Configure EVPN <EVPN-id> |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm mep up mpid 20 active true evpn 52 | Create up-MEP for local EVPN id 52 |
PE2(config-ether-cfm-mpls-ma)# ethernet cfm delay-measurement reply dmm | Enable DMM responder |
PE2(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable the CC multicast |
PE2(config-ether-cfm-mpls-ma-mep)#exit-ether- ma-mep-mode | Exit Ethernet MA-MEP-mode |
PE2(config-ether-cfm-mpls-ma)# mep crosscheck mpid 10 | Configure cross check to remote MEP for VLAN 2 |
PE2(config-ether-cfm-mpls-ma)#cc interval 100 | Enable CC interval with value 2 that is 10 milliseconds |
PE2(config-ether-cfm-mpls-ma)#exit-ether-ma- mode | Exit the Ethernet MA mode |
PE2(config-ether-cfm-mpls)#exit | Exit the Ethernet CFM mode |
PE2(config)#exit | Exit from the configure mode |
PE2(config)#commit | Commit the candidate configuration to the running configuration |