#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the interface (lo) to be configured. |
(config-if)#ip address 11.11.11.11/32 secondary | Configure IP address on loopback interface |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter Router mode for LDP. |
(config-router)#router-id 11.11.11.11 | Configure the router-id |
(config-router)#transport-address ipv4 11.11.11.11 | Configure the loopback address as transport-address |
(config-router)#targeted-peer ipv4 44.44.44.44 | Configure the loopback address of RTR4 as targeted peer. |
(config-router-targeted-peer)#exit | Exit router-targeted-peer mode and enter config-router mode |
(config-router-targeted-peer)#commit | Commit the transaction. |
(config)#interface xe2 | Enter interface mode for xe2. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 10.10.10.1/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode. |
(config-router)#network 11.11.11.11/32 area 0 | Advertise loopback address in OSPF. |
(config-router)#network 10.10.10.0/24 area 0 | Advertise network address (xe2) in OSPF. |
(config-router)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the interface (lo) to be configured. |
(config-if)#ip address 22.22.22.22/32 secondary | Configure IP address on loopback interface |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter Router mode for LDP. |
(config-router)#router-id 22.22.22.22 | Configure the router-id |
(config-router)#transport-address ipv4 22.22.22.22 | Configure the loopback address as transport-address |
(config-router)#commit | Commit the transaction. |
(config)#interface xe1 | Enter interface mode for xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 10.10.10.2/24 | Configure IP address on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode for xe2. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 20.20.20.1/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode |
(config-router)#network 22.22.22.22/32 area 0.0.0.0 | Advertise loopback address in OSPF |
(config-router)#network 10.10.10.2/24 area 0.0.0.0 | Advertise network address (xe1) in OSPF. |
(config-router)#network 20.20.20.1/24 area 0.0.0.0 | Advertise network address (xe2) in OSPF. |
(config-router)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the interface (lo) to be configured. |
(config-if)#ip address 33.33.33.33/32 secondary | Configure IP address on loopback interface |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter Router mode for LDP. |
(config-router)#router-id 33.33.33.33 | Configure the router-id |
(config-router)#transport-address ipv4 33.33.33.33 | Configure the loopback address as transport-address |
(config-router)#commit | Commit the transaction. |
(config)#interface xe1 | Enter interface mode for xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 20.20.20.2/24 | Configure IP address on the interface. |
(config-if)#exit | Exit interface mode. |
(config)#interface xe2 | Enter interface mode for xe2. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 30.30.30.1/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode |
(config-router)#network 33.33.33.33/32 area 0.0.0.0 | Advertise loopback address in OSPF |
(config-router)#network 20.20.20.2/24 area 0.0.0.0 | Advertise network address (xe1) in OSPF. |
(config-router)#network 30.30.30.1/24 area 0.0.0.0 | Advertise network address (xe2) in OSPF. |
(config-router)#commit | Commit the transaction. |
#configure terminal | Enter configure mode. |
(config)#interface lo | Specify the interface (lo) to be configured. |
(config-if)#ip address 44.44.44.44/32 secondary | Configure IP address on loopback interface |
(config-if)#commit | Commit the transaction. |
(config)#router ldp | Enter Router mode for LDP. |
(config-router)#router-id 44.44.44.44 | Configure the router-id |
(config-router)#transport-address ipv4 44.44.44.44 | Configure the loopback address as transport-address |
(config-router)#targeted-peer ipv4 11.11.11.11 | Configure the loopback address of RTR1 as targeted peer. |
(config-router-targeted-peer)#exit | Exit router-targeted-peer mode and enter config-router mode |
(config-router)#commit | Commit the transaction. |
(config)#interface xe1 | Enter interface mode for xe1. |
(config-if)#enable-ldp ipv4 | Enable LDP on the interface. |
(config-if)#label-switching | Enable Label switching on the interface. |
(config-if)#ip address 30.30.30.2/24 | Configure IP address on the interface. |
(config-if)#commit | Commit the transaction. |
(config)#router ospf 100 | Enter the Router OSPF mode |
(config-router)#network 44.44.44.44/32 area 0.0.0.0 | Advertise loopback address in OSPF |
(config-router)#network 30.30.30.2/24 area 0.0.0.0 | Advertise network address (xe1) in OSPF. |
(config-router)#commit | Commit the transaction. |
(config)#mpls vpls vpls1 1 | Enter the VPLS configuration mode |
(config-vpls)# signaling ldp | Use LDP signaling for VPLS |
(config-vpls-sig)#vpls-type ethernet | Configure the VPLS as Ethernet |
(config-vpls-sig)#vpls-peer 44.44.44.44 | Configure RTR4 as VPLS peer for RTR1. |
(config-vpls-sig)#exit-signaling | Exit signaling mode |
(config-vpls)# exit-vpls | Exit VPLS config mode and return to Configure mode |
(config-vpls)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe1 | Enter the Interface mode for xe1 |
(config-if)#switchport | Enable switchport on the interface |
(config-if)#mpls-vpls vpls1 service-template st1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if)#commit | Commit the transaction. |
(config)#mpls vpls vpls1 1 | Enter the VPLS configuration mode |
(config-vpls)#signaling ldp | Use LDP signaling for VPLS |
(config-vpls-sig)#vpls-type ethernet | Configure the VPLS as Ethernet |
(config-vpls-sig)#vpls-peer 11.11.11.11 | Configure RTR1 as VPLS peer for RTR4. |
(config-vpls-sig)#exit-signaling | Exit signaling mode |
(config-vpls)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe2 | Enter the Interface mode for xe2 |
(config-if)#switchport | Enable switchport on the interface |
(config-if)#mpls-vpls vpls1 service template st1 | Bind the VPLS to the Access Interface. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if-vpls)#commit | Commit the transaction. |
(config)#mpls l2-circuit t1 100 44.44.44.44 | Enter the VC configuration command in router mode. |
(config-pseudowire)#exit | Exit service template mode |
(config)#bridge 1 protocol ieee vlan-bridge | Creating a VLAN-bridge in router mode. |
(config)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template configuration |
(config)#interface xe1 | Enter interface mode for xe1. |
(config-if)#switchport | Enable switchport on the interface. |
(config-if)#mpls-vpls vpls1 service-template st1 | Bind the interface to VPLS. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if)#commit | Commit the transaction. |
(config)#mpls l2-circuit t1 100 11.11.11.11 | Enter the VC configuration command in router mode. |
(config)#exit | Exit service template mode. |
(config)#bridge 1 protocol ieee vlan-bridge | Creating a VLAN-bridge in router mode. |
(config)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe2 | Enter interface mode for xe2. |
(config-if)#switchport | Enable switchport on the interface. |
(config-if)#mpls-vpls vpls1 service-template st1 | Bind the interface to VPLS. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config)#commit | Commit the transaction. |
(config)#mpls vpls vpls1 1 | Enter the VPLS configuration mode. |
(config-vpls)#signaling ldp | Use LDP signaling for VPLS. |
(config-vpls-sig)#vpls-peer 44.44.44.44 | Configure RTR4 as VPLS peer for RTR1. |
(config-vpls-sig)#exit-signaling | Exit signaling mode. |
(config-vpls)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe1 | Enter interface mode for xe1. |
(config-if)#switchport | Enable switchport on the interface. |
(config-if)#mpls-vpls vpls1 service-template st1 | Bind the interface to VPLS. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if-vpls)#commit | Commit the transaction. |
(config)#mpls vpls vpls1 1 | Enter the VPLS configuration mode. |
(config-vpls)#signaling ldp | Use LDP signaling for VPLS. |
(config-vpls-sig)#vpls-peer 11.11.11.11 | Configure RTR4 as VPLS peer for RTR1. |
(config-vpls-sig)#exit-signaling | Exit signaling mode. |
(config-vpls)#commit | Commit the transaction. |
(config)#service-template st1 | Template configuration |
(config-svc)#exit | Exit service template mode |
(config)#interface xe2 | Enter interface mode for xe2. |
(config-if)#switchport | Enable switchport on the interface. |
(config-if)#mpls-vpls vpls1 service-template st1 | Bind the interface to VPLS. |
(config-if-vpls)#split-horizon group access1 | Configure split-horizon group on VPLS |
(config-if-vpls)#exit | Exit VPLS mode and return to interface mode. |
(config-if)#commit | Commit the transaction. |