#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)#global block 10001 20000 | Enable SRGB under segment routing |
(config-sr)#local block 100000 109999 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 43.43.43.43/32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 4300 | Configure prefix-sid absolute value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 43.43.43.43 | Configure Router-id |
(config-router)#targeted-peer ipv4 14.14.14.14 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit from targeted-peer mode |
(config-router)#transport-address ipv4 43.43.43.43 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface ce3 | Enter interface mode |
(config-if)#ip address 16.0.0.10/24 | Configure IP address on interface |
(config-if)#adjacency-sid absolute 100500 | Configure adjacency-sid absolute value |
(config-if)#ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po100 | Enter interface mode |
(config-if)#ip address 15.0.0.20/24 | Configure IP address on interface |
(config-if)#adjacency-sid index 501 | Configure adjacency-sid index value |
(config-if)#ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe20 | Enter interface mode |
(config-if)#channel-group 100 mode active | Moving interface to Dynamic LAG |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe21 | Enter interface mode |
(config-if)#channel-group 100 mode active | Moving interface to Dynamic LAG |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 43.43.43.43 | Configure ospf Router-id |
(config-router)#network 15.0.0.20/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.0.10/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 43.43.43.43/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#tunnel-policy PE1-P1-PE2 | Configure tunnel policy |
(config-tnl-policy)# color 1 | Map the color with the SR policy to be used.. |
(config)#tunnel-policy PE1-P3-PE2 | Configure tunnel policy |
(config-tnl-policy)# color 2 | Map the color with the SR policy to be used.. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)# traffic-engineering | Segment Routing traffic engineering |
(config-sr-te) policy PE1-P1-PE2 | Policy configuration with name |
(config-sr-pol) color 1 end-point 14.14.14.14 | SR-policy color and end-point |
(config-sr-pol-cp) candidate-path 1 | SR policy candidate path |
(config-sr-pol-cp)# dynamic-path ospf 1 | Dynamic candidate path as OSPF |
(config-sr-pol-cp)# constraints | Specify constraints |
(config-sr-dyn-cp-cons)# 30.30.30.30 loose | Loopback IP of P1 as loose constraint |
(config-sr-dyn-cp-cons)# 44.44.44.44 loose | Loopback IP of P2 as loose constraint |
(config-sr-pol-cp)# exit-pol-cp | Exit from SR policy candidate path configuration mode |
(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
(config-sr-te) policy PE1-P3-PE2 | Policy configuration with name |
(config-sr-pol) color 2 end-point 14.14.14.14 | SR-policy color and end-point |
(config-sr-pol-cp) candidate-path 1 | SR policy candidate path |
(config-sr-pol-cp)# dynamic-path ospf 1 | Dynamic candidate path as OSPF |
(config-sr-pol-cp)# constraints | Specify constraints |
(config-sr-dyn-cp-cons)# 42.42.42.42 loose | Loopback IP of P1 as loose constraint |
(config-sr-dyn-cp-cons)# 29.29.29.29 loose | Loopback IP of P2 as loose constraint |
(config-sr-pol-cp)# exit-pol-cp | Exit from SR policy candidate path configuration mode |
(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
(config-sr-te)#exit-te | Exit from traffic engineering configuration mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf500 | Enter VRF mode |
(config-vrf)#rd 43.43.43.43:500 | Configuring Route-Distinguisher value |
(config-vrf)#route-target both 500:500 | Configuring import and export value |
(config)#mac vrf vpls600 | Enter VRF mode |
(config-vrf)#rd 43.43.43.43:600 | Configuring Route-Distinguisher value |
(config-vrf)#route-target both 600:600 | Configuring import and export value |
(config)#mac vrf vrfetree700 | Enter VRF mode |
(config-vrf)#rd 101:1 | Configuring Route-Distinguisher value |
(config-vrf)#route-target export 101:1 | Configuring export value |
(config-vrf)#route-target import 102:1 | Configuring import value |
(config-vrf)#evpn mpls vtep-ip-global 43.43.43.43 | Configuring VTEP global IP to loopback IP |
(config)#evpn mpls id 2 xconnect target-mpls-id 252 | Configure the EVPN-ELINE identifier with source identifier |
and target identifier | |
(config)#host-reachability-protocol evpn-bgp vrf500 | Mapping vrf to EVPN-ELINE identifier |
(config)#evpn mpls id 600 | Configure the EVPN-ELAN identifier with identifier |
(config)#host-reachability-protocol evpn-bgp vpls600 | Mapping vrf to EVPN-ELAN identifier |
(config)#evpn mpls id 700 | Configure the EVPN-ETREE identifier with identifier |
(config)#host-reachability-protocol evpn-bgp vrfetree700 | Mapping vrf to EVPN-TREE identifier |
(config)#router bgp 100 | Configure router bgp in AS 100 |
(config-router)#bgp router-id 43.43.43.43 | Configure BGP router ID |
(config-router)#neighbor 14.14.14.14 remote-as 100 | Configure neighbor in remote-as 100 |
(config-router)#neighbor 14.14.14.14 update-source lo | Configure neighbor with update-source loopback |
(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mode |
(config-router-af)#neighbor 14.14.14.14 activate | mode Activate VPNv4 neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family l2vpn evpn | Enter evpn Address family mode |
(config-router-af)#neighbor 14.14.14.14 activate | mode Activate evpn neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#exit | Exit from router mode |
(config)#mpls vpls100 100 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#vpls-type ethernet | Type ethernet configuration for VPLS |
(config-vpls-sig)# vpls-peer 14.14.14.14 tunnel-select-policy PE1-P3-PE2 | Configuring VPLS mesh peers with policy |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config)#mpls l2-circuit VPWS200 200 14.14.14.14 | Configuring VPWS instance with name and VPWS ID |
(config-pseudowire)# tunnel-select-policy PE1-P5-PE2 | Configuring VPWS peers with policy |
(config)#mpls vpls BGP-VPLS-PE1-PE2-300 300 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling bgp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#ve-id 500 | Configure VE ID, which is mandatory for BGP VPLS, |
otherwise, signaling does not take place. VE ID should be | |
unique per VPLS instance | |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config-if)#interface xe17.100 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vpls100 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if)#interface xe17.200 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpws | Access VPWS under sub interface |
(config-acc-if-vpls)#mpls-vpws VPWS100 | Associating the VPWS Instance to the attachment circuit interface. |
(config-if)#interface xe17.300 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls BGP-VPLS-PE1-PE2-300 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if)#interface xe17.500 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 500 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 2 | Associating the evpn Instance to the attachment circuit interface. |
(config-if)#interface xe17.600 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 600 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 600 | Associating the evpn Instance to the attachment circuit interface. |
(config-if)#interface xe17.700 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 700 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 700 | Associating the evpn Instance to the attachment circuit interface. |
(config-acc-if-vpls)#commit | Commit the configuration |
(config-acc-if-vpls)#end | Return to privilege mode |
#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)#global block 10001 20000 | Enable SRGB under segment routing |
(config-sr)#local block 30000 36000 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 5.5.5.5/32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 3000 | Configure prefix-sid absolute value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 5.5.5.5 | Configure Router-id |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#interface ce4 | Enter interface mode |
(config-if)#ip address 16.0.0.20/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#adjacency-sid index 1000 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po400 | Enter interface mode |
(config-if)#ip address 17.0.0.10/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)# adjacency-sid absolute 30700 | Configure adjacency-sid absolute value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface ce22 | Enter the Interface mode |
(config-if)#channel-group 400 mode active | Moving interface to Dynamic LAG |
(config-if)#interface ce23 | Enter the Interface mode |
(config-if)#channel-group 400 mode active | Moving interface to Dynamic LAG |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#ospf router-id 5.5.5.5 | Configure ospf Router-id |
(config-router)#network 17.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 5.5.5.5/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)#global block 10001 20000 | Enable SRGB under segment routing |
(config-sr)#local block 41000 50000 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 44.44.44.44/32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 4400 | Configure prefix-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 44.44.44.44 | Configure Router-id |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#interface sa300 | Enter interface mode |
(config-if)#ip address 12.0.0.10/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#adjacency-sid index 45000 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface po400 | Enter interface mode |
(config-if)#ip address 17.0.0.20/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#adjacency-sid index 2000 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface ce50 | Enter the Interface mode |
(config-if)#channel-group 400 mode active | Moving interface to Dynamic LAG |
(config-if)#interface ce51 | Enter the Interface mode |
(config-if)#channel-group 400 mode active | Moving interface to Dynamic LAG |
(config-if)#interface xe21 | Enter the Interface mode |
(config-if)#static-channel-group 300 | Moving interface to static LAG |
(config-if)#interface xe22 | Enter the Interface mode |
(config-if)#static-channel-group 300 | Moving interface to static LAG |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#ospf router-id 5.5.5.5 | Configure ospf Router-id |
(config-router)#network 17.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 16.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 5.5.5.5/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)# global block 10001 17000 | Enable SRGB under segment routing |
(config-sr)# local block 41000 50000 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 42.42.42.42 /32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 4200 | Configure prefix-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 42.42.42.42 | Configure Router-id |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#interface po100 | Enter interface mode |
(config-if)#ip address 15.0.0.10/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#adjacency-sid index 4159 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe9 | Enter interface mode |
(config-if)#ip address 14.0.0.10/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)# adjacency-sid absolute 41599 | Configure adjacency-sid absolute value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe20 | Enter the Interface mode for eth2 |
(config-if)#channel-group 100 mode active | Moving interface to Dynamic LAG 10 |
(config-if)#interface xe21 | Enter the Interface mode for eth3 |
(config-if)#channel-group 100 mode active | Moving interface to Dynamic LAG 10 |
(config-if)#exit | Exit interface mode |
(config)#commit | Commit the transaction. |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#ospf router-id 42.42.42.42 | Configure ospf Router-id |
(config-router)#network 14.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 15.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 42.42.42.42 /32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)#global block 10001 20000 | Enable SRGB under segment routing |
(config-sr)#local block 41000 50000 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 29.29.29.29/32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 2900 | Configure prefix-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 29.29.29.29 | Configure Router-id |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#interface xe2.2000 | Enter interface mode |
(config-if)#ip address 13.0.0.20/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#adjacency-sid index 4900 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface xe9 | Enter interface mode |
(config-if)#ip address 14.0.0.20/24 | Configure IP address on interface |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)# ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)# adjacency-sid index 5000 | Configure adjacency-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the routing process and specify the Process ID (100). The Process ID should be a unique positive integer identifying the routing process. |
(config-router)#ospf router-id 5.5.5.5 | Configure ospf Router-id |
(config-router)#network 13.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 14.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 29.29.29.29/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
#configure terminal | Enter Configure mode. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)#global block 10001 20000 | Enable SRGB under segment routing |
(config-sr)#local block 65000 74000 | Enable SRLB under segment routing |
(config)#interface lo | Enter interface mode |
(config -if)#ip address 14.14.14.14/32 secondary | Configure IP address for the loopback interface |
(config -if)#prefix-sid index 1400 | Configure prefix-sid index value |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#router ldp | Enter router mode for LDP |
(config-router)#router-id 14.14.14.14 | Configure Router-id |
(config-router)#targeted-peer ipv4 43.43.43.43 | Configuring targeted LDP sessions to PE-2 |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit from targeted-peer mode |
(config-router)#transport-address ipv4 14.14.14.14 | Configure the transport address to be used for a TCP session over which LDP will run on an IPv4 interface |
(config-router)#commit | Commit the configuration |
(config-router)#exit | Exit from router mode |
(config)#interface sa300 | Enter interface mode |
(config-if)#ip address 12.0.0.10/24 | Configure IP address on interface |
(config-if)#adjacency-sid index 5000 | Configure adjacency-sid index value |
(config-if)#ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config)#interface x2.2000 | Enter interface mode |
(config-if)#ip address 13.0.0.10/24 | Configure IP address on interface |
(config-if)#adjacency-sid index 5001 | Configure adjacency-sid index value |
(config-if)#ip ospf network point-to-point | Enable OSPF point-to-point network type. |
(config-if)#label-switching | Enable label switching capability on the interface |
(config-if)#enable-ldp ipv4 | Enabling LDP on the interface |
(config-if)#commit | Commit the configuration |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe3 | Enter interface mode |
(config-if)# static-channel-group 300 | Moving interface to static LAG |
(config-if)#exit | Exit interface mode |
(config-if)#interface xe4 | Enter interface mode |
(config-if)#channel-group 100 mode active | Moving interface to static LAG |
(config-if)#exit | Exit interface mode |
(config)#router ospf 100 | Configure the routing process and specify the Process ID, (100). The Process ID should be a unique positive integer to identifying the routing process. |
(config-router)#ospf router-id 14.14.14.14 | Configure ospf Router-id |
(config-router)#network 12.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 13.0.0.0/24 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#network 14.14.14.14/32 area 0 | Define the interface on which OSPF runs and associate the area ID (0) with the interface. |
(config-router)#segment-routing mpls | Enable segment routing |
(config-router)#commit | Commit the transaction. |
(config-router)#exit | Exit from router mode |
(config)#tunnel-policy PE1-P1-PE2 | Configure tunnel policy |
(config-tnl-policy)# color 1 | Map the color with the SR policy to be used.. |
(config)#tunnel-policy PE1-P3-PE2 | Configure tunnel policy |
(config-tnl-policy)# color 2 | Map the color with the SR policy to be used.. |
(config)#segment-routing | Enter the segment routing mode. |
(config-sr)# traffic-engineering | Segment Routing traffic engineering |
(config-sr-te) policy PE1-P1-PE2 | Policy configuration with name |
(config-sr-pol) color 1 end-point 43.43.43.43 | SR-policy color and end-point |
(config-sr-pol-cp) candidate-path 1 | SR policy candidate path |
(config-sr-pol-cp)# dynamic-path ospf 1 | Dynamic candidate path as OSPF |
(config-sr-pol-cp)# constraints | Specify constraints |
(config-sr-dyn-cp-cons)# 44.44.44.44 loose | Loopback IP of P2 as loose constraint |
(config-sr-dyn-cp-cons)# 30.30.30.30 loose | Loopback IP of P1 as loose constraint |
(config-sr-pol-cp)# exit-pol-cp | Exit from SR policy candidate path configuration mode |
(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
(config-sr-te) policy PE1-P3-PE2 | Policy configuration with name |
(config-sr-pol) color 2 end-point 43.43.43.43 | SR-policy color and end-point |
(config-sr-pol-cp) candidate-path 1 | SR policy candidate path |
(config-sr-pol-cp)# dynamic-path ospf 1 | Dynamic candidate path as OSPF |
(config-sr-pol-cp)# constraints | Specify constraints |
(config-sr-dyn-cp-cons)# 29.29.29.29 loose | Loopback IP of P2 as loose constraint |
(config-sr-dyn-cp-cons)# 42.42.42.42 loose | Loopback IP of P1 as loose constraint |
(config-sr-pol-cp)# exit-pol-cp | Exit from SR policy candidate path configuration mode |
(config-sr-pol)#exit-sr-pol | Exit from SR policy configuration mode |
(config-sr-te)#exit-te | Exit from traffic engineering configuration mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#mac vrf vrf500 | Enter VRF mode |
(config-vrf)#rd 14.14.14.14:500 | Configuring Route-Distinguisher value |
(config-vrf)#route-target both 500:500 | Configuring import and export value |
(config)#mac vrf vpls600 | Enter VRF mode |
(config-vrf)#rd 14.14.14.14:600 | Configuring Route-Distinguisher value |
(config-vrf)#route-target both 600:600 | Configuring import and export value |
(config)#mac vrf vrfetree700 | Enter VRF mode |
(config-vrf)#rd 101:1 | Configuring Route-Distinguisher value |
(config-vrf)#route-target export 101:1 | Configuring export value |
(config-vrf)#route-target import 102:1 | Configuring import value |
(config-vrf)#evpn mpls vtep-ip-global 14.14.14.14 | Configuring VTEP global IP to loopback IP |
(config)#evpn mpls id 252 xconnect target-mpls-id 2 | Configure the EVPN-ELINE identifier with source identifier |
and target identifier | |
(config)#host-reachability-protocol evpn-bgp vrf500 | Mapping vrf to EVPN-ELINE identifier |
(config)#evpn mpls id 600 | Configure the EVPN-ELAN identifier with identifier |
(config)#host-reachability-protocol evpn-bgp vpls600 | Mapping vrf to EVPN-ELAN identifier |
(config)#evpn mpls id 700 | Configure the EVPN-ETREE identifier with identifier |
(config)#host-reachability-protocol evpn-bgp vrfetree700 | Mapping vrf to EVPN-TREE identifier |
(config)#router bgp 100 | Configure router bgp in AS 100 |
(config-router)#bgp router-id 14.14.14.14 | Configure BGP router ID |
(config-router)#neighbor 43.43.43.43 remote-as 100 | Configure neighbor in remote-as 100 |
(config-router)#neighbor 43.43.43.43 update-source lo | Configure neighbor with update-source loopback |
(config-router)#address-family vpnv4 unicast | Enter VPNv4 Address family mode |
(config-router-af)#neighbor 43.43.43.43 activate | mode Activate VPNv4 neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#address-family l2vpn evpn | Enter evpn Address family mode |
(config-router-af)#neighbor 43.43.43.43 activate | mode Activate evpn neighbor |
(config-router-af)#exit-address-family | Exit from Address Family configuration |
(config-router)#exit | Exit from router mode |
(config)#mpls vpls100 100 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling ldp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#vpls-type ethernet | Type ethernet configuration for VPLS |
(config-vpls-sig)# vpls-peer 43.43.43.43 tunnel-select-policy PE1-P3-PE2 | Configuring VPLS mesh peers with policy |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config)#mpls l2-circuit VPWS200 200 43.43.43.43 | Configuring VPWS instance with name and VPWS ID |
(config-pseudowire)# tunnel-select-policy PE1-P5-PE2 | Configuring VPWS peers with policy |
(config)#mpls vpls BGP-VPLS-PE1-PE2-300 300 | Configuring VPLS instance with name and VPLS ID |
(config-vpls)#signaling bgp | Enabling LDP signaling for the VPLS instance |
(config-vpls-sig)#ve-id 500 | Configure VE ID, which is mandatory for BGP VPLS, |
otherwise, signaling does not take place. VE ID should be | |
unique per VPLS instance | |
(config-vpls-sig)#exit-signaling | Exit from VPLS signaling mode |
(config-vpls)#exit-vpls | Exit from VPLS mode |
(config-if)#interface xe17.100 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 100 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls vpls100 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if)#interface xe17.200 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 200 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpws | Access VPWS under sub interface |
(config-acc-if-vpls)#mpls-vpws VPWS100 | Associating the VPWS Instance to the attachment circuit interface. |
(config-if)#interface xe17.300 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 300 | Configure encapsulation under a subinterface |
(config-if)#access-if-vpls | Access VPLS under sub interface |
(config-acc-if-vpls)#mpls-vpls BGP-VPLS-PE1-PE2-300 | Associating the VPLS Instance to the attachment circuit interface. |
(config-if)#interface xe17.500 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 500 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 252 | Associating the evpn Instance to the attachment circuit interface. |
(config-if)#interface xe17.600 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 600 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 600 | Associating the evpn Instance to the attachment circuit interface. |
(config-if)#interface xe17.700 switchport | Enter sub interface mode |
(config-if)#encapsulation dot1q 700 | Configure encapsulation under a subinterface |
(config-if)#access-if-evpn | Access evpn under sub interface |
(config-acc-if-vpls)#map vpn-id 700 | Associating the evpn Instance to the attachment circuit interface. |
(config-acc-if-vpls)#commit | Commit the configuration |
(config-acc-if-vpls)#end | Return to privilege mode |