OcNOS SP : Layer 3 Guide : Border Gateway Protocol Configuration : BGP Labeled Unicast
BGP Labeled Unicast
As well as distributing routes, BGP with Multiprotocol Extensions (MP-BGP) can advertise MPLS label mappings that are mapped to routes. BGP Labeled Unicast (BGP-LU) attaches an MPLS label to an advertised IGP prefix and distributes the MPLS label mapped to the prefix to its peers.
With BGP-LU, a network can be divided into multiple regions to limit the total number of LSPs and enable failures to be contained and restored in a single region These regions operate separate instances of the IGP and use BGP-LU to advertise route information between inter-region routers.
A configuration for BGP-LU uses these type of nodes:
ā€¢ Provider Edge (PE) nodes advertise label bindings to remote PEs in other regions. These advertisements only affect the PE routers and the ABRs and not provider routers (ā€œPā€) in the core network.
ā€¢ Area Border Router (ABR) nodes advertise the label bindings to remote PEs in other regions.
Note: The default behavior in BGP LU for all connected or local IPv4 unicast routes advertised in labeled-unicast address-family mode is modified to assign implicit null label. For more information, refer to BGP Labeled Unicast with Implicit Null Label for Local Routes.
BGP Labeled Unicast as Transport
Topology
BGP labeled unicast
Configuration
PE1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 11.11.11.55/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface xe16
Enter interface mode
(config-if)#ip address 172.4.5.55/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 1
Configure the routing process OSPF with process Id 1.
(config-router)#network 172.4.5.0/24 area 0
Define the interface (172.4.5.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 11.11.11.55/32 area 0
Define the interface (11.11.11.55/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 21.21.21.56 update-source lo
Add loopback IP of PE2 as neighbor with neighbor AS
(config-router)#neighbor 21.21.21.56 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 172.4.5.52 remote-
as 100
Add neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 172.4.5.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 21.21.21.56 activate
Activate the neighbor inside vpnv4 address family
(config-router-af)#exit-address-family
Exit from address family vpnv4.
(config-router)#address-family ipv4 unicast
Enter into ipv4 unicast address family
(config-router-af)#network 11.11.11.55/32
Advertise the loopback of RTR1 in BGP
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface xe10
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 172.10.20.55/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router-af)# redistribute connected
Redistribute connected routes
(config-router-af)# exit-address-family
Exit address-family mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
ABR1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 22.22.22.52/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface xe16
Enter interface mode
(config-if)#ip address 172.4.5.52/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#interface xe12
Enter interface mode
(config-if)#ip address 172.6.7.52/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 1
Configure the routing process OSPF with process Id 1
(config-router)#network 172.4.5.0/24 area 0
Define the interface (172.4.5.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 172.6.7.0/24 area 0
Define the interface (172.6.7.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#router bgp 100
Enter Router BGP mode
(config-router)# neighbor 172.4.5.55 remote-as 100
Add neighbor with neighbor AS
(config-router)# neighbor 172.6.7.54 remote-as 100
Add neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)# address-family ipv4 labeled-unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 172.6.7.54 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 172.4.5.55 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 172.4.5.55 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.6.7.54 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.4.5.55 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.6.7.54 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit address-family mode
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
P1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)# ip address 200.200.200.54/32 secondary
Configure the IP address of the interface loopbak
(config-if)#exit
Exit interface mode
(config)#interface xe16
Enter interface mode
(config-if)#ip address 172.1.2.54/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#interface xe12
Enter interface mode
(config-if)#ip address 172.6.7.54/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#router ospf 1
Configure the routing process OSPF with process Id 1
(config-router)#network 172.1.2.0/24 area 0
Define the interface (172.1.2.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 172.6.7.0/24 area 0
Define the interface (172.6.7.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# neighbor 172.1.2.53 remote-as 100
Add neighbor with neighbor AS
(config-router)# neighbor 172.6.7.52 remote-as 100
Add neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)# address-family ipv4 labeled-unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 172.6.7.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 172.1.2.53 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 172.1.2.53 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.6.7.52 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.1.2.53 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.6.7.52 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router)# exit-address-family
Exit from address family.
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
ABR2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)# ip address 44.44.44.53/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface xe16
Enter interface mode
(config-if)#ip address 172.1.2.53/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#interface xe10
Enter interface mode
(config-if)#ip address 172.3.4.53/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 1
Configure the routing process OSPF with process Id 1
(config-router)#network 172.1.2.0/24 area 0
Define the interface (172.1.2.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 172.3.4.0/24 area 0
Define the interface (172.3.4.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# neighbor 172.1.2.54 remote-as 100
Add neighbor with neighbor AS
(config-router)# neighbor 172.3.4.56 remote-as 100
Add neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)# address-family ipv4 labeled-unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 172.3.4.56 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 172.1.2.54 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 172.3.4.56 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.1.2.54 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.3.4.56 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 172.1.2.54 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#exit
Exit from router BGP mode
(config)#end
Exit from config mode
(config)#commit
Commit the candidate configuration to the running configuration.
PE2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 21.21.21.56/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface xe10
Enter interface mode
(config-if)#ip address 172.3.4.56/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#router ospf 1
Configure the routing process OSPF with process Id 1
(config-router)#network 172.3.4.0/24 area 0
Define the interface (172.3.4.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 21.21.21.56/32 area 0
Define the interface (21.21.21.56/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 11.11.11.55 remote-as 100
Add loopback ip of PE1 as neighbor with neighbor AS
(config-router)#neighbor 11.11.11.55 update-source lo
Update the source for that particular neighbor as loopback interface
(config-router)# neighbor 172.3.4.53 remote-as 100
Add neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)# address-family ipv4 labeled-unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 172.3.4.53 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 11.11.11.55 activate
Activate the neighbor inside vpnv4 address family
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router-af)#network 21.21.21.56/32
Advertise the loopback in BGP
(config-router-af)#exit-address-family
Exit from address family ipv4 unicast
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface xe0
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 172.23.4.56/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router)# redistribute connected
Redistribute connected routes
(config-router)#exit
Exit from router mode into privilege mode
(config)#commit
Commit the candidate configuration to the running configuration.
Validation
PE1
 
PE1#show ip bgp neighbors 21.21.21.56
BGP neighbor is 21.21.21.56, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 11.11.11.55, remote router ID 21.21.21.56
BGP state = Established, up for 00:01:32
Last read 00:00:21, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family VPNv4 Unicast: advertised and received
Received 7 messages, 0 notifications, 0 in queue
Sent 9 messages, 0 notifications, 0 in queue
Route refresh request: received 1, sent 0
Minimum time between advertisement runs is 5 seconds
Update source is lo
For address family: VPNv4 Unicast
BGP table version 2, neighbor version 2
Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 1; dropped 0
Local host: 11.11.11.55, Local port: 179
Foreign host: 21.21.21.56, Foreign port: 38231
Nexthop: 11.11.11.55
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
 
 
PE1#show ip bgp neighbors 172.4.5.52
BGP neighbor is 172.4.5.52, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 11.11.11.55, remote router ID 22.22.22.52
BGP state = Established, up for 00:26:00
Last read 00:00:07, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: received
Address family IPv4 Labeled-Unicast: advertised and received
Received 67 messages, 2 notifications, 0 in queue
Sent 70 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Labeled-Unicast
BGP table version 2, neighbor version 2
Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 3; dropped 2
Local host: 172.4.5.55, Local port: 179
Foreign host: 172.4.5.52, Foreign port: 34324
Nexthop: 172.4.5.55
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:26:00, due to Administratively Reset (Cease Notification sent)
Notification Error Message: (Cease/Administratively Reset.)
 
PE1#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
S - stale
Network Next Hop In Label Out Label
*> 11.11.11.55/32 0.0.0.0 24320 -
*>i 21.21.21.56/32 172.4.5.52 24322 24321
 
PE1#show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
B - BGP FTN, K - CLI FTN, t - tunnel, P - SR Policy FTN,
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code FEC FTN-ID Nhlfe-ID Tunnel-id Pri LSP-Type O
ut-Label Out-Intf ELC Nexthop
B> 21.21.21.56/32 1 2 - - LSP_DEFAULT 2
4321 xe16 No 172.4.5.52
PE1#
 
PE1#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
K - CLI ILM, T - MPLS-TP, s - Stitched ILM
S - SNMP, L - LDP, R - RSVP, C - CRLDP
B - BGP , K - CLI , V - LDP_VC, I - IGP_SHORTCUT
O - OSPF/OSPF6 SR, i - ISIS SR, k - SR CLI
P - SR Policy, U - unknown
 
Code FEC/VRF/L2CKT ILM-ID In-Label Out-Label In-Intf Out-Intf
/VRF Nexthop LSP-Type
B> vrf1 2 24321 Nolabel N/A vrf1
N/A LSP_DEFAULT
B> 11.11.11.55/32 1 24320 Nolabel N/A N/A
127.0.0.1 LSP_DEFAULT
B> 21.21.21.56/32 3 24322 24321 N/A N/A
172.4.5.52 LSP_DEFAULT
PE1#
 
ABR1
 
ABR1#show ip ospf neighbor
 
Total number of full neighbors: 2
OSPF process 1 VRF(default):
Neighbor ID Pri State Dead Time Address Interface Instance ID
11.11.11.55 1 Full/DR 00:00:35 172.4.5.55 xe16 0
200.200.200.54 1 Full/Backup 00:00:32 172.6.7.54 xe12 0
ABR1#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 11.11.11.55/32 172.4.5.55 24320 24320
*>i 21.21.21.56/32 172.6.7.54 24321 24321
 
ABR1#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 11.11.11.55/32 172.4.5.55 24320 24320
*>i 21.21.21.56/32 172.6.7.54 24321 24321
 
ABR1#show mpls forwarding-table | include 11.11.11.55
B> 11.11.11.55/32 1 0 Yes LSP_DEFAULT 24320 xe16 No 172.4.5.55
 
P1
 
P1#show ip bgp neighbors 172.6.7.52
BGP neighbor is 172.6.7.52, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 200.200.200.54, remote router ID 22.22.22.52
BGP state = Established, up for 01:33:27
Last read 00:00:12, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: received
Address family IPv4 Labeled-Unicast: advertised and received
Received 229 messages, 0 notifications, 0 in queue
Sent 227 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Labeled-Unicast
BGP table version 7, neighbor version 7
Index 1, Offset 0, Mask 0x2
Route-Reflector Client
NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 3; dropped 2
Local host: 172.6.7.54, Local port: 47560
Foreign host: 172.6.7.52, Foreign port: 179
Nexthop: 172.6.7.54
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 01:33:32, due to Configuration Change (Cease Notification sent)
Notification Error Message: (Cease/Other Configuration Change.)
 
P1#show ip bgp neighbors 172.1.2.53
BGP neighbor is 172.1.2.53, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 200.200.200.54, remote router ID 44.44.44.53
BGP state = Established, up for 01:35:08
Last read 00:00:19, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Labeled-Unicast: advertised and received
Received 230 messages, 2 notifications, 0 in queue
Sent 233 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Labeled-Unicast
BGP table version 7, neighbor version 7
Index 2, Offset 0, Mask 0x4
Route-Reflector Client
NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 3; dropped 2
Local host: 172.1.2.54, Local port: 179
Foreign host: 172.1.2.53, Foreign port: 58824
Nexthop: 172.1.2.54
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 01:35:13, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
P1#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 11.11.11.55/32 172.6.7.52 24320 24320
*>i 21.21.21.56/32 172.1.2.53 24321 24321
 
P1#show mpls forwarding-table | include 11.11.11.55
B> 11.11.11.55/32 1 1 - - LSP_DEFAULT 24320 xe12 No 172.6.7.52
 
ABR2
 
ABR2#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
S - stale
Network Next Hop In Label Out Label
*>i 11.11.11.55/32 172.1.2.54 24320 24320
*>i 21.21.21.56/32 172.3.4.56 24321 24321
 
ABR2#show mpls forwarding-table | include 11.11.11.55
B> 11.11.11.55/32 1 1 - - LSP_DEFAULT 24320 xe16 No 172.1.2.54
 
PE2#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 11.11.11.55/32 172.3.4.53 24320 24320
*> 21.21.21.56/32 0.0.0.0 24321 -
 
PE2#show mpls forwarding-table | include 11.11.11.55
B> 11.11.11.55/32 1 1 - - LSP_DEFAULT 24320 xe10 No 172.3.4.53
 
PE2#show mpls ftn-table
Primary FTN entry with FEC: 11.11.11.55/32, id: 1, row status: Active, Tunnel-Policy: N/A
Owner: BGP, distance: 0, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: BGP, Stale: NO, out intf: xe10, out label: 24320
Nexthop addr: 172.3.4.53 cross connect ix: 1, op code: Push
 
PE2#show mpls vrf-table
Output for IPv4 VRF table with id: 2
Primary FTN entry with FEC: 172.10.20.0/24, id: 1, row status: Active, Tunnel-Policy: N/A
Owner: BGP, distance: 0, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Transport Tunnel id: 0, Protected LSP id: 0, Description: N/A, Color: 0
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 2
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: BGP, Stale: NO, BGP out intf: xe10, transport out intf: xe10, out label: 24321
Nexthop addr: 11.11.11.55 cross connect ix: 3, op code: Push and Lookup
 
 
PE2#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM
K - CLI ILM, T - MPLS-TP, s - Stitched ILM
S - SNMP, L - LDP, R - RSVP, C - CRLDP
B - BGP , K - CLI , V - LDP_VC, I - IGP_SHORTCUT
O - OSPF/OSPF6 SR, i - ISIS SR, k - SR CLI
P - SR Policy, U - unknown
 
Code FEC/VRF/L2CKT ILM-ID In-Label Out-Label In-Intf Out-Intf/VRF Nexthop LSP-Type
B> 21.21.21.56/32 2 24321 Nolabel N/A N/A 127.0.0.1 LSP_DEFAULT
B> 11.11.11.55/32 1 24320 24320 N/A N/A 172.3.4.53 LSP_DEFAULT
B> vrf1 3 24322 Nolabel N/A vrf1 N/A LSP_DEFAULT
 
BGP Labeled Unicast with Seamless MPLS
Topology
BGP_LU with MPLS
Configuration
PE1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 1.1.1.54/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 10.1.1.54/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#router ospf 10
Configure the routing process OSPF with process id 10
(config-router)#network 1.1.1.54/32 area 0
Define the interface (1.1.1.54/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 10.1.1.0/24 area 0
Define the interface (10.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 7.7.7.55 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 7.7.7.55 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 3.3.3.52 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 3.3.3.52 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 3.3.3.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 7.7.7.55 activate
Activate the neighbor inside vpnv4 address family
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router)#address-family ipv4 unicast
Enter into ipv4 unicast address family
(config-router-af)#network 1.1.1.54/32
Advertise the loopback of RTR1 in BGP
(config-router-af)#exit-address-family
Exit from address family
(config-router)#exit
Exit from router BGP mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 1.1.1.54 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface eth2
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 61.1.1.54/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router-af)# redistribute connected
Redistribute connected routes
(config-router-af)# exit-address-family
Exit address-family mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
P1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 2.2.2.23/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 10.1.1.23/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 20.1.1.23/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode.
(config)#router ospf 10
Configure the routing process OSPF with process id 10
(config-router)#network 20.1.1.0/24 area 0
Define the interface (20.1.1.0/24)) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 10.1.1.0/24 area 0
Define the interface (10.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 2.2.2.23/32 area 0
Define the interface (2.2.2.23/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 2.2.2.23 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip route 7.7.7.55/32 20.1.1.52
Specify the destination prefix and mask for the network and a gateway.
(config)#commit
Commit the candidate configuration to the running configuration.
ABR1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 3.3.3.52/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 30.1.1.52/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 20.1.1.52/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 20
Configure the routing process OSPF with process id 20
(config-router)#network 3.3.3.52/32 area 0
Define the interface (3.3.3.52/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 20.1.1.0/24 area 0
Define the interface (20.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 3.3.3.52 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 1.1.1.54 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 1.1.1.54 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 5.5.5.56 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 5.5.5.56 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 1.1.1.54 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 5.5.5.56 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 1.1.1.54 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 5.5.5.56 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 1.1.1.54 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 5.5.5.56 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit from address family labeled-unicast
(config)#commit
Commit the candidate configuration to the running configuration.
P2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 4.4.4.53/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 30.1.1.53/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 40.1.1.53/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 20
Configure the routing process OSPF with process id 20
(config-router)#network 30.1.1.0/24 area 0
Define the interface (30.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 40.1.1.0/24 area 0
Define the interface (40.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 4.4.4.53/32 area 0
Define the interface (4.4.4.53/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 4.4.4.53 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
ABR2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 5.5.5.56/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 50.1.1.56/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 40.1.1.56/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process id 20
(config-router)#network 5.5.5.56/32 area 0
Define the interface 5.5.5.56/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 50.1.1.0/24 area 0
Define the interface (50.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 20
Configure the routing process OSPF with process id 20
(config-router)#network 5.5.5.56/32 area 0
Define the interface 5.5.5.56/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 40.1.1.0/24 area 0
Define the interface (40.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 3.3.3.52 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 3.3.3.52 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 3.3.3.52 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 7.7.7.55 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 7.7.7.55 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 3.3.3.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 7.7.7.55 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 3.3.3.52 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 7.7.7.55 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 3.3.3.52 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 7.7.7.55 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit from address family labeled-unicast
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
P3
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 6.6.6.22/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 50.1.1.22/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 60.1.1.22/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process id 20
(config-router)#network 50.1.1.0/24 area 0
Define the interface (30.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 60.1.1.0/24 area 0
Define the interface (40.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 6.6.6.22/32 area 0
Define the interface (4.4.4.53/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 6.6.6.22 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip route 1.1.1.54/32 50.1.1.56
Specify the destination prefix and mask for the network and a gateway.
(config)#exit
Exit from config mode
(config)#commit
Commit the candidate configuration to the running configuration.
PE2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 7.7.7.55/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth2
Enter interface mode
(config-if)#ip address 60.1.1.55/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process id 10
(config-router)#network 7.7.7.55/32 area 0
Define the interface (7.7.7.55/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 60.1.1.0/24 area 0
Define the interface (60.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 1.1.1.54 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 1.1.1.54 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 5.5.5.56 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 5.5.5.56 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 5.5.5.56 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 1.1.1.54 activate
Activate the neighbor inside vpnv4 address family
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#address-family ipv4 unicast
Enter into ipv4 unicast address family
(config-router-af)#network 7.7.7.55/32
Advertise the loopback of RTR1 in BGP
(config-router-af)#exit-address-family
Exit from address family
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 7.7.7.55 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface eth2
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 62.1.1.55/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router-af)# redistribute connected
Redistribute connected routes
(config-router-af)# exit-address-family
Exit address-family mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
Validation
PE1
#show ip bgp neighbors 3.3.3.52
BGP neighbor is 3.3.3.52, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 1.1.1.54, remote router ID 3.3.3.52
BGP state = Established, up for 00:00:06
Last read 00:00:07, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new)
Received 4 messages, 1 notifications, 0 in queue
Sent 6 messages, 0 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 0, Offset 0, Mask 0x1
Community attribute sent to this neighbor (both)
0 accepted prefixes
1 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 1, neighbor version 1
Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
0 accepted prefixes
1 announced prefixes
 
Connections established 2; dropped 1
Local host: 1.1.1.54, Local port: 179
Foreign host: 3.3.3.52, Foreign port: 46745
Nexthop: 1.1.1.54
Nexthop global: 54::54 Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:00:11, due to BGP Notification received Notification Error Message: (Cease/Other Configuration Change.)
 
#show ip bgp neighbors 7.7.7.55
BGP neighbor is 7.7.7.55, remote AS 100, local AS 100, internal link
BGP version 4, local router ID 1.1.1.54, remote router ID 7.7.7.55
BGP state = Established, up for 00:01:10
Last read 00:00:11, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new)
Received 8 messages, 1 notifications, 0 in queue
Sent 9 messages, 2 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: VPNv4 Unicast
BGP table version 3, neighbor version 3 Index 0, Offset 0, Mask 0x1
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 3; dropped 2
Local host: 1.1.1.54, Local port: 179
 
Foreign host: 7.7.7.55, Foreign port: 58871
Nexthop: 1.1.1.54
Nexthop global: 54::54 Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:01:10, due to BGP Notification sent Notification Error Message: (Cease/Administratively Reset.)
 
 
#show mpls vrf-table
Output for IPv4 VRF table with id: 2
Primary FTN entry with FEC: 62.1.1.0/24, id: 1, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 12, in intf: - in label: 0 out-segment ix: 11 Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 11, owner: BGP, out intf: eth1, out label: 24961 Nexthop addr: 7.7.7.55 cross connect ix: 12, op code: Push and
Lookup
 
#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*> 1.1.1.54/32 0.0.0.0 24961 -
*>i 7.7.7.55/32 3.3.3.52 - 24961
#show mpls forwarding-table | include 7.7.7.55
B> 7.7.7.55/32 4 0 Yes LSP_DEFAULT 24961
eth1 3.3.3.52
 
#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM K - CLI ILM, T - MPLS-TP, S - Stitched ILM
 
Code FEC ILM-ID In-Label Out-Label In-Intf Out- Intf Nexthop LSP-Type
> 1.1.1.54/32 11 24961 N/A N/A N/A
127.0.0.1 LSP_DEFAULT
> 61.1.1.0/24 13 24963 N/A N/A eth2
0.0.0.0 LSP_DEFAULT
 
#show mpls ftn-table
Primary FTN entry with FEC: 2.2.2.23/32, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: eth1, out label: 3 Nexthop addr: 10.1.1.23 cross connect ix: 1, op code: Push
 
Primary FTN entry with FEC: 3.3.3.52/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth1, out label: 24320
 
Nexthop addr: 10.1.1.23 cross connect ix: 2, op code: Push
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 4, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 4, in intf: - in label: 0 out-segment ix: 3 Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: BGP, out intf: eth1, out label: 24961 Nexthop addr: 3.3.3.52 cross connect ix: 4, op code: Push and
Lookup
 
 
Primary FTN entry with FEC: 20.1.1.0/24, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: eth1, out label: 3 Nexthop addr: 10.1.1.23 cross connect ix: 1, op code: Push
 
P1
#show ip ospf neighbor
 
Total number of full neighbors: 2
OSPF process 10 VRF(default):
Neighbor ID Pri State Dead Time Address Interface Instance ID
1.1.1.54 1 Full/Backup 00:00:38 10.1.1.54 eth1 0
3.3.3.52 1 Full/DR 00:00:39 20.1.1.52 eth2 0
#show ldp session
Peer IP Address IF Name My Role State KeepAlive UpTime
1.1.1.54 eth1 Active OPERATIONAL 30 00:00:21
3.3.3.52 eth2 Passive OPERATIONAL 30 00:00:15
ABR1
#show ip bgp neighbors 1.1.1.54
BGP neighbor is 1.1.1.54, remote AS 100, local AS 100, internal link BGP version 4, local router ID 3.3.3.52, remote router ID 1.1.1.54 BGP state = Established, up for 00:00:09
Last read 00:00:05, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new) Address family IPv4 Unicast: advertised and received Address family IPv4 Labeled-Unicast: advertised and received
Received 5 messages, 0 notifications, 0 in queue
Sent 4 messages, 1 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 0, Offset 0, Mask 0x1
Community attribute sent to this neighbor (both)
1 accepted prefixes
 
0 announced prefixes
 
For address family: IPv4 Labeled-UnicastBGP table version 2, neighbor version 2 Index 0, Offset 0, Mask 0x1
Route-Reflector Client NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
0 announced prefixes
 
Connections established 2; dropped 1
Local host: 3.3.3.52, Local port: 46745
Foreign host: 1.1.1.54, Foreign port: 179
Nexthop: 3.3.3.52
Nexthop global: 52::52 Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:00:14, due to BGP Notification sent Notification Error Message: (Cease/Other Configuration Change.)
 
#show ip bgp neighbors 5.5.5.56
BGP neighbor is 5.5.5.56, remote AS 100, local AS 100, internal link BGP version 4, local router ID 3.3.3.52, remote router ID 5.5.5.56 BGP state = Established, up for 00:00:11
Last read 00:00:02, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new) Address family IPv4 Unicast: advertised and received Address family IPv4 Labeled-Unicast: advertised and received
Received 4 messages, 0 notifications, 0 in queue
Sent 6 messages, 2 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
For address family: IPv4 Labeled-UnicastBGP table version 3, neighbor version 2 Index 1, Offset 0, Mask 0x2
Route-Reflector Client NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 2; dropped 1
Local host: 3.3.3.52, Local port: 179
Foreign host: 5.5.5.56, Foreign port: 40440
Nexthop: 3.3.3.52
Nexthop global: 52::52 Nexthop local: ::
 
BGP connection: non shared network
Last Reset: 00:00:11, due to BGP Notification sent Notification Error Message: (Cease/Administratively Reset.)
 
#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.54/32 1.1.1.54 24960 24961
*>i 7.7.7.55/32 5.5.5.56 24961 24961
 
#show mpls forwarding-table | include 1.1.1.54
L> 1.1.1.54/32 1 0 Yes LSP_DEFAULT 24321 eth2 20.1.1.23
B 1.1.1.54/32 7 0 Yes LSP_DEFAULT 24961 eth2 1.1.1.54
 
#show mpls forwarding-table | include 7.7.7.55
B> 7.7.7.55/32 8 0 Yes LSP_DEFAULT 24961 eth1 5.5.5.56
 
#show mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth2, out label: 24321
Nexthop addr: 20.1.1.23 cross connect ix: 2, op code: Push
 
 
Primary FTN entry with FEC: 1.1.1.54/32, id: 7, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 11, in intf: - in label: 0 out-segment ix: 10
Owner: BGP, Persistent: No, Admin Status: Down, Oper Status: Down
Out-segment with ix: 10, owner: BGP, out intf: eth2, out label: 24961
Nexthop addr: 1.1.1.54 cross connect ix: 11, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 2.2.2.23/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 5, in intf: - in label: 0 out-segment ix: 4
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 4, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 20.1.1.23 cross connect ix: 5, op code: Push
 
 
Primary FTN entry with FEC: 4.4.4.53/32, id: 4, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 6
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 30.1.1.53 cross connect ix: 7, op code: Push
 
 
Primary FTN entry with FEC: 5.5.5.56/32, id: 5, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 10, in intf: - in label: 0 out-segment ix: 9
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 9, owner: LDP, out intf: eth1, out label: 24320
Nexthop addr: 30.1.1.53 cross connect ix: 10, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 8, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 12, in intf: - in label: 0 out-segment ix: 11
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 11, owner: BGP, out intf: eth1, out label: 24961
Nexthop addr: 5.5.5.56 cross connect ix: 12, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 10.1.1.0/24, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 5, in intf: - in label: 0 out-segment ix: 4
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 4, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 20.1.1.23 cross connect ix: 5, op code: Push
 
 
Primary FTN entry with FEC: 40.1.1.0/24, id: 6, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 6
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 30.1.1.53 cross connect ix: 7, op code: Push
P2
#show ip ospf neighbor
 
Total number of full neighbors: 2 OSPF process 20 VRF(default):
Neighbor ID Pri State Dead Time Address Interface Instance ID
3.3.3.52 1 Full/Backup 00:00:39 30.1.1.52 eth1
0
5.5.5.56 1 Full/DR 00:00:40 40.1.1.56 eth2
0
 
#show ldp session
Peer IP Address IF Name My Role State KeepAlive UpTime
3.3.3.52 eth1 Active OPERATIONAL 30 00:00:21
5.5.5.56 eth2 Passive OPERATIONAL 30 00:00:19
 
ABR2
#show ip bgp neighbors 3.3.3.52
 
BGP neighbor is 3.3.3.52, remote AS 100, local AS 100, internal link BGP version 4, local router ID 5.5.5.56, remote router ID 3.3.3.52 BGP state = Established, up for 00:00:12
Last read 00:00:07, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new) Address family IPv4 Unicast: advertised and received Address family IPv4 Labeled-Unicast: advertised and received
Received 5 messages, 1 notifications, 0 in queue
Sent 5 messages, 0 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 0, Offset 0, Mask 0x1
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
For address family: IPv4 Labeled-UnicastBGP table version 2, neighbor version 2 Index 0, Offset 0, Mask 0x1
Route-Reflector Client NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 2; dropped 1
Local host: 5.5.5.56, Local port: 40440
Foreign host: 3.3.3.52, Foreign port: 179
Nexthop: 5.5.5.56
Nexthop global: 56::56 Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:00:17, due to BGP Notification received Notification Error Message: (Cease/Other Configuration Change.)
 
#show ip bgp neighbors 7.7.7.55
BGP neighbor is 7.7.7.55, remote AS 100, local AS 100, internal link BGP version 4, local router ID 5.5.5.56, remote router ID 7.7.7.55 BGP state = Established, up for 00:00:13
Last read 00:00:08, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new) Address family IPv4 Unicast: advertised and received Address family IPv4 Labeled-Unicast: advertised and received
Received 3 messages, 0 notifications, 0 in queue
Sent 4 messages, 0 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
 
1 accepted prefixes
1 announced prefixes
 
For address family: IPv4 Labeled-UnicastBGP table version 2, neighbor version 2 Index 1, Offset 0, Mask 0x2
Route-Reflector Client NEXT_HOP is always this router
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 1; dropped 0
Local host: 5.5.5.56, Local port: 35004
Foreign host: 7.7.7.55, Foreign port: 179
Nexthop: 5.5.5.56
Nexthop global: 56::56 Nexthop local: ::
BGP connection: non shared network
 
#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.54/32 3.3.3.52 24960 24960
*>i 7.7.7.55/32 7.7.7.55 24961 24960
 
#show mpls forwarding-table | include 1.1.1.54
B> 1.1.1.54/32 7 0 Yes LSP_DEFAULT 24960 eth2 3.3.3.52
 
#show mpls forwarding-table | include 7.7.7.55
L> 7.7.7.55/32 5 0 Yes LSP_DEFAULT 24320 eth1 50.1.1.22
B 7.7.7.55/32 8 0 Yes LSP_DEFAULT 24960 eth1 7.7.7.55
 
#show mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 7, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 11, in intf: - in label: 0 out-segment ix: 10
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 10, owner: BGP, out intf: eth2, out label: 24960
Nexthop addr: 3.3.3.52 cross connect ix: 11, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 3.3.3.52/32, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 4, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: eth2, out label: 24321
Nexthop addr: 40.1.1.53 cross connect ix: 4, op code: Push
 
 
Primary FTN entry with FEC: 4.4.4.53/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 5, in intf: - in label: 0 out-segment ix: 4
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 4, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 40.1.1.53 cross connect ix: 5, op code: Push
 
 
Primary FTN entry with FEC: 6.6.6.22/32, id: 4, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 6
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 50.1.1.22 cross connect ix: 7, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 5, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 10, in intf: - in label: 0 out-segment ix: 9
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 9, owner: LDP, out intf: eth1, out label: 24320
Nexthop addr: 50.1.1.22 cross connect ix: 10, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 8, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 12, in intf: - in label: 0 out-segment ix: 11
Owner: BGP, Persistent: No, Admin Status: Down, Oper Status: Down
Out-segment with ix: 11, owner: BGP, out intf: eth1, out label: 24960
Nexthop addr: 7.7.7.55 cross connect ix: 12, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 30.1.1.0/24, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 5, in intf: - in label: 0 out-segment ix: 4
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 4, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 40.1.1.53 cross connect ix: 5, op code: Push
 
 
Primary FTN entry with FEC: 60.1.1.0/24, id: 6, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 6
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 50.1.1.22 cross connect ix: 7, op code: Push
P3
#show ip ospf neighbor
 
Total number of full neighbors: 2
OSPF process 30 VRF(default):
Neighbor ID Pri State Dead Time Address Interface Instance ID
5.5.5.56 1 Full/Backup 00:00:39 50.1.1.56 eth1 0
7.7.7.55 1 Full/DR 00:00:39 60.1.1.55 eth2 0
 
#show ldp session
Peer IP Address IF Name My Role State KeepAlive UpTime
5.5.5.56 eth1 Active OPERATIONAL 30 00:00:30
7.7.7.55 eth2 Passive OPERATIONAL 30 00:00:28
PE2
#show ip bgp neighbors 5.5.5.56
BGP neighbor is 5.5.5.56, remote AS 100, local AS 100, internal link BGP version 4, local router ID 7.7.7.55, remote router ID 5.5.5.56 BGP state = Established, up for 00:00:16
Last read 00:00:11, hold time is 90, keepalive interval is 30 seconds Neighbor capabilities:
Route refresh: advertised and received (old and new) Address family IPv4 Unicast: advertised and received Address family IPv4 Labeled-Unicast: advertised and received
Received 3 messages, 0 notifications, 0 in queue
Sent 4 messages, 0 notifications, 0 in queue Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds Update source is lo
For address family: IPv4 Unicast
BGP table version 1, neighbor version 1 Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
For address family: IPv4 Labeled-UnicastBGP table version 2, neighbor version 2 Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
1 accepted prefixes
1 announced prefixes
 
Connections established 1; dropped 0
Local host: 7.7.7.55, Local port: 179
Foreign host: 5.5.5.56, Foreign port: 35004
Nexthop: 7.7.7.55
Nexthop global: 55::55 Nexthop local: ::
BGP connection: non shared network
 
#show mpls vrf-table
Output for IPv4 VRF table with id: 2
Primary FTN entry with FEC: 61.1.1.0/24, id: 1, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 11, in intf: - in label: 0 out-segment ix: 10
 
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 10, owner: BGP, out intf: eth2, out label: 24963 Nexthop addr: 1.1.1.54 cross connect ix: 11, op code: Push and
Lookup
 
#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.54/32 5.5.5.56 - 24960
*> 7.7.7.55/32 0.0.0.0 24960 -
#show mpls forwarding-table | include 1.1.1.54
B> 1.1.1.54/32 4 0 Yes LSP_DEFAULT 24960
eth2 5.5.5.56
 
#show mpls ilm-table
Codes: > - installed ILM, * - selected ILM, p - stale ILM K - CLI ILM, T - MPLS-TP, S - Stitched ILM
 
Code FEC ILM-ID In-Label Out-Label In-Intf Out- Intf Nexthop LSP-Type
> 7.7.7.55/32 9 24960 N/A N/A N/A
127.0.0.1 LSP_DEFAULT
> 62.1.1.0/24 10 24961 N/A N/A eth1
0.0.0.0 LSP_DEFAULT
 
#show mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 4, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 4, in intf: - in label: 0 out-segment ix: 3 Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: BGP, out intf: eth2, out label: 24960 Nexthop addr: 5.5.5.56 cross connect ix: 4, op code: Push and
Lookup
 
Primary FTN entry with FEC: 5.5.5.56/32, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: eth2, out label: 24321 Nexthop addr: 60.1.1.22 cross connect ix: 1, op code: Push
 
Primary FTN entry with FEC: 6.6.6.22/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth2, out label: 3 Nexthop addr: 60.1.1.22 cross connect ix: 2, op code: Push
 
Primary FTN entry with FEC: 50.1.1.0/24, id: 3, row status: Active
 
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth2, out label: 3 Nexthop addr: 60.1.1.22 cross connect ix: 2, op code: Push
 
BGP Labeled Unicast with Inter-AS
Topology
BGP Labeled unicast with Inter-AS
Configurations
PE1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 1.1.1.54/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 10.1.1.54/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#router ospf 10
Configure the routing process OSPF with process id 10
(config-router)#network 1.1.1.54/32 area 0
Define the interface (1.1.1.54/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 10.1.1.0/24 area 0
Define the interface (10.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 7.7.7.55 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 7.7.7.55 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 3.3.3.52 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 3.3.3.52 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 3.3.3.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 7.7.7.55 activate
Activate the neighbor inside vpnv4 address family
(config-router-af)#network 1.1.1.54/32
Advertise the loopback of RTR1 in BGP
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 1.1.1.54 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface eth2
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 61.1.1.54/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router-af)# redistribute connected
Redistribute connected routes
(config-router-af)# exit-address-family
Exit address-family mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
P1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 2.2.2.23/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 10.1.1.23/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 20.1.1.23/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 10
Configure the routing process OSPF with process id 10
(config-router)#network 20.1.1.0/24 area 0
Define the interface (20.1.1.0/24)) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 10.1.1.0/24 area 0
Define the interface (10.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 2.2.2.23/32 area 0
Define the interface (2.2.2.23/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 2.2.2.23 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip route 7.7.7.55/32 20.1.1.52
Specify the destination prefix and mask for the network and a gateway.
(config)#commit
Commit the candidate configuration to the running configuration.
ABR1
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 3.3.3.52/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 52.56.1.52/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 20.1.1.52/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode.
(config)#router ospf 10
Configure the routing process OSPF with process id 20
(config-router)#network 3.3.3.52/32 area 0
Define the interface (3.3.3.52/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 20.1.1.0/24 area 0
Define the interface (20.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 3.3.3.52 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)#neighbor 1.1.1.54 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 1.1.1.54 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 52.56.1.56 remote-
as 100
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 1.1.1.54 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 52.56.1.56 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 1.1.1.54 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 1.1.1.54 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 52.56.1.56 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit from address family labeled-unicast
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
ABR2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 5.5.5.56/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 50.1.1.56/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 52.56.1.56/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process Id 1
(config-router)#network 5.5.5.56/32 area 0
Define the interface (5.5.5.56/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 50.1.1.0/24 area 0
Define the interface (50.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 5.5.5.56 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 200
Enter Router BGP mode
(config-router)#neighbor 52.56.1.52 remote-
as 100
Add neighbor peer ip and neighbor AS
(config-router)#neighbor 7.7.7.55 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 7.7.7.55 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 52.56.1.52 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#neighbor 7.7.7.55 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)# neighbor 7.7.7.55 route-reflector-client
Enable Route reflector client for the neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 52.56.1.52 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)# neighbor 7.7.7.55 next-hop-self
Enable next hop self for the particular neighbor inside address family IPv4 labeled unicast
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#exit
Exit from router BGP mode
(config)#commit
Commit the candidate configuration to the running configuration.
P2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 6.6.6.22/32
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth1
Enter interface mode
(config-if)#ip address 50.1.1.22/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#interface eth2
Enter interface mode
(config-if)#ip address 60.1.1.22/24
Configure the IP address of the interface eth2
(config-if)#label-switching
Enable label-switching on interface eth2
(config-if)# enable-ldp ipv4
Enable LDP process on eth2 interface
(config-if)#exit
Exit interface mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process id 20
(config-router)#network 50.1.1.0/24 area 0
Define the interface (30.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 60.1.1.0/24 area 0
Define the interface (40.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 6.6.6.22/32 area 0
Define the interface (4.4.4.53/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 6.6.6.22 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip route 1.1.1.54/32 50.1.1.56
Specify the destination prefix and mask for the network and a gateway.
(config)#exit
Exit from Cofig mode
(config)#commit
Commit the candidate configuration to the running configuration.
PE2
 
#configure terminal
Enter the Configure mode.
(config)#interface lo
Enter interface mode
(config-if)#ip address 7.7.7.55/32 secondary
Configure the IP address of the interface loopback
(config-if)#exit
Exit interface mode
(config)#interface eth2
Enter interface mode
(config-if)#ip address 60.1.1.55/24
Configure the IP address of the interface eth1
(config-if)#label-switching
Enable label-switching on interface eth1
(config-if)# enable-ldp ipv4
Enable LDP process on eth1 interface
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router ospf 30
Configure the routing process OSPF with process id 10
(config-router)#network 7.7.7.55/32 area 0
Define the interface (7.7.7.55/32) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#network 60.1.1.0/24 area 0
Define the interface (60.1.1.0/24) on which OSPF runs, and associate the area ID (0) with the interface (area ID 0 specifies the backbone area).
(config-router)#exit
Exit from router ospf mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 200
Enter Router BGP mode
(config-router)#neighbor 1.1.1.54 remote-
as 100
Add loopback ip of PE2 as neighbor with neighbor AS
(config-router)#neighbor 1.1.1.54 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#neighbor 1.1.1.54 ebgp-multihop
Enable neighbor connection between two eBGP
(config-router)#neighbor 5.5.5.56 remote-
as 200
Add loopback ip of ABR1 as neighbor with neighbor AS
(config-router)#neighbor 5.5.5.56 update-
source lo
Update the source for that particular neighbor as loopback interface
(config-router)#allocate-label all
Allocate labels
(config-router)#address-family ipv4 labeled- unicast
Enter into labeled-unicast address family
(config-router-af)#neighbor 5.5.5.56 activate
Activate the neighbor inside vpnv4 address family
(config-router-af)#exit-address-family
Exit from address family IPv4 labeled unicast
(config-router)#address-family vpnv4 unicast
Enter into vpnv4 unicast address family
(config-router-af)#neighbor 1.1.1.54 allow-ebgp-vpn
Allow eBGP neighbor to be a vpn peer.
(config-router-af)#neighbor 1.1.1.54 activate
Activate the neighbor inside labeled-unicast address family
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#address-family ipv4 unicast
Enter into ipv4 unicast address family
(config-router-af)#network 7.7.7.55/32
Advertise the loopback of RTR1 in BGP
(config-router-af)#exit-address-family
Exit from address family vpnv4
(config-router)#exit
Exit from router BGP mode
(config)# router ldp
Configure Router LDP instance
(config-router)# transport-address ipv4 7.7.7.55 0
Configure Transport address for LDP with label space value 0
(config-router)#exit
Exit from router mode
(config)# ip vrf vrf1
Specify the name of the VRF (vrf1) to be created.
(config-vrf)#rd 10:100
Assign a route distinguisher (RD) for the VRF, which is a unique value on the router. The RD value can be in ASN:NN or A.B.C.D:NN format.
(config-vrf)#route-target both 100:300
Specify the 2-Octet AS specific or IPv4 specific Transitive Route-Target extended community attribute.
(config-vrf)#exit
Exit VRF mode, and return to Configure mode.
(config)#interface eth2
Enter interface mode
(config-if)# ip vrf forwarding vrf1
Bind the interface (eth2) to the VRF vrf1
(config-if)# ip address 62.1.1.55/24
Configure the IP address of the interface eth2
(config-if)#exit
Exit interface mode.
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 100
Enter Router BGP mode
(config-router)# address-family ipv4 vrf vrf1
Enter address family ipv4 vrf mode
(config-router-af)# redistribute connected
Redistribute connected routes
(config-router-af)# exit-address-family
Exit address-family mode.
(config-router)#commit
Commit the candidate configuration to the running configuration.
Validation
PE1
#sh ip bgp labeled-unicast
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*> 1.1.1.54/32 0.0.0.0 24969 -
*>i 7.7.7.55/32 3.3.3.52 - 24322
 
 
#sh mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN, B - BGP FTN, K - CLI FTN, t - tunnel
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
10.1.1.23
10.1.1.23
3.3.3.52
10.1.1.23
 
#sh mpls ftn-table
Nexthop
Primary FTN entry with FEC: 2.2.2.23/32, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: eth1, out label: 3 Nexthop addr: 10.1.1.23 cross connect ix: 1, op code: Push
 
Primary FTN entry with FEC: 3.3.3.52/32, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth1, out label: 24321 Nexthop addr: 10.1.1.23 cross connect ix: 2, op code: Push
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 4, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 4, in intf: - in label: 0 out-segment ix: 3 Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: BGP, out intf: eth1, out label: 24322 Nexthop addr: 3.3.3.52 cross connect ix: 4, op code: Push and
Lookup
 
Primary FTN entry with FEC: 20.1.1.0/24, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 1, in intf: - in label: 0 out-segment ix: 1 Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 1, owner: LDP, out intf: eth1, out label: 3 Nexthop addr: 10.1.1.23 cross connect ix: 1, op code: Push
ABR1
#sh ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.54/32 1.1.1.54 24323 24969
*> 7.7.7.55/32 52.56.1.56 24322 24325
 
#sh mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
B - BGP FTN, K - CLI FTN, t - tunnel
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code FEC FTN-ID Tunnel-id Pri LSP-Type Out-Label Out-Intf Nexthop
L> 1.1.1.54/32 2 0 Yes LSP_DEFAULT 24322 eth2 20.1.1.23
B 1.1.1.54/32 5 0 Yes LSP_DEFAULT 24969 eth2 1.1.1.54
L> 2.2.2.23/32 3 0 Yes LSP_DEFAULT 3 eth2 20.1.1.23
B> 7.7.7.55/32 1 0 Yes LSP_DEFAULT 24325 eth1 52.56.1.56
L> 10.1.1.0/24 4 0 Yes LSP_DEFAULT 3 eth2 20.1.1.23
 
#sh mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth2, out label: 24322
Nexthop addr: 20.1.1.23 cross connect ix: 2, op code: Push
 
 
Primary FTN entry with FEC: 1.1.1.54/32, id: 5, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 8, in intf: - in label: 0 out-segment ix: 8
Owner: BGP, Persistent: No, Admin Status: Down, Oper Status: Down
Out-segment with ix: 8, owner: BGP, out intf: eth2, out label: 24969
Nexthop addr: 1.1.1.54 cross connect ix: 8, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 2.2.2.23/32, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 20.1.1.23 cross connect ix: 3, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 1, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 7
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 7, owner: BGP, out intf: eth1, out label: 24325
Nexthop addr: 52.56.1.56 cross connect ix: 7, op code: Push
 
 
Primary FTN entry with FEC: 10.1.1.0/24, id: 4, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 20.1.1.23 cross connect ix: 3, op code: Push
ABR2
#sh ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*> 1.1.1.54/32 52.56.1.52 24322 24323
*>i 7.7.7.55/32 7.7.7.55 24325 24967
 
#sh mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
B - BGP FTN, K - CLI FTN, t - tunnel
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code FEC FTN-ID Tunnel-id Pri LSP-Type Out-Label Out-Intf Nexthop
B> 1.1.1.54/32 1 0 Yes LSP_DEFAULT 24323 eth2 52.56.1.52
L> 6.6.6.22/32 2 0 Yes LSP_DEFAULT 3 eth1 50.1.1.22
L> 7.7.7.55/32 3 0 Yes LSP_DEFAULT 24322 eth1 50.1.1.22
B 7.7.7.55/32 5 0 Yes LSP_DEFAULT 24967 eth1 7.7.7.55
L> 60.1.1.0/24 4 0 Yes LSP_DEFAULT 3 eth1 50.1.1.22
 
#sh mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 1, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 8, in intf: - in label: 0 out-segment ix: 8
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 8, owner: BGP, out intf: eth2, out label: 24323
Nexthop addr: 52.56.1.52 cross connect ix: 8, op code: Push
 
 
Primary FTN entry with FEC: 6.6.6.22/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 50.1.1.22 cross connect ix: 2, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 3, in intf: - in label: 0 out-segment ix: 3
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 3, owner: LDP, out intf: eth1, out label: 24322
Nexthop addr: 50.1.1.22 cross connect ix: 3, op code: Push
 
 
Primary FTN entry with FEC: 7.7.7.55/32, id: 5, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 7
Owner: BGP, Persistent: No, Admin Status: Down, Oper Status: Down
Out-segment with ix: 7, owner: BGP, out intf: eth1, out label: 24967
Nexthop addr: 7.7.7.55 cross connect ix: 7, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 60.1.1.0/24, id: 4, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 2, in intf: - in label: 0 out-segment ix: 2
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 2, owner: LDP, out intf: eth1, out label: 3
Nexthop addr: 50.1.1.22 cross connect ix: 2, op code: Push
PE2
#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.54/32 5.5.5.56 - 24322
*> 7.7.7.55/32 0.0.0.0 24967 -
 
#show mpls forwarding-table
Codes: > - installed FTN, * - selected FTN, p - stale FTN,
B - BGP FTN, K - CLI FTN, t - tunnel
L - LDP FTN, R - RSVP-TE FTN, S - SNMP FTN, I - IGP-Shortcut,
U - unknown FTN, O - SR-OSPF FTN, i - SR-ISIS FTN, k - SR-CLI FTN
 
Code FEC FTN-ID Tunnel-id Pri LSP-Type Out-Label Out-Intf Nexthop
B> 1.1.1.54/32 4 0 Yes LSP_DEFAULT 24322 eth2 5.5.5.56
L> 5.5.5.56/32 3 0 Yes LSP_DEFAULT 24321 eth2 60.1.1.22
L> 6.6.6.22/32 2 0 Yes LSP_DEFAULT 3 eth2 60.1.1.22
L> 50.1.1.0/24 1 0 Yes LSP_DEFAULT 3 eth2 60.1.1.22
 
#sh mpls ftn-table
Primary FTN entry with FEC: 1.1.1.54/32, id: 4, row status: Active
Owner: BGP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 36, in intf: - in label: 0 out-segment ix: 37
Owner: BGP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 37, owner: BGP, out intf: eth2, out label: 24322
Nexthop addr: 5.5.5.56 cross connect ix: 36, op code: Push and Lookup
 
 
Primary FTN entry with FEC: 5.5.5.56/32, id: 3, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 7, in intf: - in label: 0 out-segment ix: 6
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 6, owner: LDP, out intf: eth2, out label: 24321
Nexthop addr: 60.1.1.22 cross connect ix: 7, op code: Push
 
 
Primary FTN entry with FEC: 6.6.6.22/32, id: 2, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 9, in intf: - in label: 0 out-segment ix: 8
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 8, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 60.1.1.22 cross connect ix: 9, op code: Push
 
 
Primary FTN entry with FEC: 50.1.1.0/24, id: 1, row status: Active
Owner: LDP, Action-type: Redirect to LSP, Exp-bits: 0x0, Incoming DSCP: none
Tunnel id: 0, Protected LSP id: 0, Description: N/A
Cross connect ix: 9, in intf: - in label: 0 out-segment ix: 8
Owner: LDP, Persistent: No, Admin Status: Up, Oper Status: Up
Out-segment with ix: 8, owner: LDP, out intf: eth2, out label: 3
Nexthop addr: 60.1.1.22 cross connect ix: 9, op code: Push
BGP Peer Groups for Address-Family IPv4 Labeled Unicast
Topology
BGP Peer-Groups with IPv4 Labeled-Unicast Members
R1
 
(config)# interface lo
Enter interface mode for Loopback
(config-if)#ip address 1.1.1.1/32 secondary
Configure ip address for Loopback interface
(config-if)#ip address 11.11.11.11/32 secondary
Configure ip address for Loopback interface
(config-if)#exit
Exit interface mode
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R1.
(config-router)#neighbor ABC peer-group
Create a peer group named ABC.
(config-router)#neighbor ABC remote-as 200
Assign options to the peer group named ABC.
(config-router)#neighbor 2.2.2.2 peer-group ABC
Define neighbor 2.2.2.2 (R2) as a peer group member.
(config-router)#neighbor 3.3.3.3 peer-group ABC
Define neighbor 3.3.3.3 (R3) as a peer group member.
(config-router)#address-family ipv4 labeled-unicast
Enter address-family ipv4 labeled-unicast mode
(config-router-af)#neighbor ABC activate
Activate the peer-group ABC for address-family ipv4 labeled-unicast
(config-router-af)#neighbor ABC route-reflector-client
Configure the peer-group ABC to be route-reflector-client
(config-router-af)# exit-address-family
Exit address-family ipv4 labeled-unicast mode
(config-router)#address-family ipv4 unicast
Enter address-family ipv4 unicast mode
(config-router-af)#network 1.1.1.1/32
Advertise the network 1.1.1.1/32
(config-router-af)#network 11.11.11.11/32
Advertise the network 11.11.11.11/32
(config-router-af)# exit-address-family
Exit address-family ipv4 unicast mode
(config-router)#allocate-label all
Allocate labels for all IPv4 prefixes advertised
(config-router)#exit
Exit router bgp mode
(config)#commit
Commit the candidate configuration to the running configuration.
R2
#configure terminal
Enter configure mode.
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R2.
(config-router)#neighbor 2.2.2.1 remote-as 200
Create a TCP connection with neighbor 2.2.2.1 of AS 200.
config-router)#allocate-label all
Allocate labels for all IPv4 prefixes advertised
(config-router)#address-family ipv4 labeled-unicast
Enter address-family ipv4 labeled-unicast mode
(config-router-af)#neighbor 2.2.2.1 activate
Activate the neighbor R1 for address-family ipv4 labeled-unicast
(config-router-af)# exit-address-family
Exit address-family ipv4 labeled-unicast mode
(config-router)# exit
Exit router bgp mode
(config)#commit
Commit the candidate configuration to the running configuration.
R3
#configure terminal
Enter configure mode.
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R3.
(config-router)#neighbor 3.3.3.1 remote-as 200
Create a TCP connection with neighbor 3.3.3.1 of AS 200.
config-router)#allocate-label all
Allocate labels for all IPv4 prefixes advertised
(config-router)#address-family ipv4 labeled-unicast
Enter address-family ipv4 labeled-unicast mode
(config-router-af)#neighbor 3.3.3.1 activate
Activate the neighbor R1 for address-family ipv4 labeled-unicast
(config-router-af)# exit-address-family
Exit address-family ipv4 labeled-unicast mode
(config-router)# exit
Exit router bgp mode
(config)#commit
Commit the candidate configuration to the running configuration.
Validation
R1
R1#show ip bgp labeled-unicast summary
BGP router identifier 10.12.65.126, local AS number 200
BGP table version is 1
1 BGP AS-PATH entries
0 BGP community entries
 
Neighbor V AS MsgRcv MsgSen TblVer InQ OutQ Up/Down State/PfxRcd
2.2.2.2 4 200 18 22 1 0 0 00:00:57 0
3.3.3.3 4 200 18 20 1 0 0 00:00:01 0
 
Total number of neighbors 2
 
Total number of Established sessions 2
R1#
 
 
R1#show bgp neighbors
BGP neighbor is 2.2.2.2, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.123
BGP state = Established, up for 00:01:05
Last read 00:00:14, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 16 messages, 2 notifications, 0 in queue
Sent 20 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 11, neighbor version 11
Index 0, Offset 0, Mask 0x1
ABC peer-group member
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 1, neighbor version 1
Index 2, Offset 0, Mask 0x4
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
Connections established 5; dropped 4
Local host: 2.2.2.1, Local port: 51667
Foreign host: 2.2.2.2, Foreign port: 179
Nexthop: 2.2.2.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:01:10, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
BGP neighbor is 3.3.3.3, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.121
BGP state = Established, up for 00:00:09
Last read 00:00:10, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 16 messages, 2 notifications, 0 in queue
Sent 20 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 11, neighbor version 11
Index 1, Offset 0, Mask 0x2
ABC peer-group member
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 1, neighbor version 1
Index 3, Offset 0, Mask 0x8
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
Connections established 5; dropped 4
Local host: 3.3.3.1, Local port: 41732
Foreign host: 3.3.3.3, Foreign port: 179
Nexthop: 3.3.3.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:00:19, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
R1#
R2
 
R2#show ip bgp
BGP table version is 3, local router ID is 10.12.65.123
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
l - labeled, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
 
Network Next Hop Metric LocPrf Weight Path
*>il 1.1.1.1/32 2.2.2.1 0 100 0 i
* i 2.2.2.1 0 100 0 i
*>il 11.11.11.11/32 2.2.2.1 0 100 0 i
* i 2.2.2.1 0 100 0 i
 
Total number of prefixes 2
R2#
 
 
 
 
R2#show ip bgp 1.1.1.1/32
BGP routing table entry for 1.1.1.1/32
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
2.2.2.1 from 2.2.2.1 (10.12.65.126)
Origin IGP, metric 0, localpref 100 valid, internal, best, source safi: 4
Last update: Tue Aug 25 10:01:05 2020
 
Local
2.2.2.1 from 2.2.2.1 (10.12.65.126)
Origin IGP, metric 0, localpref 100 valid, internal, source safi: 1
Last update: Tue Aug 25 10:01:05 2020
 
R2#
R2#show ip bgp 11.11.11.11/32
BGP routing table entry for 11.11.11.11/32
Paths: (2 available, best #1, table Default-IP-Routing-Table)
Not advertised to any peer
Local
2.2.2.1 from 2.2.2.1 (10.12.65.126)
Origin IGP, metric 0, localpref 100 valid, internal, best, source safi: 4
Last update: Tue Aug 25 10:01:05 2020
 
Local
2.2.2.1 from 2.2.2.1 (10.12.65.126)
Origin IGP, metric 0, localpref 100 valid, internal, source safi: 1
Last update: Tue Aug 25 10:01:05 2020
 
R2#
 
 
R2#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.1/32 2.2.2.1 - 24320
*>i 11.11.11.11/32 2.2.2.1 - 24321
R2#
 
R3
 
R3#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.1/32 3.3.3.1 - 24320
*>i 11.11.11.11/32 3.3.3.1 - 24321
R3#
 
Peer group members inherit the properties of Outbound Policies configured for Peer-group under Address-family ipv4 Labeled-Unicast
R1
 
#configure terminal
Enter configure mode.
(config)# ip access-list permit-1
Configure access-list to permit 1.1.1.1/32
(config-ip-acl)# permit any 1.1.1.1/32 any
Configure a permit statement in the acl to permit 1.1.1.1/32
(config-ip-acl)#exit
Exit ip access-list mode
(config)# route-map permit-only-1
Configure route-map
(config-route-map)# match ip address permit- 1
Configure a match statement in the route-map to match the access-list permit-1
(config-route-map)#exit
Exit route-map mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 200
Define the routing process. The number 200 specifies the AS number of R1.
(config-router)#no allocate-label all
Unconfiguring allocate label all
config-router)# allocate-label route-map permit-only-1
Allocate labels to the route map
(config-router)#address-family ipv4 labeled- unicast
Enter address-family ipv4 labeled-unicast mode
(config-router-af)# neighbor ABC route-map permit-only-1 out
Configure the peer-group ABC with route-map in the outbound direction
(config-router-af)#exit
Exit address-family mode
(config-router)#exit
Exit router bgp mode
(config# exit
Exit configure terminal mode
(config)#commit
Commit the candidate configuration to the running configuration.
#clear ip bgp peer-group ABC ipv4 labeled- unicast soft out
Do outbound soft reset for the peer-group ABC for the policy to take affect for the labelled-unicast peer-group members
Validation
R1
R1#show bgp neighbors
BGP neighbor is 2.2.2.2, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.123
BGP state = Established, up for 00:14:24
Last read 00:00:22, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 46 messages, 2 notifications, 0 in queue
Sent 53 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 11, neighbor version 11
Index 0, Offset 0, Mask 0x1
ABC peer-group member
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 1, neighbor version 1
Index 2, Offset 0, Mask 0x4
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
Outbound path policy configured
Route map for outgoing advertisements is *permit-only-1
0 accepted prefixes
1 announced prefixes
 
Connections established 5; dropped 4
Local host: 2.2.2.1, Local port: 51667
Foreign host: 2.2.2.2, Foreign port: 179
Nexthop: 2.2.2.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:14:29, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
BGP neighbor is 3.3.3.3, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.121
BGP state = Established, up for 00:13:28
Last read 00:00:21, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 47 messages, 2 notifications, 0 in queue
Sent 53 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 11, neighbor version 11
Index 1, Offset 0, Mask 0x2
ABC peer-group member
Community attribute sent to this neighbor (both)
0 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 1, neighbor version 1
Index 3, Offset 0, Mask 0x8
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
Outbound path policy configured
Route map for outgoing advertisements is *permit-only-1
0 accepted prefixes
1 announced prefixes
 
Connections established 5; dropped 4
Local host: 3.3.3.1, Local port: 41732
Foreign host: 3.3.3.3, Foreign port: 179
Nexthop: 3.3.3.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:13:38, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
R1#
R2
R2#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.1/32 2.2.2.1 - 24320
R2#
R3
R3#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*>i 1.1.1.1/32 3.3.3.1 - 24320
R3#
 
Peer-group-members inherit the properties of Inbound Policies configured for Peer-group under Address-family ipv4 Labeled-Unicast
Follow the configuration of R1,R2,R3 in the previous section with the following configuration
R2
 
#configure terminal
Enter configure mode.
(config)# interface lo
Enter interface mode for Loopback interface
(config-if)#ip address 100.1.1.1/24 secondary
Configure IP address for Loopback interaface
(config-if)#interface eth3
Enter interface mode for interface eth3
(config-if)#ip address 22.1.1.1/24
Configure IP address for interface eth3
(config-if)#exit
Exit interface mode
(config)#router bgp 200
Enter router bgp mode
(config-router)#address-family ipv4 unicast
Enter address-family ipv4 unicast mode
(config-router-af)#network 22.1.1.0/24
Advertise the network of eth3 in BGP
(config-router-af)#network 100.1.1.0/24
Advertise the network of Loopback in BGP
(config-router-af)#exit-address-family
Exit address-family mode
(config-router)#allocate-label all
Allocate labels for all IPv4 prefixes advertised
(config-router)#exit
Exit router bgp mode
(config)#commit
Commit the candidate configuration to the running configuration.
R3
 
#configure terminal
Enter configure mode.
(config)# interface lo
Enter interface mode for Loopback interface
(config-if)#ip address 100.1.1.2/24 secondary
Configure IP address for Loopback interaface
(config-if)#interface eth3
Enter interface mode for interface eth3
(config-if)#ip address 22.1.1.2/24
Configure IP address for interface eth3
(config-if)#exit
Exit interface mode
(config)#router bgp 200
Enter router bgp mode
(config-router)#address-family ipv4 unicast
Enter address-family ipv4 unicast mode
(config-router-af)#network 22.1.1.0/24
Advertise the network of eth3 in BGP
(config-router-af)#network 100.1.1.0/24
Advertise the network of Loopback in BGP
(config-router-af)#exit-address-family
Exit address-family mode
(config-router)#allocate-label all
Allocate labels for all IPv4 prefixes advertised
(config-router)#exit
Exit router bgp mode
(config)#commit
Commit the candidate configuration to the running configuration.
R1
 
#configure terminal
Enter configure mode.
(config)#ip access-list permit-22
Configure access-list to permit 22.1.1.0/24
(config-ip-acl)# permit any 22.1.1.0/24 any
Configure a permit statement to permit 22.1.1.0/24
(config-ip-acl)#exit
Exit ip access-list mode
(config)#route-map permit-only-22
Configure route-map
(config-route-map)#match ip address permit- 22
Configure match statement in route-map to match the access- list permit-22
(config-route-map)#exit
Exit route-map mode
(config)#commit
Commit the candidate configuration to the running configuration.
(config)#router bgp 200
Enter BGP router mode
(config-router)#address-family ipv4 labeled- unicast
Enter the address-family ipv4 labeled-unicast mode
(config-router-af)#neighbor ABC route-map permit-only-22 in
Configure the peer-group ABC with route-map in the inbound direction under address-family ipv4 labeled-unicast
(config-router-af)# neighbor ABC activate
Activate PEER-GROUP in the address family
(config-router-af)#exit-address-family
Exit address-family ipv4 labeled-unicast mode
(config-router)#exit
Exit router bgp mode
(config)# exit
Exit configure terminal mode
(config)#commit
Commit the candidate configuration to the running configuration.
#clear ip bgp peer-group ABC ipv4 labeled- unicast soft in
Do inbound soft reset for the peer-group ABC for the policy to take affect for the labelled-unicast peer-group members
Validation
R1
R1#show ip bgp labeled-unicast
 
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, S - stale
Network Next Hop In Label Out Label
*> 1.1.1.1/32 0.0.0.0 24320 -
*> 11.11.11.11/32 0.0.0.0 24321 -
*>i 22.1.1.0/24 3.3.3.3 24322 24320
* i 2.2.2.2 - 24320
*>i 100.1.1.0/24 3.3.3.3 24323 -
R1#
 
 
R1#show bgp neighbors
BGP neighbor is 2.2.2.2, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.123
BGP state = Established, up for 00:45:38
Last read 00:00:03, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 123 messages, 2 notifications, 0 in queue
Sent 126 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 14, neighbor version 14
Index 0, Offset 0, Mask 0x1
ABC peer-group member
Community attribute sent to this neighbor (both)
2 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 3, neighbor version 3
Index 2, Offset 0, Mask 0x4
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is *permit-only-22
Route map for outgoing advertisements is *permit-only-1
1 accepted prefixes
1 announced prefixes
 
Connections established 5; dropped 4
Local host: 2.2.2.1, Local port: 51667
Foreign host: 2.2.2.2, Foreign port: 179
Nexthop: 2.2.2.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:45:43, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
BGP neighbor is 3.3.3.3, remote AS 200, local AS 200, internal link
Member of peer-group ABC for session parameters
BGP version 4, local router ID 10.12.65.126, remote router ID 10.12.65.121
BGP state = Established, up for 00:44:42
Last read 00:00:22, hold time is 90, keepalive interval is 30 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Address family IPv4 Labeled-Unicast: advertised and received
Received 124 messages, 2 notifications, 0 in queue
Sent 127 messages, 2 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 5 seconds
For address family: IPv4 Unicast
BGP table version 14, neighbor version 14
Index 1, Offset 0, Mask 0x2
ABC peer-group member
Community attribute sent to this neighbor (both)
2 accepted prefixes
2 announced prefixes
 
For address family: IPv4 Labeled-Unicast
BGP table version 3, neighbor version 3
Index 3, Offset 0, Mask 0x8
ABC peer-group member
Route-Reflector Client
Community attribute sent to this neighbor (both)
Inbound path policy configured
Outbound path policy configured
Route map for incoming advertisements is *permit-only-22
Route map for outgoing advertisements is *permit-only-1
1 accepted prefixes
1 announced prefixes
 
Connections established 5; dropped 4
Local host: 3.3.3.1, Local port: 41732
Foreign host: 3.3.3.3, Foreign port: 179
Nexthop: 3.3.3.1
Nexthop global: ::
Nexthop local: ::
BGP connection: non shared network
Last Reset: 00:44:52, due to BGP Notification received
Notification Error Message: (Cease/Other Configuration Change.)
 
R1#