OcNOS-RON : Multi-Protocol Label Switching Guide : Multi-Protocol Label Switching Configuration Guide : MPLS Statistics Configuration : Configure LDP-LSP
Configure LDP-LSP
Topology
Figure 17-1: MPLS Statistics Topology
RTR1
Loopback Interface configuration
 
#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)#exit
Exit interface mode.
Global LDP configuration
 
(config)#router ldp
Enter Router mode for LDP.
(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)#end
Exit router and configure mode
Enabling LDP and label switching on interface
 
#configure terminal
Enter configure mode.
(config)#interface eth2
Enter interface mode for eth2.
(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)#exit
Exit interface mode.
Global OSPF configuration
 
(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 (eth2) in OSPF.
(config-router)#exit
Exit Router OSPF mode and return to Configure mode.
RTR2
Loopback Interface configuration
 
#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)#exit
Exit interface mode.
Global LDP configuration
 
(config)#router ldp
Enter Router mode for LDP.
(config-router)#transport-address ipv4 22.22.22.22
Configure the loopback address as transport-address
(config-router)#end
Exit router and configure mode
Enabling LDP and label switching on interface
 
#configure terminal
Enter configure mode.
(config)#interface eth1
Enter interface mode for eth1.
(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 eth2
Enter interface mode for eth2.
(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)#exit
Exit interface mode.
OSPF Configuration
 
(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 (eth1) in OSPF.
(config-router)#network 20.20.20.1/24 area 0.0.0.0
Advertise network address (eth2) in OSPF.
(config-router)#exit
Exit OSPF router configuration mode.
RTR3
Loopback Interface configuration
 
#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)#exit
Exit interface mode.
Global LDP configuration
 
(config)#router ldp
Enter Router mode for LDP.
(config-router)#transport-address ipv4 33.33.33.33
Configure the loopback address as transport-address
(config-router)#end
Exit router and configure mode
Enabling LDP and label switching on interface
 
#configure terminal
Enter configure mode.
(config)#interface eth1
Enter interface mode for eth1.
(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 eth2
Enter interface mode for eth2.
(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)#exit
Exit interface mode.
OSPF Configuration
 
(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 (eth1) in OSPF.
(config-router)#network 30.30.30.1/24 area 0.0.0.0
Advertise network address (eth2) in OSPF.
(config-router)#exit
Exit OSPF router configuration mode.
RTR4
Loopback Interface configuration
 
#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)#exit
Exit interface mode.
Global LDP configuration
 
(config)#router ldp
Enter Router mode for LDP.
(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)#end
Exit router and configure mode
Enabling LDP and label switching on interface
 
#configure terminal
Enter configure mode.
(config)#interface eth1
Enter interface mode for eth1.
(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)#exit
Exit interface mode.
Global OSPF Configuration
 
(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 (eth1) in OSPF.
(config-router)#exit
Exit OSPF router configuration mode.
Virtual Circuit Configuration
RTR1
Global VC Configuration
 
(config)#mpls l2-circuit t1 100 44.44.44.44
Enter the VC configuration command in router mode.
(config)#bridge 1 protocol ieee vlan-bridge
Creating a VLAN-bridge in router mode.
Interface Configuration
 
(config)#service-template st1
Template configuration
(config-svc)#exit
Exit service template configuration
(config)#interface eth1
Enter interface mode for eth1.
(config-if)#switchport
Enable switchport on the interface.
(config-if)#mpls-l2-circuit t1 service-template st1
Bind the interface to VC created in ethernet mode.
(config-if)#exit
Exit interface mode.
RTR4
Global VC Configuration
 
(config)#mpls l2-circuit t1 100 11.11.11.11
Enter the VC configuration command in router mode.
(config)#bridge 1 protocol ieee vlan-bridge
Creating a VLAN-bridge in router mode.
Interface Configuration
 
(config)#service-template st1
Template configuration
(config-svc)#exit
Exit service template mode
(config)#interface eth2
Enter interface mode for eth2.
(config-if)#switchport
Enable switchport on the interface.
(config-if)#mpls-l2-circuit t1 service-template st1
Bind the interface to VC created in ethernet mode.
(config-if)#exit
Exit interface mode.
Last modified date: 07/13/2023