#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 29.29.29.29/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively bring the interface up. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 29.29.29.29 | Configure the router ID. |
(config)#router rsvp | Enter to router rsvp mode. |
(config-router)#exit | Exit the router mode |
(config)#router ldp | Enter to router LDP mode. |
(config-router)#targeted-peer ipv4 30.30.30.30 | Configure targeted peer. |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit-targeted-peer-mode |
(config-router)#exit | Exit router mode |
(config)#interface xe21 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 21.21.21.29/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on this interface |
(config-if)#exit | Exit interface mode. |
(config)#interface xe22 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#enable-ldp ipv4 | Enable LDP on this interface |
(config-if)#ip address 22.22.22.29/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 29.29.29.29 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 21.21.21.0/24 area 0 (config-router)#network 22.22.22.0/24 area 0 (config-router)#network 29.29.29.29/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#exit | Exit the router configure mode. |
(config)#rsvp-path p21 | Enter the path mode for RSVP pt1. |
(config-path)#21.21.21.43 strict | Configure this explicit route path as a strict hop. |
(config-path)#38.38.38.42 strict | Configure this explicit route path as a strict hop. |
(config-path)#69.69.69.30 strict | Configure this explicit route path as a strict hop. |
(config)#exit | Exit the path mode. |
(config)#rsvp-trunk to_30 ipv4 | Enter the trunk mode for RSVP. |
(config-trunk)#primary fast-reroute protection one-to-one | Configure primary fast-reroute protection facility for a trunk. |
(config-trunk)#primary fast-reroute node-protection | Configure primary fast-reroute node protection for the trunk |
(config-trunk)#primary path p21 | Configure trunk to 30 to use the defined path. |
(config-trunk)#to 30.30.30.30 | Specify the IPv4 egress (destination point) for the LSP. |
(config-trunk)#exit | Exit from trunk mode. |
(config)#ip vrf vrf1 | Configure VRF instance |
(config-vrf)#rd 100:1 | Configure Router Distinguisher value |
(config-vrf)#route-target both 100:1 | Configure route-target as both |
(config-vrf)#exit | Exit the path mode. |
(config)#interface xe43 | Enter to the interface mode |
(config-if)#ip vrf forwarding vrf1 | Bind the VRF instance to the interface |
(config-if)#ip address 43.43.43.29/24 | Configure IP address |
(config-if)#exit | Exit interface mode. |
(config)#router bgp 100 | Configure BGP router instance |
(config-router)#neighbor 30.30.30.30 remote-as 100 | Configure neighbor with remote-as |
(config-router)#neighbor 30.30.30.30 update-source 29.29.29.29 | Configure update source as loopback address |
(config-router)#address-family vpnv4 unicast | Configure VPNv4 address family |
(config-router-af)#neighbor 30.30.30.30 activate | Activate the VPN neighbor |
(config-router-af)#exit-address-family | Exit the VPN address family |
(config-router)#address-family ipv4 vrf vrf1 | Configure VRF address family |
(config-router-af)redistribute connected | Redistribute connected route |
(config-router-af)exit-address-family | Exit VRF address family |
(config-router)#exit | Exit router mode |
(config)#mpls l2-circuit vlan10 10 30.30.30.30 | Configure Virtual circuit. |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)#service-template st1 | Template configuration |
(config-svc)#match outer-vlan 10 | Match criteria under template configuration |
(config-svc)#exit | Exit service template mode |
(config)#service-template st2 | Template configuration |
(config-svc)#match outer-vlan 30 | Match criteria under template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe44 | Enter interface configuration mode |
(config-if)#switchport | Configure interface as switch port |
(config-if)#mpls-l2-circuit t1 service-template st1 | Bind the interface to the VC with service template |
(config-if)#exit | Exit interface configuration mode |
(config)#mpls vpls vpls30 30 | Configure VPLS instance |
(config-vpls)#signaling ldp | Configure VPLS signaling as LDP |
(config-vpls-sig)#vpls-type vlan | Configure VPLS type as VLAN encapsulation |
(config-vpls-sig)#vpls-peer 30.30.30.30 | Configure VPLS peer |
(config-vpls-sig)#exit-signaling | Exit VPLS configuration mode |
(config)#interface xe45 | Enter interface configuration mode |
(config-if)#switchport | Configure interface as switch port |
(config-if)#mpls-vpls vpls30 service-template st2 | Bind the VPLS instance to the interface |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 43.43.43.43/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively shutdown the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 43.43.43.43 | Configure the router ID. |
(config)#router rsvp | Enter to router RSVP mode. |
(config-router)#exit | Exit the router mode |
(config)#interface xe5/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 11.11.11.43/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe9/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 21.21.21.43/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe9/2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 22.22.22.43/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe13/2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 38.38.38.43/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 43.43.43.43 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 11.11.11.0/24 area 0 (config-router)#network 22.22.22.0/24 area 0 (config-router)#network 21.21.21.0/24 area 0 (config-router)#network 38.38.38.0/24 area 0 (config-router)#network 43.43.43.43/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#commit | Commit the transaction. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 42.42.42.42/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively shutdown the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 42.42.42.42 | Configure the router ID. |
(config)#router rsvp | Enter to router RSVP mode. |
(config-router)#exit | Exit the router mode |
(config)#interface xe2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 5.5.5.42/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe10/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 25.25.25.42/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe3 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 38.38.38.42/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe4 | Enter interface mode |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 69.69.69.42/24 | Specify an IP address for the interface |
(config-if)#no shutdown | Administratively no shutdown the interface |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface |
(config-if)#exit | Exit interface mode |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 42.42.42.42 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 5.5.5.0/24 area 0 (config-router)#network 25.25.25.0/24 area 0 (config-router)#network 69.69.69.0/24 area 0 (config-router)#network 38.38.38.0/24 area 0 (config-router)#network 42.42.42.42/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#commit | Commit the transaction |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 44.44.44.44/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 44.44.44.44 | Configure the router ID. |
(config)#router rsvp | Enter to router RSVP mode. |
(config-router)#exit | Exit the router mode |
(config)#interface xe1/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 1.1.1.41/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 5.5.5.41/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe5/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 11.11.11.41/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 44.44.44.44 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 5.5.5.0/24 area 0 (config-router)#network 1.1.1.0/24 area 0 (config-router)#network 11.11.11.0/24 area 0 (config-router)#network 44.44.44.44/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#commit | Commit the transaction. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 31.31.31.31/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively shutdown the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 31.31.31.31 | Configure the router ID. |
(config)#router rsvp | Enter to router RSVP mode. |
(config-router)#exit | Exit the router mode |
(config)#interface xe1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 1.1.1.31/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe25 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#ip address 25.25.25.31/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe41 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 41.41.41.31/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 31.31.31.31 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 1.1.1.0/24 area 0 (config-router)#network 25.25.25.0/24 area 0 (config-router)#network 41.41.41.0/24 area 0 (config-router)#network 31.31.31.31/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#commit | Commit the transaction. |
(config)#interface lo | Enter interface mode. |
(config-if)#ip address 30.30.30.30/32 secondary | Set a secondary IP address of the interface |
(config-if)#no shutdown | Administratively shutdown the interface. |
(config-if)#exit | Exit interface mode. |
(config)#router-id 30.30.30.30 | Configure the router ID. |
(config)#router rsvp | Enter to router RSVP mode. |
(config-router)#exit | Exit the router mode |
(config)#router ldp | Enter to router LDP mode. |
(config-router)#targeted-peer ipv4 29.29.29.29 | Configure targeted peer. |
(config-router-targeted-peer)#exit-targeted-peer-mode | Exit-targeted-peer-mode |
(config-router)#exit | Exit router mode |
(config)#interface xe41 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface. |
(config-if)#ip address 41.41.41.30/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#enable-ldp ipv4 | Enable LDP on this interface |
(config-if)#exit | Exit interface mode. |
(config)#interface xe54/1 | Enter interface mode. |
(config-if)#label-switching | Enable label switching on interface |
(config-if)#enable-ldp ipv4 | Enable LDP on this interface |
(config-if)#ip address 69.69.69.30/24 | Set an IP address of the interface. |
(config-if)#no shutdown | Administratively no shutdown the interface. |
(config-if)#enable-rsvp | Enable RSVP message exchange on this interface. |
(config-if)#exit | Exit interface mode. |
(config)#router ospf | Enter the router configure mode for OSPF. |
(config-router)#router-id 30.30.30.30 | Configure OSPF router-ID same as loopback interface IP address |
(config-router)#network 41.41.41.0/24 area 0 (config-router)#network 69.69.69.0/24 area 0 (config-router)#network 30.30.30.30/32 area 0 | Define the network on which OSPF runs and associate the area ID |
(config-router)#commit | Commit the transaction. |
(config)#rsvp-path p41 | Enter the path mode for RSVP pt1. |
(config-path)#41.41.41.31 strict | Configure this explicit route path as a strict hop. |
(config-path)#1.1.1.41 strict | Configure this explicit route path as a strict hop. |
(config-path)#11.11.11.43 strict | Configure this explicit route path as a strict hop. |
(config)#exit | Exit the path mode. |
(config)#rsvp-trunk to_29 ipv4 | Enter the trunk mode for rsvp. |
(config-trunk)#primary fast-reroute protection one-to-one | Configure primary fast-reroute protection facility for a trunk. |
(config-trunk)#primary fast-reroute node-protection | Configure primary fast-reroute node protection for the trunk |
(config-trunk)#primary path p41 | Configure trunk to_29 to use the defined path. |
(config-trunk)#to 29.29.29.29 | Specify the IPv4 egress (destination point) for the LSP. |
(config-trunk)#exit | Exit from trunk mode. |
(config)#ip vrf vrf1 | Configure VRF instance |
(config-vrf)#rd 100:1 | Configure Router Distinguisher value |
(config-vrf)#route-target both 100:1 | Configure route-target as both |
(config-vrf)#exit | Exit the path mode. |
(config)#interface xe23 | Enter to the interface mode |
(config-if)#ip vrf forwarding vrf1 | Bind the VRF instance to the interface |
(config-if)#ip address 23.23.23.29/24 | Configure IP address |
(config-if)#exit | Exit interface mode. |
(config)#router bgp 100 | Configure BGP router instance |
(config-router)#neighbor 29.29.29.29 remote-as 100 | Configure neighbor with remote-as |
(config-router)#neighbor 29.29.29.29 update-source 30.30.30.30 | Configure update source as loopback address |
(config-router)#address-family vpnv4 unicast | Configure VPNv4 address family |
(config-router-af)#neighbor 29.29.29.29 activate | Activate the VPN neighbor |
(config-router-af)#exit-address-family | Exit the VPN address family |
(config-router)#address-family ipv4 vrf vrf1 | Configure VRF address family |
(config-router-af)redistribute connected | Redistribute connected route |
(config-router-af)exit-address-family | Exit VRF address family |
(config-router)#exit | Exit router mode |
(config)#mpls l2-circuit vlan10 10 29.29.29.29 | Configure Virtual circuit. |
(config-pseudowire)#exit | Exit pseudowire config mode. |
(config)#service-template st1 | Template configuration |
(config-svc)#match outer-vlan 10 | Match criteria under template configuration |
(config-svc)#exit | Exit service template mode |
(config)#service-template st2 | Template configuration |
(config-svc)#match outer-vlan 30 | Match criteria under template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe24 | Enter interface configuration mode |
(config-if)#switchport | Configure interface as switch port |
(config-if)#mpls-l2-circuit vlan10 service-template st1 | Bind the interface to the VC with service template |
(config-if)#exit | Exit interface configuration mode |
(config)#mpls vpls vpls30 30 | Configure VPLS instance |
(config-vpls)#signaling ldp | Configure VPLS signaling as LDP |
(config-vpls-sig)#vpls-type vlan | Configure VPLS type as VLAN encapsulation |
(config-vpls-sig)#vpls-peer 29.29.29.29 | Configure VPLS peer |
(config-vpls-sig)#exit-signaling | Exit VPLS configuration mode |
(config)#interface xe25 | Enter interface configuration mode |
(config-if)#switchport | Configure interface as switch port |
(config-if)#mpls-vpls vpls30 service-template st2 | Bind the VPLS instance to the interface |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if-vpls)#exit | Exit VPLS attachment-circuit mode |
(config-if)#commit | Commit the transaction. |