CE1#configure terminal | Enter configure mode. |
CE1(config)#bridge 1 protocol ieee vlan-bridge | Set up bridge 1 to use the IEEE VLAN bridge protocol. |
CE1(config)#vlan 2-100 bridge 1 state enable | Configure VLANs from 2-100 and associate them with bridge 1. |
CE1(config)#interface xe54 | Enter interface mode xe54. |
CE1(config-if)#switchport | Configure the interface xe54 as a Layer 2 switch port. |
CE1(config-if)#bridge-group 1 | Associate xe54 to bridge 1. |
CE1(config-if)#switchport mode trunk | Configure xe54 as a trunk port. |
CE1(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk interface xe54. |
CE1(config-if)#exit | Exit interface mode xe54. |
CE1(config)#interface po1 | Enter interface mode and configure LAG interface port-channel 1 (po1). |
CE1(config-if)#switchport | Configures port-channel 1 as a Layer 2 switch port. |
CE1(config-if)#bridge-group 1 | Associate po1 to bridge 1. |
CE1(config-if)#switchport mode trunk | Configure po1 as a trunk port. |
CE1(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk port-channel po1. |
CE1(config-if)#exit | Exit interface mode po1. |
CE1(config)#interface xe48 | Enter interface mode xe48. |
CE1(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE1(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE1(config-if)#exit | Exit interface mode xe48. |
CE1(config-if)#interface xe50 | Enter interface mode xe50. |
CE1(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE1(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE1(config-if)#commit | Commit the transaction. |
CE1(config-if)#end | Exit interface mode xe50 and configure mode. |
PE1#configure terminal | Enter configure mode. |
PE1(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE1(config-if)#ip address 10.10.10.1/32 secondary | Configure a secondary IP address, 10.10.10.1/32, on the loopback interface. |
PE1(config-if)#exit | Exit interface mode lo. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router ldp | Enter the Router LDP mode. |
PE1(config-router)#router-id 10.10.10.1 | Set the router ID for LDP to 10.10.10.1. |
PE1(config-router)#transport-address ipv4 10.10.10.1 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE1(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE1, enabling it to participate in EVPN MPLS services. |
PE1(config)#commit | Commit candidate configuration to be running configuration. |
PE1(config)#evpn mpls vtep-ip-global 10.10.10.1 | Configure the global VTEP IP address 10.10.10.1, associating it with the loopback IP. |
PE1(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE1(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE1 to support multi-homed EVPN MPLS services. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface xe1 | Enter interface mode xe1. |
PE1(config-if)#ip address 10.1.1.1/30 | Configure an IP address, 10.1.1.1/30, on the interface xe1. |
PE1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE1(config-if)#exit | Exit interface mode xe1. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface xe2 | Enter interface mode xe2. |
PE1(config-if)#ip address 10.1.2.1/30 | Configure an IP address, 10.1.2.1/30, on the interface xe2. |
PE1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE1(config-if)#exit | Exit interface mode xe2. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router ospf 100 | Enter the router OSPF mode. Configure PE1 to run OSPF with process ID 100. |
PE1(config-router)#ospf router-id 10.10.10.1 | Set the OSPF router ID to 10.10.10.1, identifying PE1 within the OSPF network. |
PE1(config-router)#network 10.10.10.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE1(config-router)#network 10.1.1.1/30 area 0.0.0.0 | Advertise network address in OSPF. |
PE1(config-router)#network 10.1.2.1/30 area 0.0.0.0 | Advertise network address in OSPF. |
PE1(config-router)#bfd interval 3 minrx 3 multiplier 3 | Configure BFD interval with an interval of 3, a minimum receive interval of 3, and a multiplier of 3. |
PE1(config-router)#exit | Exit router OSPF mode and return to configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE1(config-router)#bgp router-id 10.10.10.1 | Configure BGP router ID 10.10.10.1, identifying PE1 within the BGP network. |
PE1(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE1(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE1(config-router)#commit | Commit the transaction. |
PE1(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE1(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE1(config-vrf)#rd 10.10.10.1:1700 | Configure Route-Distinguisher value of 10.10.10.1:1700. |
PE1(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE1(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE1(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE1(config-vrf)#rd 10.10.10.1:1001 | Configure Route-Distinguisher value of 10.10.10.1:1001. |
PE1(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE1(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with a source identifier of 1800 and a target identifier of 1700. |
PE1(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE1(config-evpn-mpls)#commit | Commit the transaction. |
PE1(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE1(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE1(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE1(config-evpn-mpls)#commit | Commit the transaction. |
PE1(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE1(config)#interface po1 | Enter the port channel interface mode for po1 |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#evpn multi-homed system-mac 0000.1111.7777 load-balancing port-active | Configure the system-mac address 0000.1111.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE1(config-if-es)#service-carving auto | Configure service carving as auto. |
PE1(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE1(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE1(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE1(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE1(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE1(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE1(config)#interface xe0 | Enter the interface mode for xe0. |
PE1(config-if)#speed 10g | Set the speed to 10g. |
PE1(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE1(config-if)#exit | Exit interface mode xe0 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface sa1 | Enter the single active interface mode for sa1 |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#evpn multi-homed esi 00:00:11:11:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:11:11:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE1(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE1(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE1(config-if)#exit | Exit interface mode sa1 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface sa1.1 switchport | Create a Layer 2 sub-interface sa1.1 within the port channel. |
PE1(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE1(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE1(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE1(config-if)#exit | Exit interface mode sa1.1 and return to the configure mode. |
PE1(config)#interface xe0 | Enter the interface mode for xe0. |
PE1(config-if)#speed 10g | Set the speed to 10g. |
PE1(config-if)#static-channel-group 1 | Attach the static-channel-group 1, the LAG interface sa1 to xe0. |
PE1(config-if)#exit | Exit interface mode xe0 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE2#configure terminal | Enter configure mode. |
PE2(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE2(config-if)#ip address 10.10.10.2/32 secondary | Configure a secondary IP address, 10.10.10.2/32, on the loopback interface. |
PE2(config-if)#exit | Exit interface mode lo. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router ldp | Enter the Router LDP mode. |
PE2(config-router)#router-id 10.10.10.2 | Set the router ID for LDP to 10.10.10.2. |
PE2(config-router)#transport-address ipv4 10.10.10.2 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE2(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE2, enabling it to participate in EVPN MPLS services. |
PE2(config)#commit | Commit candidate configuration to be running configuration. |
PE2(config)#evpn mpls vtep-ip-global 10.10.10.2 | Configure the global VTEP IP address 10.10.10.2, associating it with the loopback IP. |
PE2(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE2(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE2 to support multi-homed EVPN MPLS services. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface xe4 | Enter interface mode xe4. |
PE2(config-if)#ip address 10.1.3.1/30 | Configure an IP address, 10.1.3.1/30, on the interface xe4. |
PE2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE2(config-if)#exit | Exit interface mode xe4. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface xe5 | Enter interface mode xe5. |
PE2(config-if)#ip address 10.1.4.1/30 | Configure an IP address, 10.1.4.1/30, on the interface xe5. |
PE2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE2(config-if)#exit | Exit interface mode xe5. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router ospf 100 | Enter the router OSPF mode. Configure PE2 to run OSPF with process ID 100. |
PE2(config-router)#ospf router-id 10.10.10.2 | Set the OSPF router ID to 10.10.10.2, identifying PE2 within the OSPF network. |
PE2(config-router)#network 10.1.3.1/30 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE2(config-router)#network 10.1.4.1/30 area 0.0.0.0 | Advertise network address in OSPF. |
PE2(config-router)#bfd interval 3 minrx 3 multiplier 3 | Configure BFD interval with an interval of 3, a minimum receive interval of 3, and a multiplier of 3. |
PE2(config-router)#exit | Exit router OSPF mode and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE2(config-router)#bgp router-id 10.10.10.2 | Configure BGP router ID 10.10.10.2, identifying PE2 within the BGP network. |
PE2(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE2(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE2(config-router)#commit | Commit the transaction. |
PE2(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE2(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE2(config-vrf)#rd 10.10.10.2:1700 | Configure Route-Distinguisher value of 10.10.10.2:1700. |
PE2(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE2(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE2(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE2(config-vrf)#rd 10.10.10.2:1001 | Configure Route-Distinguisher value of 10.10.10.2:1001. |
PE2(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE2(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with a source identifier of 1800 and a target identifier of 1700. |
PE2(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE2(config-evpn-mpls)#commit | Commit the transaction. |
PE2(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE2(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE2(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE2(config-evpn-mpls)#commit | Commit the transaction. |
PE2(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE2(config)#interface po1 | Enter the port channel interface mode for po1 |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#evpn multi-homed system-mac 0000.1111.7777 load-balancing port-active | Configure the system-mac address 0000.1111.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE2(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE2(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE2(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE2(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE2(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE2(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE2(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE2(config)#interface xe08 | Enter the interface mode for xe8. |
PE2(config-if)#speed 10g | Set the speed to 10g. |
PE2(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE2(config-if)#exit | Exit interface mode xe8 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface sa2 | Enter the single active interface mode for sa2. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#evpn multi-homed esi 00:00:11:11:77:77 load-balancing single-active | Configure the ESI with the value 00:00:11:11:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE2(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE2(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE2(config-if)#exit | Exit interface mode sa2 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface sa2.1 switchport | Create a Layer 2 sub-interface sa2.1 within the port channel. |
PE2(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE2(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE2(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE2(config-if)#exit | Exit interface mode sa2.1 and return to the configure mode. |
PE2(config)#interface xe8 | Enter the interface mode for xe8. |
PE2(config-if)#speed 10g | Set the speed to 10g. |
PE2(config-if)#static-channel-group 2 | Attach the static-channel-group 2, the LAG interface sa2 to xe8. |
PE2(config-if)#exit | Exit interface mode xe8 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
P1#configure terminal | Enter configure mode. |
P1(config)#interface lo | Enter the interface mode for the loopback interface lo. |
P1(config-if)#ip address 10.10.10.5/32 secondary | Configure a secondary IP address, 10.10.10.5/32, on the loopback interface. |
P1(config-if)#exit | Exit interface mode lo. |
P1(config)#commit | Commit the transaction. |
P1(config)#router ldp | Enter the Router LDP mode. |
P1(config-router)#router-id 10.10.10.5 | Set the router ID for LDP to 10.10.10.5. |
P1(config-router)#transport-address ipv4 10.10.10.5 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
P1(config-router)#exit | Exit router LDP mode and return to the configure mode. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe1 | Enter interface mode xe1. |
P1(config-if)#ip address 10.1.1.2/30 | Configure an IP address, 10.1.1.2/30, on the interface xe1. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#exit | Exit interface mode xe1. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe2 | Enter interface mode xe2. |
P1(config-if)#ip address 10.1.4.2/30 | Configure an IP address, 10.1.4.2/30, on the interface xe2. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#exit | Exit interface mode xe2. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe3 | Enter interface mode xe3. |
P1(config-if)#ip address 10.1.5.2/30 | Configure an IP address, 10.1.5.2/30, on the interface xe3. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#exit | Exit interface mode xe3. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe4 | Enter interface mode xe4. |
P1(config-if)#ip address 10.1.6.2/30 | Configure an IP address, 10.1.6.2/30, on the interface xe4. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#exit | Exit interface mode xe4. |
P1(config)#commit | Commit the transaction. |
P1(config)#router ospf 100 | Enter the router OSPF mode. Configure P1 to run OSPF with process ID 100. |
P1(config-router)#ospf router-id 10.10.10.5 | Set the OSPF router ID to 10.10.10.5, identifying P1 within the OSPF network. |
P1(config-router)#network 10.10.10.5/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
P1(config-router)#network 10.1.1.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P1(config-router)#network 10.1.4.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P1(config-router)#network 10.1.5.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P1(config-router)#network 10.1.6.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P1(config-router)#exit | Exit router OSPF mode and return to the configure mode. |
P1(config)#commit | Commit the transaction. |
P2#configure terminal | Enter configure mode. |
P2(config)#interface lo | Enter the interface mode for the loopback interface lo. |
P2(config-if)#ip address 10.10.10.6/32 secondary | Configure a secondary IP address, 10.10.10.6/32, on the loopback interface. |
P2(config-if)#exit | Exit interface mode lo. |
P2(config)#commit | Commit the transaction. |
P2(config)#router ldp | Enter the Router LDP mode. |
P2(config-router)#router-id 10.10.10.6 | Set the router ID for LDP to 10.10.10.6. |
P2(config-router)#transport-address ipv4 10.10.10.6 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
P2(config-router)#exit | Exit router LDP mode and return to the configure mode. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe12 | Enter interface mode xe12. |
P2(config-if)#ip address 10.1.2.2/30 | Configure an IP address, 10.1.2.2/30, on the interface xe12. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#exit | Exit interface mode xe12. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe13 | Enter interface mode xe13. |
P2(config-if)#ip address 10.1.3.2/30 | Configure an IP address, 10.1.3.2/30, on the interface xe13. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#exit | Exit interface mode xe13. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe11 | Enter interface mode xe11. |
P2(config-if)#ip address 10.1.7.2/30 | Configure an IP address, 10.1.7.2/30, on the interface xe11. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#exit | Exit interface mode xe11. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe14 | Enter interface mode xe14. |
P2(config-if)#ip address 10.1.8.2/30 | Configure an IP address, 10.1.8.2/30, on the interface xe14. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#exit | Exit interface mode xe14. |
P2(config)#commit | Commit the transaction. |
P2(config)#router ospf 100 | Enter the router OSPF mode. Configure P2 to run OSPF with process ID 100. |
P2(config-router)#ospf router-id 10.10.10.6 | Set the OSPF router ID to 10.10.10.6, identifying P2 within the OSPF network. |
P2(config-router)#network 10.10.10.6/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
P2(config-router)#network 10.1.2.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P2(config-router)#network 10.1.3.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P2(config-router)#network 10.1.7.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P2(config-router)#network 10.1.8.2/30 area 0.0.0.0 | Advertise network address in OSPF. |
P2(config-router)#exit | Exit router OSPF mode and return to the configure mode. |
P2(config)#commit | Commit the transaction. |
PE3#configure terminal | Enter configure mode. |
PE3(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE3(config-if)#ip address 10.10.10.3/32 secondary | Configure a secondary IP address, 10.10.10.3/32, on the loopback interface. |
PE3(config-if)#exit | Exit interface mode lo. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router ldp | Enter the Router LDP mode. |
PE3(config-router)#router-id 10.10.10.3 | Set the router ID for LDP to 10.10.10.3. |
PE2(config-router)#transport-address ipv4 10.10.10.3 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE3(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE3, enabling it to participate in EVPN MPLS services. |
PE3(config)#commit | Commit candidate configuration to be running configuration. |
PE3(config)#evpn mpls vtep-ip-global 10.10.10.3 | Configure the global VTEP IP address 10.10.10.3, associating it with the loopback IP. |
PE3(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE3(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE3 to support multi-homed EVPN MPLS services. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface xe1 | Enter interface mode xe1. |
PE3(config-if)#ip address 10.1.6.1/30 | Configure an IP address, 10.1.6.1/30, on the interface xe1. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE3(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE3(config-if)#exit | Exit interface mode xe1. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface xe5 | Enter interface mode xe5. |
PE3(config-if)#ip address 10.1.7.1/30 | Configure an IP address, 10.1.7.1/30, on the interface xe5. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE3(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE3(config-if)#exit | Exit interface mode xe5. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router ospf 100 | Enter the router OSPF mode. Configure PE3 to run OSPF with process ID 100. |
PE3(config-router)#ospf router-id 10.10.10.3 | Set the OSPF router ID to 10.10.10.3, identifying PE3 within the OSPF network. |
PE3(config-router)#network 10.10.10.3/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE3(config-router)#network 10.1.6.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE3(config-router)#network 10.1.7.1/30 area 0.0.0.0 | Advertise network address in OSPF. |
PE3(config-router)#bfd interval 3 minrx 3 multiplier 3 | Configure BFD interval with an interval of 3, a minimum receive interval of 3, and a multiplier of 3. |
PE3(config-router)#exit | Exit router OSPF mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE3(config-router)#bgp router-id 10.10.10.3 | Configure BGP router ID 10.10.10.2, identifying PE3 within the BGP network. |
PE3(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE3(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE3(config-router)#commit | Commit the transaction. |
PE3(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE3(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE3(config-vrf)#rd 10.10.10.3:1700 | Configure Route-Distinguisher value of 10.10.10.3:1700. |
PE3(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE3(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE3(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE3(config-vrf)#rd 10.10.10.3:1001 | Configure Route-Distinguisher value of 10.10.10.3:1001. |
PE3(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE3(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with a source identifier of 1700 and a target identifier of 1800. |
PE3(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE3(config-evpn-mpls)#commit | Commit the transaction. |
PE3(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE3(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE3(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE3(config-evpn-mpls)#commit | Commit the transaction. |
PE3(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE3(config)#interface po1 | Enter the port channel interface mode for po1 |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#evpn multi-homed system-mac 0000.2222.7777 load-balancing port-active | Configure the system-mac address 0000.2222.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE3(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE3(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE3(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE3(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE3(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE3(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE3(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE3(config)#interface xe2 | Enter the interface mode for xe2. |
PE3(config-if)#speed 10g | Set the speed to 10g. |
PE3(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE3(config-if)#exit | Exit interface mode xe2 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface sa1 | Enter the single active interface mode for sa1. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#evpn multi-homed esi 00:00:22:22:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:22:22:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE3(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE3(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE3(config-if)#exit | Exit interface mode sa1 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface sa1.1 switchport | Create a Layer 2 sub-interface sa1.1 within the port channel. |
PE3(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE3(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE3(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE3(config-if)#exit | Exit interface mode sa1.1 and return to the configure mode. |
PE3(config)#interface xe2 | Enter the interface mode for xe2. |
PE3(config-if)#speed 10g | Set the speed to 10g. |
PE3(config-if)#static-channel-group 1 | Attach the static-channel-group 1, the LAG interface sa1 to xe2. |
PE3(config-if)#exit | Exit interface mode xe2 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE4#configure terminal | Enter configure mode. |
PE4(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE4(config-if)#ip address 10.10.10.4/32 secondary | Configure a secondary IP address, 10.10.10.4/32, on the loopback interface. |
PE4(config-if)#exit | Exit interface mode lo. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router ldp | Enter the Router LDP mode. |
PE4(config-router)#router-id 10.10.10.4 | Set the router ID for LDP to 10.10.10.4. |
PE4(config-router)#transport-address ipv4 10.10.10.4 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE4(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE4, enabling it to participate in EVPN MPLS services. |
PE4(config)#commit | Commit candidate configuration to be running configuration. |
PE4(config)#evpn mpls vtep-ip-global 10.10.10.4 | Configure the global VTEP IP address 10.10.10.4, associating it with the loopback IP. |
PE4(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE4(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE4 to support multi-homed EVPN MPLS services. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface xe2 | Enter interface mode xe2. |
PE4(config-if)#ip address 10.1.5.1/30 | Configure an IP address, 10.1.5.1/30, on the interface xe2. |
PE4(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE4(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE4(config-if)#exit | Exit interface mode xe2. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface xe0 | Enter interface mode xe0. |
PE4(config-if)#ip address 10.1.8.1/30 | Configure an IP address, 10.1.8.1/30, on the interface xe0. |
PE4(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE4(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE4(config-if)#exit | Exit interface mode xe0. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router ospf 100 | Enter the router OSPF mode. Configure PE4 to run OSPF with process ID 100. |
PE4(config-router)#ospf router-id 10.10.10.4 | Set the OSPF router ID to 10.10.10.4, identifying PE3 within the OSPF network. |
PE4(config-router)#network 10.10.10.4/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE4(config-router)#network 10.1.5.1/32 area 0.0.0.0 | Advertise loopback address in OSPF. |
PE4(config-router)#network 10.1.8.1/30 area 0.0.0.0 | Advertise network address in OSPF. |
PE4(config-router)#bfd interval 3 minrx 3 multiplier 3 | Configure BFD interval with an interval of 3, a minimum receive interval of 3, and a multiplier of 3. |
PE4(config-router)#exit | Exit router OSPF mode and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE4(config-router)#bgp router-id 10.10.10.4 | Configure BGP router ID 10.10.10.4, identifying PE4 within the BGP network. |
PE4(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE4(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE4(config-router)#commit | Commit the transaction. |
PE4(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE4(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE4(config-vrf)#rd 10.10.10.4:1700 | Configure Route-Distinguisher value of 10.10.10.4:1700. |
PE4(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE4(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE4(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE4(config-vrf)#rd 10.10.10.4:1001 | Configure Route-Distinguisher value of 10.10.10.4:1001. |
PE4(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE4(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with a source identifier of 1700 and a target identifier of 1800. |
PE4(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE4(config-evpn-mpls)#commit | Commit the transaction. |
PE4(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE4(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE4(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE4(config-evpn-mpls)#commit | Commit the transaction. |
PE4(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE4(config)#interface po1 | Enter the port channel interface mode for po1 |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#evpn multi-homed system-mac 0000.2222.7777 load-balancing port-active | Configure the system-mac address 0000.2222.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE4(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE4(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE4(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE4(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE4(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE4(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE4(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE4(config)#interface xe11 | Enter the interface mode for xe11. |
PE4(config-if)#speed 10g | Set the speed to 10g. |
PE4(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE4(config-if)#exit | Exit interface mode xe11 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface sa2 | Enter the single active interface mode for sa2. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#evpn multi-homed esi 00:00:22:22:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:22:22:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE4(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE4(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE4(config-if)#exit | Exit interface mode sa2 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface sa2.1 switchport | Create a Layer 2 sub-interface sa2.1 within the port channel. |
PE4(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE4(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE4(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE4(config-if)#exit | Exit interface mode sa2.1 and return to the configure mode. |
PE4(config)#interface xe11 | Enter the interface mode for xe11. |
PE4(config-if)#speed 10g | Set the speed to 10g. |
PE4(config-if)#static-channel-group 2 | Attach the static-channel-group 2, the LAG interface sa2 to xe11. |
PE4(config-if)#exit | Exit interface mode xe11 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
CE2#configure terminal | Enter configure mode. |
CE2(config)#bridge 1 protocol ieee vlan-bridge | Set up bridge 1 to use the IEEE VLAN bridge protocol. |
CE2(config)#vlan 2-100 bridge 1 state enable | Configure VLANs from 2-100 and associate them with bridge 1. |
CE2(config)#interface xe24 | Enter interface mode xe24. |
CE2(config-if)#switchport | Configure the interface xe24 as a Layer 2 switch port. |
CE2(config-if)#bridge-group 1 | Associate xe24 to bridge 1. |
CE2(config-if)#switchport mode trunk | Configure xe24 as a trunk port. |
CE2(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk interface xe24. |
CE2(config-if)#exit | Exit interface mode xe24. |
CE2(config)#interface po1 | Enter interface mode and configure LAG interface port-channel 1 (po1). |
CE2(config-if)#switchport | Configures port-channel 1 as a Layer 2 switch port. |
CE2(config-if)#bridge-group 1 | Associate po1 to bridge 1. |
CE2(config-if)#switchport mode trunk | Configure po1 as a trunk port. |
CE2(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk port-channel po1. |
CE2(config-if)#exit | Exit interface mode po1. |
CE2(config)#interface xe22 | Enter interface mode xe22. |
CE2(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE2(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE2(config-if)#exit | Exit interface mode xe22. |
CE2(config-if)#interface xe23 | Enter interface mode xe23. |
CE2(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE2(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE2(config-if)#commit | Commit the transaction. |
CE2(config-if)#end | Exit interface mode xe23 and configure mode. |
CE1#configure terminal | Enter configure mode. |
CE1(config)#bridge 1 protocol ieee vlan-bridge | Set up bridge 1 to use the IEEE VLAN bridge protocol. |
CE1(config)#vlan 2-100 bridge 1 state enable | Configure VLANs from 2-100 and associate them with bridge 1. |
CE1(config)#interface xe54 | Enter interface mode xe54. |
CE1(config-if)#switchport | Configure the interface xe54 as a Layer 2 switch port. |
CE1(config-if)#bridge-group 1 | Associate xe54 to bridge 1. |
CE1(config-if)#switchport mode trunk | Configure xe54 as a trunk port. |
CE1(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk interface xe54. |
CE1(config-if)#exit | Exit interface mode xe54. |
CE1(config)#interface po1 | Enter interface mode and configure LAG interface port-channel 1 (po1). |
CE1(config-if)#switchport | Configures port-channel 1 as a Layer 2 switch port. |
CE1(config-if)#bridge-group 1 | Associate po1 to bridge 1. |
CE1(config-if)#switchport mode trunk | Configure po1 as a trunk port. |
CE1(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk port-channel po1. |
CE1(config-if)#exit | Exit interface mode po1. |
CE1(config)#interface xe48 | Enter interface mode xe48. |
CE1(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE1(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE1(config-if)#exit | Exit interface mode xe48. |
CE1(config-if)#interface xe50 | Enter interface mode xe50. |
CE1(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE1(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE1(config-if)#commit | Commit the transaction. |
CE1(config-if)#end | Exit interface mode xe50 and configure mode. |
PE1#configure terminal | Enter configure mode. |
PE1(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE1(config-if)#ip address 10.10.10.1/32 secondary | Configure a secondary IP address, 10.10.10.1/32, on the loopback interface. |
PE1(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
PE1(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
PE1(config-if)#exit | Exit interface mode lo. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#segment-routing | Configure segment routing on PE1 device. |
PE1(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
PE1(config-sr)#exit | Exit the router SR mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router ldp | Enter the Router LDP mode. |
PE1(config-router)#router-id 10.10.10.1 | Set the router ID for LDP to 10.10.10.1. |
PE1(config-router)#transport-address ipv4 10.10.10.1 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE1(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE1(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE1(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE1, enabling it to participate in EVPN MPLS services. |
PE1(config)#commit | Commit candidate configuration to be running configuration. |
PE1(config)#evpn mpls vtep-ip-global 10.10.10.1 | Configure the global VTEP IP address 10.10.10.1, associating it with the loopback IP. |
PE1(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE1(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE1 to support multi-homed EVPN MPLS services. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface xe1 | Enter interface mode xe1. |
PE1(config-if)#ip address 10.1.1.1/30 | Configure an IP address, 10.1.1.1/30, on the interface xe1. |
PE1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE1(config-if)#ip router isis 1 | Enable ISIS IPv4 routing on an interface xe1. |
PE1(config-if)#exit | Exit interface mode xe1. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface xe2 | Enter interface mode xe2. |
PE1(config-if)#ip address 10.1.2.1/30 | Configure an IP address, 10.1.2.1/30, on the interface xe2. |
PE1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE1(config-if)#ip router isis 1 | Enable ISIS IPv4 routing on an interface xe2. |
PE1(config-if)#exit | Exit interface mode xe2. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router isis 1 | Enter router ISIS mode. |
PE1(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
PE1(config-router)#metric-style wide | Configure the new style of metric type as wide. |
PE1(config-router)#mpls traffic-eng router-id 10.10.10.1 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.1, which is used for MPLS-TE path calculations. |
PE1(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
PE1(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
PE1(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
PE1(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
PE1(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE1(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE1(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
PE1(config-router)#net 49.0000.0000.0001.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
PE1(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
PE1(config-router)#segment-routing mpls | Enable SR ISIS. |
PE1(config-router)#exit | Exit router ISIS mode and return to configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE1(config-router)#bgp router-id 10.10.10.1 | Configure BGP router ID 10.10.10.1, identifying PE1 within the BGP network. |
PE1(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE1(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE1(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE1(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE1(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE1(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE1(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE1(config-router)#commit | Commit the transaction. |
PE1(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE1(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE1(config-vrf)#rd 10.10.10.1:1700 | Configure Route-Distinguisher value of 10.10.10.1:1700. |
PE1(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE1(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE1(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE1(config-vrf)#rd 10.10.10.1:1001 | Configure Route-Distinguisher value of 10.10.10.1:1001. |
PE1(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE1(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with a source identifier of 1800 and a target identifier of 1700. |
PE1(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE1(config-evpn-mpls)#commit | Commit the transaction. |
PE1(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE1(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE1(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE1(config-evpn-mpls)#commit | Commit the transaction. |
PE1(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE1(config)#interface po1 | Enter the port channel interface mode for po1 |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#evpn multi-homed system-mac 0000.1111.7777 load-balancing port-active | Configure the system-mac address 0000.1111.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE1(config-if-es)#service-carving auto | Configure service carving as auto. |
PE1(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE1(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE1(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE1(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE1(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE1(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE1(config)#interface xe0 | Enter the interface mode for xe0. |
PE1(config-if)#speed 10g | Set the speed to 10g. |
PE1(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE1(config-if)#exit | Exit interface mode xe0 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface sa1 | Enter the single active interface mode for sa1 |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#evpn multi-homed esi 00:00:11:11:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:11:11:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE1(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE1(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE1(config-if)#exit | Exit interface mode sa1 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE1(config)#interface sa1.1 switchport | Create a Layer 2 sub-interface sa1.1 within the port channel. |
PE1(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE1(config-if)#load-interval 30 | Set the load interval to 30. |
PE1(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE1(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE1(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE1(config-if)#exit | Exit interface mode sa1.1 and return to the configure mode. |
PE1(config)#interface xe0 | Enter the interface mode for xe0. |
PE1(config-if)#speed 10g | Set the speed to 10g. |
PE1(config-if)#static-channel-group 1 | Attach the static-channel-group 1, the LAG interface sa1 to xe0. |
PE1(config-if)#exit | Exit interface mode xe0 and return to the configure mode. |
PE1(config)#commit | Commit the transaction. |
PE2#configure terminal | Enter configure mode. |
PE2(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE2(config-if)#ip address 10.10.10.2/32 secondary | Configure a secondary IP address, 10.10.10.2/32, on the loopback interface. |
PE2(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
PE2(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
PE2(config-if)#exit | Exit interface mode lo. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#segment-routing | Configure segment routing on PE2 device. |
PE2(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
PE2(config-sr)#exit | Exit the router SR mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router ldp | Enter the Router LDP mode. |
PE2(config-router)#router-id 10.10.10.2 | Set the router ID for LDP to 10.10.10.2. |
PE2(config-router)#transport-address ipv4 10.10.10.2 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE2(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE2(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE2(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE2, enabling it to participate in EVPN MPLS services. |
PE2(config)#commit | Commit candidate configuration to be running configuration. |
PE2(config)#evpn mpls vtep-ip-global 10.10.10.2 | Configure the global VTEP IP address 10.10.10.2, associating it with the loopback IP. |
PE2(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE2(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE2 to support multi-homed EVPN MPLS services. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface xe4 | Enter interface mode xe4. |
PE2(config-if)#ip address 10.1.3.1/30 | Configure an IP address, 10.1.3.1/30, on the interface xe4. |
PE2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe4 for area 1. |
PE2(config-if)#exit | Exit interface mode xe4. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface xe5 | Enter interface mode xe5. |
PE2(config-if)#ip address 10.1.4.1/30 | Configure an IP address, 10.1.4.1/30, on the interface xe5. |
PE2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe5 for area 1. |
PE2(config-if)#exit | Exit interface mode xe5. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router isis 1 | Enter router ISIS mode. |
PE2(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
PE2(config-router)#metric-style wide | Configure the new style of metric type as wide. |
PE2(config-router)#mpls traffic-eng router-id 10.10.10.2 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.2, which is used for MPLS-TE path calculations. |
PE2(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
PE2(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
PE2(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
PE2(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
PE2(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE2(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE2(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
PE2(config-router)#net 49.0000.0000.0002.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
PE2(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
PE2(config-router)#segment-routing mpls | Enable SR ISIS. |
PE2(config-router)#exit | Exit router ISIS mode and return to configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE2(config-router)#bgp router-id 10.10.10.2 | Configure BGP router ID 10.10.10.2, identifying PE2 within the BGP network. |
PE2(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE2(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE2(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE2(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE2(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE2(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE2(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE2(config-router)#commit | Commit the transaction. |
PE2(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE2(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE2(config-vrf)#rd 10.10.10.2:1700 | Configure Route-Distinguisher value of 10.10.10.2:1700. |
PE2(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE2(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE2(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE2(config-vrf)#rd 10.10.10.2:1001 | Configure Route-Distinguisher value of 10.10.10.2:1001. |
PE2(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE2(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#evpn mpls id 1800 xconnect target-mpls-id 1700 | Configure the EVPN-VPWS identifier with a source identifier of 1800 and a target identifier of 1700. |
PE2(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE2(config-evpn-mpls)#commit | Commit the transaction. |
PE2(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE2(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE2(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE2(config-evpn-mpls)#commit | Commit the transaction. |
PE2(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE2(config)#interface po1 | Enter the port channel interface mode for po1 |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#evpn multi-homed system-mac 0000.1111.7777 load-balancing port-active | Configure the system-mac address 0000.1111.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE2(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE2(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE2(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE2(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE2(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE2(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE2(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE2(config)#interface xe8 | Enter the interface mode for xe8. |
PE2(config-if)#speed 10g | Set the speed to 10g. |
PE2(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE2(config-if)#exit | Exit interface mode xe8 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface sa2 | Enter the single active interface mode for sa2. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#evpn multi-homed esi 00:00:11:11:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:11:11:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE2(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE2(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE2(config-if)#exit | Exit interface mode sa2 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
PE2(config)#interface sa2.1 switchport | Create a Layer 2 sub-interface sa2.1 within the port channel. |
PE2(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE2(config-if)#load-interval 30 | Set the load interval to 30. |
PE2(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE2(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE2(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE2(config-if)#exit | Exit interface mode sa2.1 and return to the configure mode. |
PE2(config)#interface xe8 | Enter the interface mode for xe8. |
PE2(config-if)#speed 10g | Set the speed to 10g. |
PE2(config-if)#static-channel-group 2 | Attach the static-channel-group 2, the LAG interface sa2 to xe8. |
PE2(config-if)#exit | Exit interface mode xe8 and return to the configure mode. |
PE2(config)#commit | Commit the transaction. |
P1#configure terminal | Enter configure mode. |
P1(config)#interface lo | Enter the interface mode for the loopback interface lo. |
P1(config-if)#ip address 10.10.10.5/32 secondary | Configure a secondary IP address, 10.10.10.5/32, on the loopback interface. |
P1(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
P1(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
P1(config-if)#exit | Exit interface mode lo. |
P1(config)#commit | Commit the transaction. |
P1(config)#segment-routing | Configure segment routing on P1 device. |
P1(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
P1(config-sr)#exit | Exit the router SR mode. |
P1(config)#commit | Commit the transaction. |
P1(config)#router ldp | Enter the Router LDP mode. |
P1(config-router)#router-id 10.10.10.5 | Set the router ID for LDP to 10.10.10.5. |
P1(config-router)#transport-address ipv4 10.10.10.5 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
P1(config-router)#exit | Exit router LDP mode and return to the configure mode. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe1 | Enter interface mode xe1. |
P1(config-if)#ip address 10.1.1.2/30 | Configure an IP address, 10.1.1.2/30, on the interface xe1. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe1 for area 1. |
P1(config-if)#exit | Exit interface mode xe1. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe2 | Enter interface mode xe2. |
P1(config-if)#ip address 10.1.4.2/30 | Configure an IP address, 10.1.4.2/30, on the interface xe2. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe2 for area 1. |
P1(config-if)#exit | Exit interface mode xe2. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe3 | Enter interface mode xe3. |
P1(config-if)#ip address 10.1.5.2/30 | Configure an IP address, 10.1.5.2/30, on the interface xe3. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe3 for area 1. |
P1(config-if)#exit | Exit interface mode xe3. |
P1(config)#commit | Commit the transaction. |
P1(config)#interface xe4 | Enter interface mode xe4. |
P1(config-if)#ip address 10.1.6.2/30 | Configure an IP address, 10.1.6.2/30, on the interface xe4. |
P1(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P1(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P1(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe4 for area 1. |
P1(config-if)#exit | Exit interface mode xe4. |
P1(config)#commit | Commit the transaction. |
P1(config)#router isis 1 | Enter router ISIS mode. |
P1(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
P1(config-router)#metric-style wide | Configure the new style of metric type as wide. |
P1(config-router)#mpls traffic-eng router-id 10.10.10.5 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.5, which is used for MPLS-TE path calculations. |
P1(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
P1(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
P1(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
P1(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
P1(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
P1(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
P1(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
P1(config-router)#net 49.0000.0000.0005.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
P1(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
P1(config-router)#segment-routing mpls | Enable SR ISIS. |
P1(config-router)#exit | Exit router ISIS mode and return to the configure mode. |
P1(config)#commit | Commit the transaction. |
P2#configure terminal | Enter configure mode. |
P2(config)#interface lo | Enter the interface mode for the loopback interface lo. |
P2(config-if)#ip address 10.10.10.6/32 secondary | Configure a secondary IP address, 10.10.10.6/32, on the loopback interface. |
P2(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
P2(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
P2(config-if)#exit | Exit interface mode lo. |
P2(config)#commit | Commit the transaction. |
P2(config)#segment-routing | Configure segment routing on P2 device. |
P2(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
P2(config-sr)#exit | Exit the router SR mode. |
P2(config)#commit | Commit the transaction. |
P2(config)#router ldp | Enter the Router LDP mode. |
P2(config-router)#router-id 10.10.10.6 | Set the router ID for LDP to 10.10.10.6. |
P2(config-router)#transport-address ipv4 10.10.10.6 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
P2(config-router)#exit | Exit router LDP mode and return to the configure mode. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe12 | Enter interface mode xe12. |
P2(config-if)#ip address 10.1.2.2/30 | Configure an IP address, 10.1.2.2/30, on the interface xe12. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe12 for area 1. |
P2(config-if)#exit | Exit interface mode xe12. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe13 | Enter interface mode xe13. |
P2(config-if)#ip address 10.1.3.2/30 | Configure an IP address, 10.1.3.2/30, on the interface xe13. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe13 for area 1. |
P2(config-if)#exit | Exit interface mode xe13. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe11 | Enter interface mode xe11. |
P2(config-if)#ip address 10.1.7.2/30 | Configure an IP address, 10.1.7.2/30, on the interface xe11. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe11 for area 1. |
P2(config-if)#exit | Exit interface mode xe11. |
P2(config)#commit | Commit the transaction. |
P2(config)#interface xe14 | Enter interface mode xe14. |
P2(config-if)#ip address 10.1.8.2/30 | Configure an IP address, 10.1.8.2/30, on the interface xe14. |
P2(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
P2(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
P2(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe14 for area 1. |
P2(config-if)#exit | Exit interface mode xe14. |
P2(config)#commit | Commit the transaction. |
P2(config)#router isis 1 | Enter router ISIS mode. |
P2(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
P2(config-router)#metric-style wide | Configure the new style of metric type as wide. |
P2(config-router)#mpls traffic-eng router-id 10.10.10.6 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.6, which is used for MPLS-TE path calculations. |
P2(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
P2(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
P2(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
P2(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
P2(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
P2(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
P2(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
P2(config-router)#net 49.0000.0000.0006.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
P2(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
P2(config-router)#segment-routing mpls | Enable SR ISIS. |
P2(config-router)#exit | Exit router ISIS mode and return to the configure mode. |
P2(config)#commit | Commit the transaction. |
PE3#configure terminal | Enter configure mode. |
PE3(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE3(config-if)#ip address 10.10.10.3/32 secondary | Configure a secondary IP address, 10.10.10.3/32, on the loopback interface. |
PE3(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
PE3(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
PE3(config-if)#exit | Exit interface mode lo. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#segment-routing | Configure segment routing on PE3 device. |
PE3(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
PE3(config-sr)#exit | Exit the router SR mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router ldp | Enter the Router LDP mode. |
PE3(config-router)#router-id 10.10.10.3 | Set the router ID for LDP to 10.10.10.3. |
PE2(config-router)#transport-address ipv4 10.10.10.3 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE3(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#targeted-peer ipv4 10.10.10.4 | Configure targeted peer for LDP using IPv4 addresses. |
PE3(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE3(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE3, enabling it to participate in EVPN MPLS services. |
PE3(config)#commit | Commit candidate configuration to be running configuration. |
PE3(config)#evpn mpls vtep-ip-global 10.10.10.3 | Configure the global VTEP IP address 10.10.10.3, associating it with the loopback IP. |
PE3(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE3(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE3 to support multi-homed EVPN MPLS services. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface xe1 | Enter interface mode xe1. |
PE3(config-if)#ip address 10.1.6.1/30 | Configure an IP address, 10.1.6.1/30, on the interface xe1. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE3(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE3(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe1 for area 1. |
PE3(config-if)#exit | Exit interface mode xe1. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface xe5 | Enter interface mode xe5. |
PE3(config-if)#ip address 10.1.7.1/30 | Configure an IP address, 10.1.7.1/30, on the interface xe5. |
PE3(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE3(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE3(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe5 for area 1. |
PE3(config-if)#exit | Exit interface mode xe5. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router isis 1 | Enter router ISIS mode. |
PE3(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
PE3(config-router)#metric-style wide | Configure the new style of metric type as wide. |
PE3(config-router)#mpls traffic-eng router-id 10.10.10.3 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.3, which is used for MPLS-TE path calculations. |
PE3(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
PE3(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
PE3(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
PE3(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
PE3(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE3(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE3(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
PE3(config-router)#net 49.0000.0000.0003.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
PE3(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
PE3(config-router)#segment-routing mpls | Enable SR ISIS. |
PE3(config-router)#exit | Exit router ISIS mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE3(config-router)#bgp router-id 10.10.10.3 | Configure BGP router ID 10.10.10.3, identifying PE3 within the BGP network. |
PE3(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.4 remote-as 65010 | Configure neighbor 10.10.10.4 as an iBGP neighbor with their remote AS number 65010. |
PE3(config-router)#neighbor 10.10.10.4 update-source lo | Configure neighbor 10.10.10.4 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE3(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.4 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE3(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#neighbor 10.10.10.4 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE3(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE3(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#neighbor 10.10.10.4 activate | Activate EVPN for iBGP neighbor 10.10.10.4 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE3(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE3(config-router)#commit | Commit the transaction. |
PE3(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE3(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE3(config-vrf)#rd 10.10.10.3:1700 | Configure Route-Distinguisher value of 10.10.10.3:1700. |
PE3(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE3(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE3(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE3(config-vrf)#rd 10.10.10.3:1001 | Configure Route-Distinguisher value of 10.10.10.3:1001. |
PE3(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE3(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with a source identifier of 1700 and a target identifier of 1800. |
PE3(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE3(config-evpn-mpls)#commit | Commit the transaction. |
PE3(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE3(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE3(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE3(config-evpn-mpls)#commit | Commit the transaction. |
PE3(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE3(config)#interface po1 | Enter the port channel interface mode for po1 |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#evpn multi-homed system-mac 0000.2222.7777 load-balancing port-active | Configure the system-mac address 0000.2222.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE3(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE3(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE3(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE3(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE3(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE3(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE3(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE3(config)#interface xe2 | Enter the interface mode for xe2. |
PE3(config-if)#speed 10g | Set the speed to 10g. |
PE3(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE3(config-if)#exit | Exit interface mode xe2 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface sa1 | Enter the single active interface mode for sa1. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#evpn multi-homed esi 00:00:22:22:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:22:22:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE3(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE3(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE3(config-if)#exit | Exit interface mode sa1 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE3(config)#interface sa1.1 switchport | Create a Layer 2 sub-interface sa1.1 within the port channel. |
PE3(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE3(config-if)#load-interval 30 | Set the load interval to 30. |
PE3(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE3(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE3(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE3(config-if)#exit | Exit interface mode sa1.1 and return to the configure mode. |
PE3(config)#interface xe2 | Enter the interface mode for xe2. |
PE3(config-if)#speed 10g | Set the speed to 10g. |
PE3(config-if)#static-channel-group 1 | Attach the static-channel-group 1, the LAG interface sa1 to xe2. |
PE3(config-if)#exit | Exit interface mode xe2 and return to the configure mode. |
PE3(config)#commit | Commit the transaction. |
PE4#configure terminal | Enter configure mode. |
PE4(config)#interface lo | Enter the interface mode for the loopback interface lo. |
PE4(config-if)#ip address 10.10.10.4/32 secondary | Configure a secondary IP address, 10.10.10.4/32, on the loopback interface. |
PE4(config-if)#ip router isis 1 | Enable ISIS routing on a loopback interface lo for area 1. |
PE4(config-if)#prefix-sid index 800 | Configure a prefix segment identifier (prefix-SID) index value as 800. |
PE4(config-if)#exit | Exit interface mode lo. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#segment-routing | Configure segment routing on PE4 device. |
PE4(config-sr)#mpls sr-prefer | Set MPLS as the preferred segment routing protocol over others. |
PE4(config-sr)#exit | Exit the router SR mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router ldp | Enter the Router LDP mode. |
PE4(config-router)#router-id 10.10.10.4 | Set the router ID for LDP to 10.10.10.4. |
PE4(config-router)#transport-address ipv4 10.10.10.4 | Configure the transport address for IPv4 (for IPv6 use ipv6 parameter) to be used for a TCP session where LDP operates. Note: It is preferable to use the loopback address as the transport address. |
PE4(config-router)#targeted-peer ipv4 10.10.10.1 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#targeted-peer ipv4 10.10.10.2 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#targeted-peer ipv4 10.10.10.3 | Configure targeted peer for LDP using IPv4 addresses. |
PE4(config-router-targeted-peer)#exit-targeted-peer-mode | Exit router targeted-peer-mode. |
PE4(config-router)#exit | Exit router LDP mode and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#evpn mpls enable | Activate the EVPN MPLS functionality on PE4, enabling it to participate in EVPN MPLS services. |
PE4(config)#commit | Commit candidate configuration to be running configuration. |
PE4(config)#evpn mpls vtep-ip-global 10.10.10.4 | Configure the global VTEP IP address 10.10.10.4, associating it with the loopback IP. |
PE4(config)#hardware-profile filter evpn-mpls-mh enable | Enable hardware-profile filter for EVPN MPLS multi-homing. |
PE4(config)#evpn mpls multihoming enable | Activate the EVPN MPLS multi-homing functionality, allowing PE4 to support multi-homed EVPN MPLS services. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface xe2 | Enter interface mode xe2. |
PE4(config-if)#ip address 10.1.5.1/30 | Configure an IP address, 10.1.5.1/30, on the interface xe2. |
PE4(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE4(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE4(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe2 for area 1. |
PE4(config-if)#exit | Exit interface mode xe2. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface xe0 | Enter interface mode xe0. |
PE4(config-if)#ip address 10.1.8.1/30 | Configure an IP address, 10.1.8.1/30, on the interface xe0. |
PE4(config-if)#enable-ldp ipv4 | Enable LDP on the physical interface, facilitating the exchange of label information between devices in the network. |
PE4(config-if)#label-switching | Enable label switching on the interface to enable MPLS-based packet forwarding. |
PE4(config-if)#ip router isis 1 | Enable ISIS routing on an interface xe2 for area 1. |
PE4(config-if)#exit | Exit interface mode xe0. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router isis 1 | Enter router ISIS mode. |
PE4(config-router)#is-type level-1-2 | Configure IS-Type as Level-1-2 specifies that the router will participate in both Level-1 and Level-2 areas within the ISIS network. |
PE4(config-router)#metric-style wide | Configure the new style of metric type as wide. |
PE4(config-router)#mpls traffic-eng router-id 10.10.10.4 | Configure the router's MPLS Traffic Engineering (TE) router ID TLV to 10.10.10.4, which is used for MPLS-TE path calculations. |
PE4(config-router)#mpls traffic-eng level-1 | Enable MPLS-TE for IS-Type Level-1 routing. |
PE4(config-router)#mpls traffic-eng level-2 | Enable MPLS-TE for IS-Type Level-2 routing. |
PE4(config-router)#capability cspf | Enable Constraint Shortest Path First (CSPF) computation for traffic engineering. |
PE4(config-router)#dynamic-hostname | Configure the hostname to be advertised for an ISIS instance. |
PE4(config-router)#fast-reroute ti-lfa level-1 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE4(config-router)#fast-reroute ti-lfa level-2 proto ipv4 | Configure Remote Loop-Free Alternate (LFA) to calculate backup paths to those destinations whichever does not satisfy basic LFA FRR inequalities |
PE4(config-router)#bfd all-interfaces | Configure BFD on all interfaces for fast link failure detection. |
PE4(config-router)#net 49.0000.0000.0004.00 | Set a Network Entity Title (NET) for this ISIS instance, specifying the area address and the system ID. |
PE4(config-router)#isis segment-routing global block 17000 23500 | Enable ISIS SR globally and allocates label blocks for Segment Routing. |
PE4(config-router)#segment-routing mpls | Enable SR ISIS. |
PE4(config-router)#exit | Exit router ISIS mode and return to configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#router bgp 65010 | Enter the Router BGP mode, ASN: 65010 |
PE4(config-router)#bgp router-id 10.10.10.4 | Configure BGP router ID 10.10.10.4, identifying PE4 within the BGP network. |
PE4(config-router)#neighbor 10.10.10.1 remote-as 65010 | Configure neighbor 10.10.10.1 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.1 update-source lo | Configure neighbor 10.10.10.1 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.2 remote-as 65010 | Configure neighbor 10.10.10.2 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.2 update-source lo | Configure neighbor 10.10.10.2 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.3 remote-as 65010 | Configure neighbor 10.10.10.3 as an iBGP neighbor with their remote AS number 65010. |
PE4(config-router)#neighbor 10.10.10.3 update-source lo | Configure neighbor 10.10.10.3 as an iBGP neighbor, specifying the source of routing updates as the loopback interface. |
PE4(config-router)#neighbor 10.10.10.1 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.2 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.3 fall-over bfd multihop | Configure BFD for the BGP neighbor to provide rapid failure detection. |
PE4(config-router)#neighbor 10.10.10.1 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#neighbor 10.10.10.2 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#neighbor 10.10.10.3 advertisement-interval 0 | Configure advertisement interval for the neighbor, allowing more frequent BGP updates. |
PE4(config-router)#address-family l2vpn evpn | Enter into address family mode for L2VPN EVPN. |
PE4(config-router-af)#neighbor 10.10.10.1 activate | Activate EVPN for iBGP neighbor 10.10.10.1 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#neighbor 10.10.10.2 activate | Activate EVPN for iBGP neighbor 10.10.10.2 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#neighbor 10.10.10.3 activate | Activate EVPN for iBGP neighbor 10.10.10.3 within the address family mode, ensuring that EVPN address family is enabled for the neighbor. |
PE4(config-router-af)#exit | Exit address family mode and return to the router BGP mode. |
PE4(config-router)#commit | Commit the transaction. |
PE4(config-router)#exit | Exit router BGP mode and return to the configure mode. |
PE4(config)#mac vrf vrf2 | Enter VRF mode named vrf2. |
PE4(config-vrf)#rd 10.10.10.4:1700 | Configure Route-Distinguisher value of 10.10.10.4:1700. |
PE4(config-vrf)#route-target both 1700:1700 | Configure import and export values for the vrf2 as 1700:1700. |
PE4(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE4(config)#mac vrf vpls1001 | Enter VRF mode named vpls1001. |
PE4(config-vrf)#rd 10.10.10.4:1001 | Configure Route-Distinguisher value of 10.10.10.4:1001. |
PE4(config-vrf)#route-target both 1001:1001 | Configure import and export values for the vpls1001 as 1001:1001. |
PE4(config-vrf)#exit | Exit VRF mode and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#evpn mpls id 1700 xconnect target-mpls-id 1800 | Configure the EVPN-VPWS identifier with a source identifier of 1700 and a target identifier of 1800. |
PE4(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrf2 | Map VRF vrf2 to the EVPN-VPWS identifier |
PE4(config-evpn-mpls)#commit | Commit the transaction. |
PE4(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE4(config)#evpn mpls id 3000 | Configure the EVPN-VPLS identifier an identifier of 3000. |
PE4(config-evpn-mpls)#host-reachability-protocol evpn-bgp vpls1001 | Map VRF vpls1001 to the EVPN-VPWS identifier |
PE4(config-evpn-mpls)#commit | Commit the transaction. |
PE4(config-evpn-mpls)#exit | Exit the EVPN MPLS mode and return to the configure mode. |
PE4(config)#interface po1 | Enter the port channel interface mode for po1 |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#evpn multi-homed system-mac 0000.2222.7777 load-balancing port-active | Configure the system-mac address 0000.2222.7777 for port-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE4(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE4(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE4(config-if)#exit | Exit interface mode po1 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface po1.1 switchport | Create a Layer 2 sub-interface po1.1 within the port channel. |
PE4(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE4(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE4(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE4(config-if)#exit | Exit interface mode po1.1 and return to the configure mode. |
PE4(config)#interface xe11 | Enter the interface mode for xe11. |
PE4(config-if)#speed 10g | Set the speed to 10g. |
PE4(config-if)#channel-group 1 mode active | Attach LAG interface po1. |
PE4(config-if)#exit | Exit interface mode xe11 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface sa2 | Enter the single active interface mode for sa2. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#evpn multi-homed esi 00:00:22:22:77:77 load-balancing single-active | Configure the ESI with the value with the value 00:00:22:22:77:77 for single-active mode, which plays a role in load balancing and enter to the EVPN Ethernet Segment (ES) mode. |
PE4(config-if-es)#service-carving auto | Configure service carving as auto, allowing automatic determination of service distribution preferences. |
PE4(config-if-es)#exit | Exit the EVPN ES mode and return to the configure mode. |
PE4(config-if)#exit | Exit interface mode sa2 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
PE4(config)#interface sa2.1 switchport | Create a Layer 2 sub-interface sa2.1 within the port channel. |
PE4(config-if)#encapsulation dot1q 100 | Set encapsulation to dot1q with VLAN ID 100. |
PE4(config-if)#load-interval 30 | Set the load interval to 30. |
PE4(config-if)#access-if-evpn | Enter the access mode for EVPN MPLS ID configuration. |
PE4(config-acc-if-evpn)#map vpn-id 1800 | Map VPN-ID 1800. |
PE4(config-acc-if-evpn)#exit | Exit the access mode and return to the interface mode. |
PE4(config-if)#exit | Exit interface mode sa2.1 and return to the configure mode. |
PE4(config)#interface xe11 | Enter the interface mode for xe11. |
PE4(config-if)#speed 10g | Set the speed to 10g. |
PE4(config-if)#static-channel-group 2 | Attach the static-channel-group 2, the LAG interface sa2 to xe11. |
PE4(config-if)#exit | Exit interface mode xe11 and return to the configure mode. |
PE4(config)#commit | Commit the transaction. |
CE2#configure terminal | Enter configure mode. |
CE2(config)#bridge 1 protocol ieee vlan-bridge | Set up bridge 1 to use the IEEE VLAN bridge protocol. |
CE2(config)#vlan 2-100 bridge 1 state enable | Configure VLANs from 2-100 and associate them with bridge 1. |
CE2(config)#interface xe24 | Enter interface mode xe24. |
CE2(config-if)#switchport | Configure the interface xe24 as a Layer 2 switch port. |
CE2(config-if)#bridge-group 1 | Associate xe24 to bridge 1. |
CE2(config-if)#switchport mode trunk | Configure xe24 as a trunk port. |
CE2(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk interface xe24. |
CE2(config-if)#exit | Exit interface mode xe24. |
CE2(config)#interface po1 | Enter interface mode and configure LAG interface port-channel 1 (po1). |
CE2(config-if)#switchport | Configures port-channel 1 as a Layer 2 switch port. |
CE2(config-if)#bridge-group 1 | Associate po1 to bridge 1. |
CE2(config-if)#switchport mode trunk | Configure po1 as a trunk port. |
CE2(config-if)#switchport trunk allowed vlan all | Allow all configured VLANs on the trunk port-channel po1. |
CE2(config-if)#exit | Exit interface mode po1. |
CE2(config)#interface xe22 | Enter interface mode xe22. |
CE2(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE2(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE2(config-if)#exit | Exit interface mode xe22. |
CE2(config-if)#interface xe23 | Enter interface mode xe23. |
CE2(config-if)#lacp timeout short | Configure LACP timeout as short. |
CE2(config-if)#channel-group 1 mode active | Add member to the LAG interface. |
CE2(config-if)#commit | Commit the transaction. |
CE2(config-if)#end | Exit interface mode xe23 and configure mode. |
Acronym | Description |
EVPN | Ethernet Virtual Private Network |
ELINE | Ethernet Line services |
ELAN | Ethernet LAN services |
LAN | Local Area Network |
CE | Customer Edge |
PE | Provider Edge |
MH | Multihoming |
AC | Attachment Circuit |
LACP | Link Aggregation Control Protocol |
BUM | Broadcast, Unknown Unicast, Multicast |
MAC | Media Access Control |
ARP/ND | Address Resolution Protocol/Neighbor Discovery |
DF | Designated Forwarder |
Ethernet Virtual Private Network (EVPN) | A network technology that extends Layer 2 Ethernet services over a Layer 3 IP/MPLS network. |
Ethernet Line services (ELINE) | Two PEs are directly connected over an Ethernet link, enabling redundancy and efficient data exchange. |
Ethernet LAN services (ELAN) | A group of PEs are interconnected in a multipoint Ethernet network, providing redundancy and optimized data transfer. |
Port-Active | A redundancy mechanism in which multiple Provider Edge (PE) devices can be active simultaneously for the same host or MAC address, with specific active ports associated with each active PE. |
Single-Active | A redundancy mechanism in which only one of the Provider Edge (PE) devices is active at a time for handling traffic for a specific host or MAC address. |
Customer Edge (CE) | A device at the customer's network edge that connects to the service provider's network. |
Provider Edge (PE) | A device at the service provider's network edge that connects to customer edge devices. |
Multihoming (MH) | Connecting a host or CE device to multiple PE devices for redundancy and load balancing. |
Attachment Circuit (AC) | The connection between a CE device and a PE device in an EVPN network. |
Link Aggregation Control Protocol (LACP) | A protocol used to manage and bundle multiple physical links into a single logical link for higher bandwidth and redundancy. |
Broadcast, Unknown Unicast, Multicast (BUM) | Categories of network traffic that includes broadcast, unknown unicast, and multicast packets. |
Media Access Control (MAC) | A unique identifier assigned to network interfaces, typically associated with a hardware address. |
Address Resolution Protocol/Neighbor Discovery (ARP/ND) | Protocols used to map IP addresses to MAC addresses in a local network. |
Designated Forwarder (DF) | A PE device selected to forward broadcast, unknown unicast, and multicast traffic within an Ethernet segment. |
Redundancy | The provision of duplicate equipment or links to ensure network availability in case of failures. |
Failover | The process of switching to a backup device or link in case of a primary device or link failure. |
Resiliency | The ability of a network to maintain its functionality even in the face of failures or disruptions. |
Unicast | Communication between a single sender and a single receiver in a network. |
Multicast | Communication from a single sender to multiple receivers in a network. |
Egress | The process of traffic leaving a device or network segment. |
Standby | In redundancy, a secondary device or link that is ready to take over in case the primary device or link fails. |
Active | In redundancy, the primary device or link that is currently handling traffic. |
Forwarding | The process of transmitting network packets from one device to another. |
Link State | The operational status of a network link, indicating whether it is up or down. |
Virtual Routing and Forwarding (VRF) | A technology that enables multiple instances of a routing table to coexist within a router. |
Virtual Local Area Network (VLAN) | A logical network segment within a physical network. |
Data Exchange | The process of sending and receiving data between network devices. |
Downtime | The period during which a network or service is not available due to maintenance or failures. |