OcNOS-RON-6.3.1 : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : SAToP Configuration : SAToP Pseudowire Creation
SAToP Pseudowire Creation
This procedure show how to establish the pseudowire between provider edge routers. The configuration assumes that you are running the ospfd, ldpd, mstpd, nsm, and imi daemons.
Topology
Figure 12-1: Three router topology for PW creation
Rtr1
 
 
#configure terminal
Enter configure mode
(config)#hostname Rtr1
Configure the name of the host as Rtr1
Rtr1(config)#interface eth7
Enter interface mode
Rtr1(config-if)#ip address 1.1.1.1/24
Assign IP address 1.1.1.1 to the interface
Rtr1(config-if)#exit
Exit interface mode
Rtr1(config)#int lo
Enter interface mode
Rtr1(config-if)#ip address 2.2.2.2/32
Assign an IP address to the loopback interface
Rtr1(config-if)#exit
Exit interface mode
Rtr1(config)#router ospf
Enter OSPF router mode
Rtr1(config-router)#network 2.2.2.2/32 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr1(config-router)#network 1.1.1.1/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr1(config-router)#exit
Exit OSPF router mode
Rtr1(config)#router ldp
Enter LDP router mode
Rtr1(config-router)#targeted-peer ipv4 4.4.4.4
Configure the target peer IP address
Rtr1(config-router-targeted-peer)#exit
Exit LDP targeted peer mode
Rtr1(config-router)#exit
Exit LDP router mode
Rtr1(config)#int eth7
Enter interface mode
Rtr1(config-if)#enable-ldp ipv4
Enable the LDP protocol on eth1
Rtr1(config-if)#label-switching
Enable label switching on interface eth1
Rtr1(config-if)#exit
Exit the LDP configuration mode
Rtr1(config)#int tdm 5
Enter interface mode
Rtr1(config-if)#tdm payload bytes 200
Configure the TDM payload bytes to 200
Rtr1(config-if))#mpls-l2-circuit vc1 tdm-T1
Bind the T1 interface to the pseudowire
Rtr1(config-if)#exit
Exit interface configuration mode
Rtr1(config)#mpls l2-circuit vc1 10 4.4.4.4
Configure a Virtual Circuit for PE1. In this example, vc1 is the VC name, 10 is the VC ID, and 4.4.4.4 is the Endpoint IP address.
(config-pseduowire)#exit
Exit pseudowire mode.
Rtr2
 
#configure terminal
Enter configure mode
(config)#hostname Rtr2
Configure the name of the host as Rtr2
Rtr2(config)#int eth2
Enter interface mode
Rtr2(config-if)#ip address 1.1.1.2/24
Assign IP address 1.1.1.2 to the interface
Rtr2(config-if)#exit
Exit interface mode
Rtr2(config)#int eth3
Enter interface mode
Rtr2(config-if)#ip address 5.5.5.1/24
Assign IP address 5.5.5.1 to the interface
Rtr2(config-if)#exit
Exit interface mode.
Rtr2(config)#int lo
Enter interface mode
Rtr2(config-if)#ip address 3.3.3.3/32
Assign IP address 3.3.3.3 to the loopback interface
Rtr2(config-if)#exit
Exit interface mode
Rtr2(config)#router ospf
Enter OSPF router mode
Rtr1(config-router)#network 3.3.3.3/32 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr2(config-router)#network 1.1.1.2/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr2(config-router)#network 5.5.5.1/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr2(config-router)#exit
Exit OSPF router mode
Rtr2(config)#int eth2
Enter interface mode
Rtr2(config-if)#enable ldp ipv4
Enable the LDP protocol on eth1
Rtr2(config-if)#label switching
Enable label switching on interface eth1
Rtr2(config-if)#exit
Exit interface mode
Rtr2(config)#int eth3
Enter interface mode
Rtr2(config-if)#enable ldp ipv4
Enable the LDP protocol on eth2
Rtr2(config-if)#label switching
Enable label switching on interface eth2
Rtr2(config-if)#exit
Exit interface mode
Rtr3
 
#configure terminal
Enter configure mode
(config)#hostname Rtr3
Configure the name of the host as Rtr3
Rtr3(config)#interface eth2
Enter interface mode
Rtr3(config-if)#ip address 5.5.5.2/24
Assign IP address 5.5.5.2 to the interface
Rtr3(config-if)#exit
Exit interface mode
Rtr3(config)#int lo
Enter interface mode
Rtr3(config-if)#ip address 4.4.4.4/32
Assign an IP address to the loopback interface
Rtr3(config-if)#exit
Exit interface mode
Rtr3(config)#router ospf
Enter OSPF router mode
Rtr3(config-router)#network 4.4.4.4./32 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr3(config-router)#network 5.5.5.2/24 area 0
Define the interface on which OSPF runs and associate the area ID (0) with the interface
Rtr3(config-router)#exit
Exit OSPF router mode
Rtr3(config)#router ldp
Enter LDP router mode
Rtr3(config-router)#targeted-peer ipv4 2.2.2.2
Configure the target peer IP address
Rtr3(config-router-targeted-peer)#exit
Exit LDP router mode
Rtr3(config-router)#exit
Exit the router mode
Rtr3(config)#int eth2
Enter interface mode
Rtr3(config-if)#enable-ldp ipv4
Enable the LDP protocol on eth1
Rtr3(config-if)#label-switching
Enable label switching on interface eth1
Rtr3(config-if)#exit
Exit interface mode
Rtr3(config)#int tdm 5
Enter interface mode
Rtr1(config-if)#tdm payload bytes 200
Configure the TDM payload bytes to be 200 bytes
Rtr3(config-if))#mpls-l2-circuit vc1 tdm-T1
Bind the T1 interface to the pseudowire
Rtr3(config-if)#exit
Exit interface mode
Rtr3(config)#mpls l2-circuit vc1 10 2.2.2.2
Configure a Virtual Circuit for PE1. In this example, vc1 is the VC name, 10 is the VC ID, and 2.2.2.2 is the endpoint IP address.
(config-pseduowire)#exit
Exit pseudowire mode.
Validation
Verify on Rtr1 or Rtr3 that the LDP session is operating and that the PW is set-up successfully.
rtr1#show ldp session
Peer IP Address IF Name My Role State KeepAlive
4.4.4.4 eth7 Passive OPERATIONAL 30
3.3.3.3 eth7 Passive OPERATIONAL 30
rtr1#show ldp mpls-l2-circuit
Transport Client VC VC Local Remote Destination
VC ID Binding State Type VC Label VC Label Address
10 tdm5 UP tdm-E1 16 16 4.4.4.4
Last modified date: 07-13-2023