OcNOS-RON-6.3.1 : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : PW Redundancy Configuration : PE4
PE4
 
#configure terminal
Enter configure mode.
(config-if)#interface lo
Identify the loopback interface to configure (lo).
(config-if)#ip address 69.69.69.69/32
Set the IP address of the loopback interface to 69.69.69.69/32.
(config-if)#exit
Exit interface mode.
(config)#interface eth4
Enter interface mode.
(config-if)#label-switching
Enable label switching on the interface.
(config-if)#ip address 44.0.0.69/24
Set the IP address of the interface to 44.0.0.69/24.
(config-if)#exit
Exit interface mode.
(config)#router ospf
Enter the Router mode for OSPF.
(config-router)#network 69.69.69.69/32 area 0
(config-router)#network 44.0.0.0/24 area 0
Define the Network on which OSPF runs and associate the area ID (area 0) with the interface.
(config-router)#exit
Exit Router mode and return to Configure mode.
(config)#router ldp
Enter the Router mode for LDP.
(config-router)#transport-address ipv4 69.69.69.69
Configure LDP loopback address as transport address.
(config-router)#pw-status-tlv
Enable the Pseudowire Status TLV (pw-status-tlv).
(config-router)#targeted-peer-ipv4 68.68.68.68
Configure LDP targeted peer to PE1.
(config-router)#targeted-peer-ipv4 69.69.69.69
Configure LDP targeted peer to PE3.
(config-router)#exit
Exit the Router mode and return to Configure mode.
(config)#interface eth4
Enter interface mode.
(config-if)#enable-ldp ipv4
Enable IPv4 LDP on the interface.
(config-if)#exit
Exit interface mode.
(config)#mpls l2-circuit vc2 20 66.66.66.66
Configure a Virtual Circuit for PE1. In this example, vc2 is the VC name, 20 is the VC ID, and 66.66.66.66 is the endpoint IP address.
(config-pseduowire)#exit
Exit pseudowire mode.
(config)#mpls l2-circuit vc4 40 67.67.67.67
Configure another Virtual Circuit for PE3. In this example, vc4 is the VC name, 40 is the VC ID, and 66.66.66.66 is the endpoint IP address.
(config-pseduowire)#exit
Exit pseudowire mode.
(config-if)#interface eth1
Enter interface mode.
(config-if)#switchport
Switch to Layer 2 mode.
(config-if)#mpls-l2-circuit vc2 ethernet
Bind VC2 as an Ethernet circuit.
(config-if)#mpls-l2-circuit vc3 ethernet
Bind VC4 as an Ethernet circuit.
(config-if)#vc-mode standby
Configure VC mode as standby.
(config-if)#exit
Exit interface mode.
Last modified date: 07-13-2023