#configure terminal | Enter configuration mode. |
(config)#int lo | Enter interface mode for loopback. |
(config-if)#ip address 101.1.1.1/32 secondary | Configure IP address on loopback |
(config-if)#exit | Exit interface mode |
(config)#mac vrf vrfred | Configure MAC VRF |
(config-vrf)#rd 101:1 | Configure RD for the MAC VRF |
(config-vrf)#route-target export 101:1 | Configure export RT for the MAC VRF |
(config-vrf)#route-target import 102:1 | Configure import RT for the MAC VRF |
(config-vrf)#route-target import 103:1 | Configure import RT for the MAC VRF |
(config-vrf)#exit | Exit VRF mode. |
(config)#evpn mpls enable | Enable the evpn mpls. |
(config)#evpn mpls vtep-ip-global 101.1.1.1 | Configure VTEP-IP-global. |
(config)#evpn mpls id 1000 | Configure MPLS EVID. |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrfred | Configure host-reachability with VRF association. |
(config-if)#interface xe6.2 | Configure sub-interface to create access-circuit. |
(config-if)#switchport | Make the sub-interface a Layer 2 interface |
(config-if)#encapsulation dot1q 2 | Configure the encapsulation required. |
(config-if)#map vpn-id 1000 | Map interface to ethernet virtual network identifier. |
(config-if)#exit | Exit interface mode. |
(config)#router rsvp | Enable RSVP in the PE |
(config)#interface xe5 | Enter interface mode for the network side interface. |
(config-if)#ip address 10.1.1.1/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-rsvp | Enable RSVP. |
(config-if)#exit | Exit interface mode |
(config)#rsvp-trunk t1_PE2 | Configure RSVP trunk. |
(config-trunk)#from 101.1.1.1 | Assign the source loopback address to the RSVP trunk |
(config-trunk)#to 102.1.1.1 | Assign the source loopback address to the to the RSVP trunk |
(config-trunk)#exit | Exit RSVP trunk mode. |
(config)#rsvp-trunk t1_PE3 | Configure RSVP trunk. |
(config-trunk)#from 101.1.1.1 | Assign the source loopback address to the RSVP trunk |
(config-trunk)#to 103.1.1.1 | Assign the source loopback address to the to the RSVP trunk |
(config-trunk)#exit | Exit RSVP trunk mode. |
(config)#router ospf 1 | Enter OSPF router mode |
(config-router)#ospf router-id 101.1.1.1 | Configure router-id. |
(config-router)#network 101.1.1.1/32 area 0.0.0.0 | Advertise the loopback address in area 0. |
(config-router)#network 10.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#exit | Exit OSPF router mode. |
(config)#router bgp 1 | Enter BGP router mode |
(config-router)#neighbor 102.1.1.1 remote-as 1 | Advertise the neighbor in BGP process with the remote-as number |
(config-router)#neighbor 102.1.1.1 update-source lo | Configure the update-source for the neighbor |
(config-router)#neighbor 103.1.1.1 remote-as 1 | Advertise the neighbor in BGP process with the remote-as number |
(config-router)#neighbor 103.1.1.1 update-source lo | Configure the update-source for the neighbor |
(config-router)#address-family l2vpn evpn | Enter EVPN address family mode |
(config-router-af)#neighbor 102.1.1.1 activate | Activate the neighbor |
(config-router-af)#neighbor 103.1.1.1 activate | Activate the neighbor |
(config-router-af)#exit-address-family | Exit address family mode. |
(config-router)#exit | Exit the router mode |
(config)#commit | Commit the transaction. |
(config)#exit | Exit the config mode. |
#configure terminal | Enter configuration mode. |
(config)#int lo | Enter interface mode for loopback. |
(config)#router rsvp | Configure RSVP. |
(config)#interface xe4 | Enter interface mode for the network side interface. |
(config-if)#ip address 30.1.1.1/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config)#interface xe6 | Enter interface mode for the network side interface. |
(config-if)#ip address 10.1.1.2/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config)#interface xe7 | Enter interface mode for the network side interface. |
(config-if)#ip address 20.1.1.1/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config-if)#exit | Exit interface mode |
(config)#interface xe74 | Enter interface mode for the network side interface. |
(config-if)#ip address 30.1.1.1/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-rsvp | Enable RSVP. |
(config-if)#exit | Exit interface mode |
(config)#router ospf 1 | Enter OSPF router mode |
(config-router)#ospf router-id 101.1.1.1 | Configure router-id. |
(config-router)#network 7.7.7.7/32 area 0.0.0.0 | Advertise the loopback address in area 0. |
(config-router)#network 10.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#network 20.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#network 30.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#exit | Exit the transaction |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#exit | Exit the config mode |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 102.1.1.1/32 secondary | Configure IP address on loopback |
(config-if)#exit | Exit interface mode |
(config)#mac vrf vrfred | Configure MAC VRF |
(config-vrf)#rd 102:1 | Configure RD for the MAC VRF |
(config-vrf)#route-target import 101:1 | Configure import RT for the MAC VRF |
(config-vrf)#route-target export 102:1 | Configure export RT for the MAC VRF |
(config-vrf)#exit | Exit VRF mode |
(config)#evpn mpls enable | Enable evpn mpls. |
(config)#evpn mpls vtep-ip-global 102.1.1.1 | Configure VTEP-IP-global. |
(config)#evpn mpls id 1000 | Configure MPLS EVID. |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrfred | Configure host-reachability with VRF association. |
(config-if)#interface xe6.2 | Configure sub-interface to create access-circuit. |
(config-if)#switchport | Make the sub-interface a Layer 2 interface |
(config-if)#encapsulation dot1q 2 | Configure the encapsulation required. |
(config-if)#access-if-evpn | Enter access mode for EVPN MPLS ID configuration |
(config-if)#map vpn-id 1000 | Map interface to Ethernet virtual network identifier. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enable LDP in the PE. |
(config-router)#router-id 102.1.1.1 | Set the router ID to IP address 102.1.1.1. |
config-router)#transport-address ipv4 102.1.1.1 | Set the IPv4 transport address for the label space. |
(config)#interface xe5 | Enter interface mode for the network side interface. |
(config-if)#ip address 20.1.1.2/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config-if)#exit | Exit interface mode |
(config)#rsvp-trunk t1_PE1 ipv4 | Configure RSVP trunk. |
(config-trunk)#from 102.1.1.1 | Assign the source loopback address to the to the RSVP trunk |
(config-trunk)#to 101.1.1.1 | Assign the destination loopback address to the RSVP trunk |
(config-trunk)#exit | Exit RSVP trunk mode. |
(config)#router ospf 1 | Enter OSPF router mode |
(config-router)#ospf router-id 102.1.1.1 | Configure router-id. |
(config-router)#network 102.1.1.1/32 area 0.0.0.0 | Advertise the loopback address in area 0. |
(config-router)#network 10.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#exit | Exit OSPF router mode. |
(config)#router bgp 1 | Enter BGP router mode |
(config-router)#neighbor 101.1.1.1 remote-as 1 | Advertise the neighbor in BGP process with the remote-as number |
(config-router)#neighbor 101.1.1.1 update-source lo | Configure the update-source for the neighbor |
(config-router)#address-family l2vpn evpn | Enter EVPN address family mode |
(config-router-af)#neighbor 101.1.1.1 activate | Activate the neighbor |
(config-router-af)#exit-address-family | Exit address family mode. |
(config-router)#exit | Exit the router mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#exit | Exit the config mode |
#configure terminal | Enter configuration mode. |
(config)#interface lo | Enter interface mode for loopback. |
(config-if)#ip address 103.1.1.1/32 secondary | Configure IP address on loopback |
(config-if)#exit | Exit interface mode |
(config)#mac vrf vrfred | Configure MAC VRF |
(config-vrf)#rd 103:1 | Configure RD for the MAC VRF |
(config-vrf)#route-target import 101:1 | Configure import RT for the MAC VRF |
(config-vrf)#route-target export 103:1 | Configure export RT for the MAC VRF |
(config-vrf)#exit | Exit VRF mode |
(config)#evpn mpls enable | Enable evpn mpls. |
(config)#evpn mpls vtep-ip-global 103.1.1.1 | Configure VTEP-IP-global. |
(config)#evpn mpls id 1000 | Configure MPLS EVID. |
(config-evpn-mpls)#host-reachability-protocol evpn-bgp vrfred | Configure host-reachability with VRF association. |
(config-if)#interface xe3.2 | Configure sub-interface to create access-circuit. |
(config-if)#switchport | Make the sub-interface a Layer 2 interface |
(config-if)#encapsulation dot1q 2 | Configure the encapsulation required. |
(config-if)#access-if-evpn | Enter access mode for EVPN MPLS ID configuration. |
(config-if)#map vpn-id 1000 | Map interface to Ethernet virtual network identifier. |
(config-if)#exit | Exit interface mode. |
(config)#router ldp | Enable LDP in the PE. |
(config-router)#router-id 103.1.1.1 | Set the router ID for IP address 103.1.1.1 |
(config-router)#transport-address ipv4 103.1.1.1 | Set the IPv4 transport address for the label space. |
(config)#interface xe4 | Enter interface mode for the network side interface. |
(config-if)#ip address 30.1.1.2/24 | Configure IP address on the network interface |
(config-if)#label-switching | Enable label-switching. |
(config-if)#enable-ldp ipv4 | Enable LDP. |
(config-if)#exit | Exit interface mode |
(config)#rsvp-trunk t1_PE1 ipv4 | Configure RSVP trunk. |
(config-trunk)#from 103.1.1.1 | Assign the source loopback address to the to the RSVP trunk |
(config-trunk)#to 101.1.1.1 | Assign the destination loopback address to the RSVP trunk |
(config-trunk)#exit | Exit RSVP trunk mode. |
(config)#router ospf 1 | Enter OSPF router mode |
(config-router)#ospf router-id 103.1.1.1 | Configure router-id. |
(config-router)#network 103.1.1.1/32 area 0.0.0.0 | Advertise the loopback address in area 0. |
(config-router)#network 30.1.1.0/24 area 0.0.0.0 | Advertise the network address in area 0 |
(config-router)#exit | Exit OSPF router mode. |
(config)#router bgp 1 | Enter BGP router mode |
(config-router)#neighbor 101.1.1.1 remote-as 1 | Advertise the neighbor in BGP process with the remote-as number |
(config-router)#neighbor 101.1.1.1 update-source lo | Configure the update-source for the neighbor |
(config-router)#address-family l2vpn evpn | Enter EVPN address family mode |
(config-router-af)#neighbor 101.1.1.1 activate | Activate the neighbor |
(config-router-af)#exit | Exit the transaction |
(config-router)#exit | Exit the router mode |
(config)#commit | Commit candidate configuration to be running configuration |
(config)#exit | Exit the config mode |