#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction. |
(config-if)#exit | Exit interface mode |
#configure terminal | Enter configuration mode. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#evpn mpls vtep-ip-global 10.143.73.1 | Configuring VTEP global IP to loopback IP |
(config)#commit | Commit candidate configuration to be running configuration Note: Reload is required after Enabling/Disabling EVPN MPLS Feature. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.1 | Set the router ID to IP address 10.143.73.1 |
(config-router)#transport-address ipv4 10.143.73.1 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#targeted-peer ipv4 10.143.73.3 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for eth2. |
(config-if)#ip address 10.255.128.8/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.1 | Router-ID configurations |
(config-router)#network 10.143.73.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.3 remote-as 65010 | Configuring PE3 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.3 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.3 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:2 | Configuring Route-Distinguisher value 10.143.73.1:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1001 | Configuring Route-Distinguisher value 10.143.73.1:1001 |
(config-vrf)#route-target both evpn-auto-rt | Configuring import and export value as evpn-auto-rt. Route target will be derived automatically. Support: route-target export route-target import |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 2 xconnect target-mpls-id 252 | Configure the EVPN-VPWS identifier with source identifier 2 and target identifier 252 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 | Configure the EVPN-VPLS identifier with identifier 1001 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe6 | Enter the Interface mode for xe6. |
(config-if)#interface xe6.2 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 2 | Map vpn-id 2 to interface xe6.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe6.1001 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 1001 | Setting Encapsulation to dot1q with VLAN ID 1001 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1001 | Map vpn-id 1001 to interface xe6.1001 (VPLS) |
OcNOS(config-access-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.6/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.255.128.25 | Set the router ID to IP address 10.255.128.25 |
(config-router)#transport-address ipv4 10.255.128.25 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.9/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.25/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.6 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.6/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise xe5 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.3/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.3 | Set the router ID to IP address 10.143.73.3 |
(config-router)#transport-address ipv4 10.143.73.3 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit router mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration Note: Reload is required after Enabling/Disabling EVPN MPLS Feature |
(config)#evpn mpls vtep-ip-global 10.143.73.3 | Configuring VTEP global IP to loopback IP |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.24/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.3 | Router-ID configurations |
(config-router)#network 10.143.73.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring PE1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.3:2 | Configuring Route-Distinguisher value 10.143.73.3:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 Support: route-target export route-target import |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1001 | Configuring Route-Distinguisher value 10.143.73.1:1001 |
(config-vrf)#route-target both evpn-auto-rt | Configuring import and export value as evpn-auto-rt. Route target will be derived automatically. |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 252 xconnect target-mpls-id 2 | Configure the EVPN-ELINE identifier with source identifier 252 and target identifier 2 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-ELINE identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 | Configure the EVPN-ELAN identifier with identifier 1001 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-ELAN identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe2 | Enter the Interface mode for xe2. |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#interface xe2.2 switchport | Creating L2 sub interface of physical interface xe2 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 2 | Map vpn-id 252 to interface xe2.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe2.1001 switchport | Creating L2 sub interface of physical interface xe2 |
(config-if)#encapsulation dot1q 1001 | Setting Encapsulation to dot1q with VLAN ID 1001 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1001 | Map vpn-id 1001 to interface xe2.1001 (VPLS) |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#evpn mpls vtep-ip-global 10.143.73.1 | Configuring VTEP global IP to loopback IP |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.1 | Set the router ID to IP address 10.143.73.1 |
(config-router)# transport-address ipv4 10.143.73.1 | Configure transport address at LDP mode |
(config-router)#targeted-peer ipv4 10.143.73.5 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe3 | Enter the Interface mode for eth2. |
(config-if)#ip address 10.255.128.8/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 1 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.1 | Router-ID configurations |
(config-router)#network 10.143.73.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.5 remote-as 65010 | Configuring PE2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.2 remote-as 65010 | Configuring ABR1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.5 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.2 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.1/32 | Advertise 10.143.73.1/31 network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.2 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.5 activate | Enabling EVPN Address family for neighbor |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:2 | Configuring Route-Distinguisher value 10.143.73.1:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 Support: route-target export route-target import |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1001 | Configuring Route-Distinguisher value 10.143.73.1:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 Support: route-target export Support: route-target export |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls id 2 xconnect target-mpls-id 252 | Configure the EVPN-VPWS identifier with source identifier 2 and target identifier 252 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 | Configure the EVPN-VPLS identifier with identifier 1001 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe6 | Enter the Interface mode for xe6. |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#interface xe6.2 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 2 | Map vpn-id 2 to interface xe6.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe6.1001 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 1001 | Setting Encapsulation to dot1q with VLAN ID 1001 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1001 | Map vpn-id 1001 to interface xe6.1001 (VPLS) |
(config-access-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.2/32 secondary | Configure IP address on loopback interface. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#transport-address ipv4 10.143.73.2 | Configure transport address under router ldp |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.9/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.25/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#enable ext-ospf-multi-inst | Enable multiple-instance capabilit |
(config)#router ospf 1 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.2 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.2/32 area 0.0.0.0 instance-id 100 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.25/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#network 10.143.73.2/32 area 0.0.0.0 instance-id 1 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.9/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring PE1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring ABR2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.2/32 | Advertise the network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.4 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.4 next-hop-self | Configure next-hopself for the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.4 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.1 activate | Activate the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.1 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.1 next-hop-self | Configure next-hopself for the ipv4 labeled-unicast neighbor |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.3/32 secondary | Configure IP address on loopback interface. |
(config-f)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#commit | Commit the transaction. |
(config)#interface xe5 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.24/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe6 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.35/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.3 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config-router)#network 10.255.128.35/31 area 0.0.0.0 | Advertise xe5 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.4/32 secondary | Configure IP address on loopback interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#transport-address ipv4 10.143.73.4 | Configure transport address under router ldp |
(config)#commit | Commit the transaction. |
(config)#interface xe6 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.34/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe3 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.45/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#enable ext-ospf-multi-inst | Enable multiple-instance capabilit |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.4 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.4/32 area 0.0.0.0 instance-id 200 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.34/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config)#router ospf 200 | Enter the Router OSPF mode. |
(config-router)#network 10.255.128.45/31 area 0.0.0.0 instance-id 100 | Advertise xe5 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.2 remote-as 65010 | Configuring ABR1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.5 remote-as 65010 | Configuring PE2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.2 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.5 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.4/32 | Advertise the network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.2 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.2 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.2 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.5 activate | Activate the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.5 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.5 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
(config-router-af)#commit | Commit the transaction. |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.5/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.5 | Set the router ID to IP address 10.143.73.5 |
(config-router)#transport-address ipv4 10.143.73.5 | Configure transport address under router ldp |
(config-router)#targeted-peer ipv4 10.143.73.3 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration Note: Reload is required after Enabling/Disabling EVPN MPLS Feature |
(config)#evpn mpls vtep-ip-global 10.143.73.5 | Configuring VTEP global IP to loopback IP |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.44/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-router)#commit | Commit the transaction. |
(config)#router ospf 200 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.5 | Router-ID configurations |
(config-router)#network 10.143.73.5/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.44/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring PE1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring ABR2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.5/32 | Advertise the network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.4 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.5:2 | Configuring Route-Distinguisher value 10.143.73.3:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 Support: route-target export route-target import |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.5:1001 | Configuring Route-Distinguisher value 10.143.73.3:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#commit | Commit the transaction. |
(config)#evpn mpls id 252 xconnect target-mpls-id 2 | Configure the EVPN-ELINE identifier with source identifier 252 and target identifier 2 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-ELINE identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 | Configure the EVPN-ELAN identifier with identifier 1001 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-ELAN identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe2 | Enter the Interface mode for xe2. |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#interface xe2.2 switchport | Creating L2 sub interface of physical interface xe2 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 252 | Map vpn-id 252 to interface xe2.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe2.1001 switchport | Creating L2 sub interface of physical interface xe2 |
(config-if)#encapsulation dot1q 1001 | Setting Encapsulation to dot1q with VLAN ID 1001 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1001 | Map vpn-id 1001 to interface xe2.1001 (VPLS) |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.1 | Set the router ID to IP address 10.143.73.1 |
(config-router)#transport-address ipv4 10.143.73.1 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#targeted-peer ipv4 10.143.73.3 | Configure targeted peer. |
(config-router)#targeted-peer ipv4 10.143.73.4 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config-router)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.1 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.8/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.1 | Router-ID configurations |
(config-router)#network 10.143.73.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.3 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.3 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.3 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.4 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1700 | Configuring Route-Distinguisher value 10.143.73.1:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1001 | Configuring Route-Distinguisher value 10.143.73.1:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with source identifier 1700 and target identifier 1800 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe6 | Enter the Interface mode for xe6. |
(config-if)#interface xe6.1700 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1700 | Map vpn-id 1700 to interface xe6.1700 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe6.300 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface xe6.3000 (VPLS) |
(config-access-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.6/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.6 | Set the router ID to IP address 10.143.73.6 |
(config-router)#transport-address ipv4 10.143.73.6 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config-router)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.9/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.25/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface po92 | Enter the Interface mode for po92 |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#interface xe7 | Enter the Interface mode for xe7 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#interface xe8 | Enter the Interface mode for xe8 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.6 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.6/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise xe3 network address in OSPF that comes under same subnet |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#network 10.255.128.36/31 area 0.0.0.0 | Advertise po92 network address in OSPF that comes under same subnet |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
OcNOS(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.3/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.3 | Set the router ID to IP address 10.143.73.3 |
(config-router)#transport-address ipv4 10.143.73.3 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router-targeted-peer)# targeted-peer ipv4 10.143.73.4 | Configure targeted peer |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS Note: Reload is required after Enabling/Disabling EVPN MPLS Feature |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.3 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#evpn esi hold-time 60 | Delay timer for ESI to come up before enabling evpn |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.24/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.3 | Router-ID configurations |
(config-router)#network 10.143.73.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
OcNOS(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.4 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.3:1700 | Configuring Route-Distinguisher value 10.143.73.3:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 Support: route-target export route-target import |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.3:1001 | Configuring Route-Distinguisher value 10.143.73.3:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1700 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config)#interface po90 | Enter the Interface mode for po90. |
(config-if)#load-interval 30 | Load interval setting |
(config-if)#evpn multi-homed system-mac 0000.aaaa.bbbc | Configure ESI on a link on which Multi homed CE is connected |
(config-if)#interface po90.1700 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1800 | Map vpn-id 2 to interface xe2.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface po90.300 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface po90.300 (VPLS) |
(config-access-if)#exit | Exiting out of Access if mode |
(config-if)#interface xe2 | Enter the Interface mode for xe2 |
(config-if)#channel-group 90 mode active | Putting interface xe2 in Dynamic LAG po90 |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.4/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.4 | Set the router ID to IP address 10.143.73.4 |
(config-router)#transport-address ipv4 10.143.73.4 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router-targeted-peer)# targeted-peer ipv4 10.143.73.3 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router LDP mode |
(config-router)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.4 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#evpn esi hold-time 60 | Delay timer for ESI to come up before enabling evpn |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.36/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe7 | Enter the Interface mode for xe7 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#interface xe8 | Enter the Interface mode for xe8 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.4 | Router-ID configurations |
(config-router)#network 10.143.73.4/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.36/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.3 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.3 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.3 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.4:1700 | Configuring Route-Distinguisher value 10.143.73.4:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.4:1001 | Configuring Route-Distinguisher value 10.143.73.4:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1800 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config)#interface po90 | Enter the Interface mode for po90. |
(config-if)#load-interval 30 | Load interval setting |
(config-if)#evpn multi-homed system-mac 0000.aaaa.bbbc | Configure ESI on a link on which Multi homed CE is connected |
(config-if)#interface po90.1700 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1800 | Map vpn-id 1800 to Dynamic LAG sub interface po90.1700 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface po90.300 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface po90.3000 (VPLS) |
(config-access-if)#exit | Exiting out of Access if mode |
(config-if)#interface xe2 | Enter the Interface mode for xe2 |
(config-if)#channel-group 90 mode active | Putting interface xe2 in Dynamic LAG po90 |
(config-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.1 | Set the router ID to IP address 10.143.73.1 |
(config-router)#transport-address ipv4 10.143.73.1 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router-targeted-peer)# targeted-peer ipv4 10.143.73.6 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.1 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.8/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.1 | Router-ID configurations |
(config-router)#network 10.143.73.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.8/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit the transaction. |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.5 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.5 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.6 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.6 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.5 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.6 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit the transaction. |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1700 | Configuring Route-Distinguisher value 10.143.73.1:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:1001 | Configuring Route-Distinguisher value 10.143.73.1:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit the transaction. |
(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with source identifier 1700 and target identifier 1800 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe6 | Enter the Interface mode for xe6. |
(config-if)#interface xe6.1700 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1700 | Map vpn-id 1700 to interface xe6.1700 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface xe6.300 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface xe6.3000 (VPLS) |
(config-access-if)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.2/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.2 | Set the router ID to IP address 10.143.73.2 |
(config-router)#transport-address ipv4 10.143.73.2 | Configure transport address under router ldp |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#interface xe3 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.9/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.25/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#enable ext-ospf-multi-inst | Enable multiple-instance capabilit |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.2 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.2/32 area 0.0.0.0 instance-id 200 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.25/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config)#router ospf 200 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.2 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.2/32 area 0.0.0.0 instance-id 100 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.9/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring PE1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring ABR2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.2/32 | Advertise the network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.4 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.4 next-hop-self | Configure next-hopself for the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.4 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.1 activate | Activate the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.1 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.1 next-hop-self | Configure next-hopself for the ipv4 labeled-unicast neighbor |
(config-router-af)#commit | Commit the transaction. |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.3/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.3 | Set the router ID to IP address 10.143.73.3 |
(config-router)#transport-address ipv4 10.143.73.3 | Configure transport address under router LDP |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe5 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.24/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe6 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.35/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 200 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.3 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.24/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config-router)#network 10.255.128.35/31 area 0.0.0.0 | Advertise xe5 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.4/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.4 | Set the router ID to IP address 10.143.73.4 |
(config-router)#transport-address ipv4 10.143.73.4 | Configure transport address under router ldp |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit the transaction. |
(config)#interface xe6 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.34/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.45/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface po92 | Enter the Interface mode for po92 |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#ip address 10.255.128.55/31 | Configure IP address on the interface. |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#interface xe7 | Enter the Interface mode for xe7 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#interface xe8 | Enter the Interface mode for xe8 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#commit | Commit the transaction. |
(config)#enable ext-ospf-multi-inst | Enable multiple-instance capabilit |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.4 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.4/32 area 0.0.0.0 instance-id 300 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.34/31 area 0.0.0.0 | Advertise network address in OSPF that comes under same subnet. |
(config)#router ospf 300 | Enter the Router OSPF mode. |
(config-router)#network 10.143.73.4/32 area 0.0.0.0 instance-id 200 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.45/31 area 0.0.0.0 | Advertise xe5 network address in OSPF. |
(config-router)#network 10.255.128.55/31 area 0.0.0.0 | Advertise po network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config)#allocate-label all | Configure allocate all under router bgp |
(config-router)#neighbor 10.143.73.2 remote-as 65010 | Configuring ABR1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.5 remote-as 65010 | Configuring PE2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.6 remote-as 65010 | Configuring PE3 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.2 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.5 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.6 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 unicast | Entering into address family ipv4 unicast |
(config-router-af)# network 10.143.73.4/32 | Advertise the network |
(config-router-af)# exit-address-family | Exit from ipv4 address family |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.2 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.2 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.2 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.5 activate | Activate the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.5 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.5 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.6 activate | Activate the ipv4 labeled-unicast neighbor |
config-router-af)#neighbor 10.143.73.6 route-reflector-client | Configure neighbor as route reflector client |
(config-router-af)#neighbor 10.143.73.6 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
(config-router-af)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.5/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.5 | Set the router ID to IP address 10.143.73.5 |
(config-router)#transport-address ipv4 10.143.73.5 | Configure transport address under router ldp |
(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router-targeted-peer)# targeted-peer ipv4 10.143.73.6 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls enable | Enable EVPN MPLS Note: Reload is required after Enabling/Disabling EVPN MPLS Feature |
OcNOS(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.5 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#evpn esi hold-time 60 | Delay timer for ESI to come up before enabling evpn |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe5 | Enter the Interface mode for xe5. |
(config-if)#ip address 10.255.128.44/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 300 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.5 | Router-ID configurations |
(config-router)#network 10.143.73.5/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.44/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.6 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.6 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.4 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.4 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
(config-router-af)#exit-address-family | Exit the address family |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.6 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.5:1700 | Configuring Route-Distinguisher value 10.143.75.3:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.5:1001 | Configuring Route-Distinguisher value 10.143.73.5:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1700 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface po90 | Enter the Interface mode for po90. |
(config-if)#load-interval 30 | Load interval setting |
(config-if)#evpn multi-homed system-mac 0000.aaaa.bbbc | Configure ESI on a link on which Multi homed CE is connected |
(config-if)#interface po90.1700 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1800 | Map vpn-id 2 to interface ce49.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface po90.300 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface po90.300 (VPLS) |
(config-access-if)#exit | Exiting out of Access if mode |
(config-if)#interface ce52 | Enter the Interface mode for ce52 |
(config-if)#channel-group 90 mode active | Putting interface ce50 in Dynamic LAG po90 |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.6/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
(config-router)#router-id 10.143.73.6 | Set the router ID to IP address 10.143.73.5 |
(config-router)#transport-address ipv4 10.143.73.6 | Configure transport address under router ldp |
(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router-targeted-peer)# targeted-peer ipv4 10.143.73.5 | Configure targeted peer. |
(config-router-targeted-peer)#exit | Exit-targeted-peer-mode |
(config-router)#exit | Exit from router LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls vtep-ip-global 10.143.73.6 | Configuring VTEP global IP to loopback IP |
(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter EVPN-MPLS-MH |
(config)#evpn mpls multihoming enable | Enable Multihoming |
(config)#evpn esi hold-time 60 | Delay timer for ESI to come up before enabling evpn |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface po92 | Enter the Interface mode for xe3. |
(config-if)#ip address 10.255.128.54/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe7 | Enter the Interface mode for xe7 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#interface xe8 | Enter the Interface mode for xe8 |
(config-if)#channel-group 92 mode active | Moving interface to Dynamic LAG 92 |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 300 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.6 | Router-ID configurations |
(config-router)#network 10.143.73.6/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.54/31 area 0.0.0.0 | Advertise network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.4 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.4 update-source lo | Source of routing updates as loopback |
(config-router)#neighbor 10.143.73.5 remote-as 65010 | Configuring Neighbor as iBGP neighbor |
(config-router)#neighbor 10.143.73.5 update-source lo | Source of routing updates as loopback |
(config-router)# address-family ipv4 labeled-unicast | Entering into address family ipv4 labeled-unicast |
(config-router-af)#neighbor 10.143.73.4 activate | Activate the ipv4 labeled-unicast neighbor |
(config-router-af)#neighbor 10.143.73.4 next-hop-self | Configure next-hop-self for the ipv4 labeled-unicast neighbor |
(config-router-af)#exit-address-family | Exit the address family |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#neighbor 10.143.73.5 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.6:1700 | Configuring Route-Distinguisher value 10.143.73.6:1700 |
(config-vrf)#route-target both 1700:1700 | Configuring import and export value as 1700:1700 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#mac vrf vpls1001 | Enter VRF mode |
(config-vrf)#rd 10.143.73.6:1001 | Configuring Route-Distinguisher value 10.143.73.6:1001 |
(config-vrf)#route-target both 1001:1001 | Configuring import and export value as 1001:1001 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1800 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier with identifier 3000 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface po90 | Enter the Interface mode for po90. |
(config-if)#load-interval 30 | Load interval setting |
(config-if)#evpn multi-homed system-mac 0000.aaaa.bbbc | Configure ESI on a link on which Multi homed CE is connected |
(config-if)#interface po90.1700 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 1700 | Setting Encapsulation to dot1q with VLAN ID 1700 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 1800 | Map vpn-id 1800 to Dynamic LAG sub interface po90.1700 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#interface po90.300 switchport | Creating L2 sub interface of Dynamic LAG po90 |
(config-if)#encapsulation dot1q 3000 | Setting Encapsulation to dot1q with VLAN ID 3000 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 3000 | Map vpn-id 3000 to interface po90.3000 (VPLS) |
(config-access-if)#exit | Exiting out of Access if mode |
(config-if)#interface ce50 | Enter the Interface mode for ce50 |
(config-if)#channel-group 90 mode active | Putting interface ce50 in Dynamic LAG po90 |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#in xe1 | Entering into interface level of access side interface |
(config-if)#l2protocol <protocol> tunnel | Enabling tunnel for the L2CP protocol |
(config-if)#l2protocol <protocol> peer | Enabling peer for the L2CP protocol |
(config-if)#l2protocol <protocol> discard | Enabling discard for the L2CP protocol |
(config)#hardware-profile filter evpn-mpls-cw enable | Enable hardware profile filter evpn-mpls-cw for Control-word support |
(config)#evpn mpls id 2 xconnect target-mpls-id 252 control-word | Configure the EVPN-VPWS identifier with source identifier 2 and target identifier 252 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 control-word | Configure the EVPN-VPLS identifier with identifier 1001 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#hardware-profile filter evpn-mpls-cw enable | Enable hardware profile filter evpn-mpls-cw for Control-word support |
(config)#evpn mpls id 252 xconnect target-mpls-id 2 control-word | Configure the EVPN-ELINE identifier with source identifier 252 and target identifier 2 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-ELINE identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 1001 control-word | Configure the EVPN-ELAN identifier with identifier 1001 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-ELAN identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#hardware-profile filter evpn-mpls-cw enable | Enable hardware profile filter evpn-mpls-cw for Control-word support |
(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 control-word | Configure the EVPN-VPWS identifier with source identifier 1700 and target identifier 1800 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 control-word | Configure the EVPN-VPLS identifier with identifier 3000 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#hardware-profile filter evpn-mpls-cw enable | Enable hardware profile filter evpn-mpls-cw for Control-word support |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 control-word | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1700 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 control-word | Configure the EVPN-VPLS identifier with identifier 3000 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#hardware-profile filter evpn-mpls-cw enable | Enable hardware profile filter evpn-mpls-cw for Control-word support |
(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 control-word | Configure the EVPN-VPWS identifier with source identifier 1800 and target identifier 1800 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "test" to EVPN-VPWS identifier |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#evpn mpls id 3000 control-word | Configure the EVPN-VPLS identifier with identifier 3000 along with control-word |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Mapping vrf "vpls1001" to EVPN-VPLS identifier |
(config-evpn-mpls)#commit | Commit the transaction. |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#router rsvp | Creation of RSVP |
(config-router)#interface xe1 | Entering into interface level |
(config-if)#enable-rsvp | Associate the configured RSVP to the exit interface. |
(config-router)#interface xe2 | Creation into interface level |
(config-if)#enable-rsvp | Associate the configured RSVP to the exit interface. |
(Config)#rsvp-multipath MP1 | Create an RSVP multipath group 1 |
(config-multipath)#description To-PE3-SH-ELINE-ELAN-ETREE | RSVP multipath specific description |
(config-multipath)#to 7.7.7.7 | RSVP multipath destination prefix |
(config)# rsvp-path P1_PE3 | Path for Resource Reservation Protocol (RSVP) with Name |
(config-path)# 10.1.24.2 loose | Configure this explicit route path as a loose or strict hop |
(config-path)#exit | Exit Path mode. |
(config)# rsvp-path P2_PE3 | Path for Resource Reservation Protocol (RSVP) with Name |
(config-path)# 10.1.34.2 loose | Configure this explicit route path as a loose or strict hop |
(config-path)#exit | Exit Path mode. |
(config)#rsvp-trunk T1_PE3 | Create an RSVP trunk T1 and enter the Trunk mode. |
(config-trunk)#primary path P1_PE3 | Specify an RSVP path to be used |
(config-trunk)#to 7.7.7.7 | Specify the IPv4 egress (destination point) for the LSP |
(config-trunk)#multipath-group MP1 | Associating the MP member to the RSVP trunk |
(config)#rsvp-trunk T2_PE3 | Create an RSVP trunk T1 and enter the Trunk mode. |
(config-trunk)#primary path P2_PE3 | Specify an RSVP path to be used |
(config-trunk)#to 7.7.7.7 | Specify the IPv4 egress (destination point) for the LSP |
(config-trunk)#multipath-group MP1 | Associating the MP member to the RSVP trunk |
(config-trunk)#exit | Exit trunk mode. |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.1/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration Note: Reload is required after Enabling/Disabling EVPN MPLS Feature |
(config)#evpn mpls vtep-ip-global 10.143.73.1 | Configuring VTEP global IP to loopback IP |
(config)#router ldp | Enter the Router LDP mode. |
PE1(config-router)#router-id 10.143.73.1 | Set the router ID to IP address 10.143.73.1 |
PE1(config-router)#transport-address ipv4 10.143.73.1 0 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address |
PE1(config-router)#targeted-peer ipv4 10.143.73.3 | Configure targeted peer. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe3 | Enter the Interface mode for xe3 |
(config-if)#ip address 10.255.128.2/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.1 | Router-ID configurations |
(config-router)#network 10.143.73.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.2/31 area 0.0.0.0 | Advertise xe3 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.3 remote-as 65010 | Configuring PE2 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.3 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.3 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.1:2 | Configuring Route-Distinguisher value 10.143.73.1:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls id 2 xconnect target-mpls-id 252 | Configure the EVPN-VPWS identifier with source identifier 2 and target identifier 252 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-VPWS identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe6 | Enter the Interface mode for xe6. |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#interface xe6.2 switchport | Creating L2 sub interface of physical interface xe6 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 2 | Map vpn-id 252 to interface xe2.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config)#hardware-profile filter cfm-domain-name-str enable | Configure cfm-domain-name-str profile to enable cfm |
(config)#ethernet cfm domain-type character-string domain-name MD-01 level 2 mip-creation none | Create CFM domain for Evpn ELine with type as character string and set mip creation to none |
(config-ether-cfm-mpls-md)#service ma-type string ma-name S1 | Create ma type with string and set mip creation to none |
(config-ether-cfm-mpls-ma)# evpn 2 | Configure evpn <Evpn-id> |
(config-ether-cfm-mpls-ma)#ethernet cfm mep up mpid 8191 active true evpn 2 | Create up-mep for local evpn id 2 |
(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable cc multicast |
(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode | Exit Ethernet ma-mep-mode |
(config-ether-cfm-mpls-ma)#mep crosscheck mpid 8000 | Configure cross check to remote mep for vlan 2 |
(config-ether-cfm-mpls-ma)#cc interval 2 | Enable cc interval with value 2 i.e 10 milliseconds |
(config-ether-cfm-mpls-ma)#exit-ether-ma-mode | Exit ethernnet ma mode |
(config-ether-cfm-mpls-md)#exit | Exit Ethernet cfm mode |
(config)#exit | Exit from config mode |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.2/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
PE1(config-router)#router-id 10.143.73.2 | Set the router ID to IP address 10.143.73.2 |
PE1(config-router)#transport-address ipv4 10.143.73.2 0 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe3 | Enter the Interface mode for xe3 |
(config-if)#ip address 10.255.128.3/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.22/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.2 | Setting the Router ID as Loopback IP |
(config-router)#network 10.143.73.2/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.22/31 area 0.0.0.0 | Advertise xe5 network address in OSPF |
(config-router)#network 10.255.128.3/31 area 0.0.0.0 | Advertise xe3 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter the Interface mode for the loopback interface. |
(config-if)#ip address 10.143.73.3/32 secondary | Configure IP address on loopback interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ldp | Enter the Router LDP mode. |
PE1(config-router)#router-id 10.143.73.3 | Set the router ID to IP address 10.143.73.3 |
PE1(config-router)#transport-address ipv4 10.143.73.3 0 | Configure the transport address for IPV4 (for IPV6 use ipv6) to be used for a TCP session over which LDP will run. Note: It is preferable to use the loopback address as the transport address. |
PE1(config-router)#targeted-peer ipv4 10.143.73.1 | Configure targeted peer. |
(config-router)#exit | Exit from router target peer and LDP mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls enable | Enable EVPN MPLS |
(config)#commit | Commit candidate configuration to be running configuration Note: Reload is required after Enabling/Disabling EVPN MPLS Feature. |
(config)#evpn mpls vtep-ip-global 10.143.73.3 | Configuring VTEP global IP to loopback IP |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#interface xe5 | Enter the Interface mode for xe5 |
(config-if)#ip address 10.255.128.23/31 | Configure IP address on the interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface |
(config-if)#label-switching | Enable label switching on the interface. |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#ospf router-id 10.143.73.3 | Router-ID configurations |
(config-router)#network 10.143.73.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
(config-router)#network 10.255.128.23/31 area 0.0.0.0 | Advertise xe5 network address in OSPF. |
(config-router)#exit | Exit Router OSPF mode and return to Configure mode. |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
(config-router)#neighbor 10.143.73.1 remote-as 65010 | Configuring PE1 as iBGP neighbor using it's loopback IP |
(config-router)#neighbor 10.143.73.1 update-source lo | Source of routing updates as loopback |
(config-router)#address-family l2vpn evpn | Entering into address family mode as EVPN |
(config-router-af)#neighbor 10.143.73.1 activate | Enabling EVPN Address family for neighbor |
(config-router-af)#exit | Exiting of Address family mode |
(config-router)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf2 | Enter VRF mode |
(config-vrf)#rd 10.143.73.3:2 | Configuring Route-Distinguisher value 10.143.73.3:2 |
(config-vrf)#route-target both 2:2 | Configuring import and export value as 2:2 |
(config-vrf)#exit | Exiting VRF Mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#evpn mpls id 252 xconnect target-mpls-id 2 | Configure the EVPN-ELINE identifier with source identifier 252 and target identifier 2 |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Mapping vrf "vrf2" to EVPN-ELINE identifier |
(config-evpn-mpls)#commit | Commit candidate configuration to be running configuration |
(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
(config)#interface xe2 | Enter the Interface mode for xe2. |
(config-if)#description access-side-int | Giving Interface Description |
(config-if)#interface xe2.2 switchport | Creating L2 sub interface of physical interface xe2 |
(config-if)#encapsulation dot1q 2 | Setting Encapsulation to dot1q with VLAN ID 2 Supported Encapsulation: dot1ad, dot1q, untagged, default |
(config-if)#access-if-evpn | Entering Access mode for EVPN MPLS ID configuration |
(config-access-if)#map vpn-id 252 | Map vpn-id 252 to interface xe2.2 (VPWS) |
(config-access-if)#exit | Exiting out of access interface mode |
(config-if)#commit | Commit candidate configuration to be running configuration |
(config)#hardware-profile filter cfm-domain-name-str enable | Configure cfm-domain-name-str profile to enable cfm |
(config)#ethernet cfm domain-type character-string domain-name MD-01 level 2 mip-creation none | Create CFM domain for Evpn ELine with type as character string and set mip creation to none |
(config-ether-cfm-mpls-md)#service ma-type string ma-name S1 | Create ma type with string and set mip creation to none |
(config-ether-cfm-mpls-ma)# evpn 252 | Configure evpn <Evpn-id> |
(config-ether-cfm-mpls-ma)#ethernet cfm mep up mpid 8000 active true evpn 252 | Create up-mep for local evpn id 252 |
(config-ether-cfm-mpls-ma-mep)#cc multicast state enable | Enable cc multicast |
(config-ether-cfm-mpls-ma-mep)#exit-ether-ma-mep-mode | Exit Ethernet ma-mep-mode |
(config-ether-cfm-mpls-ma)#mep crosscheck mpid 8191 | Configure cross check to remote mep for vlan 2 |
(config-ether-cfm-mpls-ma)#cc interval 2 | Enable cc interval with value 2 i.e 10 milliseconds |
(config-ether-cfm-mpls-ma)#exit-ether-ma-mode | Exit ethernnet ma mode |
(config-ether-cfm-mpls)#exit | Exit Ethernet cfm mode |
(config)#exit | Exit from config mode |
(config)#commit | Commit candidate configuration to be running configuration |