#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. |
#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 |
#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. |
#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 router mode |
Rtr1(config-router)#exit | Exit OSPF 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 interface 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)#jitter-buffer-size 300 | Configure the jitter-buffer size to 300 |
Rtr1 (config-if)#timer error-set malformed-packets 3000 | Configure the value to detect malformed packets |
Rtr1(config-if)#timer error-clear malformed-packets 8000 | Configure the value to clear malformed packets |
Rtr1 (config-if)#timer error-set buffer-overrun 3000 | Configure the value to detect buffer overrun |
Rtr1(config-if)#timer error-clear buffer-overrun 3000 | Configure the value to clear buffer overrun |
Rtr1(config-if)#timer error-set packet-loss 3000 | Configure the value to detect packet-loss |
Rtr1(config-if)#timer error-clear packet-loss 3000 | Configure the value to clear packet-loss |
Rtr1(config-if)#timer error-set excessive-packet-loss-rate 3000 | Configure the value to detect excessive-packet-loss-rate |
Rtr1(config-if)#timer error-clear excessive-packet-loss-rate 3000 | Configure the value to clear excessive-packet-loss-rate |
Rtr1(config-if)#timer error-set stray-packets 3000 | Configure the value to detect stray-packets |
Rtr1 (config-if)#timer error-clear stray-packets 3000 | Configure the value to clear stray-packets |
Rtr1 (config-if)#timer error-set remote-packet-loss 3000 | Configure the value to detect remote-packet-loss 3000 |
Rtr1 (config-if)#timer error-clear remote-packet-loss 3000 | Configure the value to clear remote-packet-loss 3000 |
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. |
#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 |
Rtr2(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. |
#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 |
Rtr3(config-if)#jitter-buffer-size 300 | Configure the jitter buffer of the size to 300 |
Rtr3(config-if)#timer error-set malformed-packets 3000 | Configure the value to detect malformed packets |
Rtr3(config-if)#timer error-clear malformed-packets 8000 | Configure the value to clear malformed packets |
Rtr3(config-if)#timer error-set buffer-overrun 3000 | Configure the value to detect buffer overrun |
Rtr3(config-if)#timer error-clear buffer-overrun 8000 | Configure the value to clear buffer overrun |
Rtr3(config-if)#timer error-set packet-loss 3000 | Configure the value to detect packet-loss |
Rtr3(config-if)#timer error-clear packet-loss 8000 | Configure the value to clear packet-loss |
Rtr3(config-if)#timer error-set excessive-packet-loss-rate 3000 | Configure the value to detect excessive-packet-loss-rate |
Rtr3(config-if)#timer error-clear excessive-packet-loss-rate 8000 | Configure the value to clear excessive-packet-loss-rate |
Rtr3(config-if)#timer error-set stray-packets 3000 | Configure the value to detect stray-packets |
Rtr3(config-if)#timer error-clear stray-packets 8000 | Configure the value to clear stray-packets |
Rtr3(config-if)#timer error-set remote-packet-loss 3000 | Configure the value to detect remote-packet-loss to 3000 |
Rtr3(config-if)#timer error-clear remote-packet-loss 8000 | Configure the value to clear remote-packet-loss to 3000 |
Rtr3(config-if))#mpls-l2-circuit vc1 tdm-T1 | Bind the T1 interface to the pseudowire |
Rtr3(config-if)#exit | Exit interface mode |
Rtr1(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. |