OcNOS-SP : Layer 3 Guide : Border Gateway Protocol Command Reference : BGP Labeled Unicast Commands
BGP Labeled Unicast Commands
This chapter describes the BGP labeled unicast commands.
address-family labeled-unicast
Use the address family command to enter the IPv4 or VPNv4 address family mode allowing configuration of address-family specific parameters. To leave address family mode and return to configure mode, give the exit-address-family command.
This command configures the routing exchange between Provider Edge (PE) and Customer Edge (CE) devices. The BGP sessions between PE routers can carry different types of routes (VPN-IPv4 and IPv4 routes). Address families are used to control the type of BGP session.
Use the no parameter with this command to disable the address-family configurations.
As in OcNOS, IPv4 Unicast and IPv4 Labeled-Unicast share the same BGP RIB [AFI=1][SAFI=1].
Paths learned from IPv4 unicast capable peer and routes learned from IPv4 labeled-unicast capable peer both the paths will be imported to IPv4 Unicast RIB. For a BGP route A.B.C.D, paths learned via IPv4 Labeled-Unicast are preferred over paths learned via IPv4 Unicast.
When max-paths ECMP is enabled for IPv4 Unicast address-family routes:
For a BGP route having the paths learned via IPv4 Labeled-Unicast and also via IPv4 Unicast OcNOS will not select these paths as multipath candidates as load-balancing the traffic to ip path and mpls path is not achievable in OcNOS and paths from LU are preferred and are marked best path.
Command Syntax
address-family ipv4 labeled-unicast
address-family ipv6 labeled-unicast
Parameters
ipv4
IPv4 address family
labeled-unicast
 
Enter IPv4 labeled-unicast address-family mode to advertise labeled unicast routes. When a neighbor activate command is given in this mode, the BGP speaker advertises the BGP-LU capability.
ipv6
IPv6 address family
labeled-unicast
 
Enter IPv6 labeled-unicast address-family mode to:
Activate an IPv4 neighbor to exchange labeled routes data among ISP PE devices. When a IPv4 neighbor activate command is given in this mode, the device becomes 6PE capable.
OR:
Activate an IPv6 neighbor to advertise labeled unicast routes. When a IPv6 neighbor activate command is given in this mode, the BGP speaker advertises the BGP-LU capability.
Default
Not applicable
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS version 3.0.
Example
(config)#router bgp 100
(config-router)#address-family ipv4 labeled unicast
(config-router-af)#neighbor 172.4.5.52 activate
(config-router-af)#exit-address-family
allocate-label
Use this command to allocate MPLS labels to all/route-map permitted IPv4 prefixes present in the BGP RIB. This command enables the label allocation to IPv4 prefixes, where labeled unicast (LU) routes can be exchanged with IPv4 Peers having BGP labeled-unicast capability. This command allocates labels for all IPv4 unicast prefixes (afi:1, safi:1) and IPv4 labeled-unicast prefixes (afi:1, safi:4).
Once configured, BGP will allocate labels to IPv4 unicast prefixes after the expiry of current BGP RIB scan time (default: 60 seconds).
Use the no form of this command to release the labels and disable BGP from allocating label to IPv4 prefixes.
Command Syntax
allocate-label (all|route-map WORD)
no allocate-label (all|route-map)
Parameters
all
All the advertised routes
route-map
Only those routes that match route-map
WORD
Route-map name
Default
Not applicable
Command Mode
Router mode
Applicability
This command was introduced before OcNOS version 1.3 and updated in OcNOS version 3.0.
Example
To allocate an MPLS label to IPv4 unicast prefix 1.1.1.1/32
(config)#router bgp 100
(config-router)#neighbor 11.0.0.2 remote-as 100
(config-router)#allocate-label all
(config-router)#address-family ipv4 unicast
(config-router-af)#network 1.1.1.1/32
(config-router-af)#exit-address-family
(config-router)#address-family ipv4 labeled-unicast
(config-router-af)#network 11.0.0.2 activate
(config-router-af)#exit-address-family
 
(config-router)#no allocate-label all
(config-router)#allocate-label route-map bgp
(config-router)#no allocate-label route-map
(config-router)#
 
clear ip bgp A.B.C.D ipv4 labeled-unicast
Use this command to soft reset an IPv4 Labeled-unicast BGP neighbor.
Command Syntax
clear ip bgp A.B.C.D ipv4 labeled-unicast soft
clear ip bgp A.B.C.D ipv4 labeled-unicast soft in
clear ip bgp A.B.C.D ipv4 labeled-unicast soft out
Parameters
A.B.C.D
BGP neighbor address
soft
Soft clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
#clear ip bgp A.B.C.D ipv4 labeled-unicast soft in
 
clear ip bgp peer-group WORD ipv4 labeled-unicast
Use this command to soft reset an peer-group of ipv4 labeled-unicast peer members.
Command Syntax
clear ip bgp peer-group WORD ipv4 labeled-unicast soft
clear ip bgp peer-group WORD ipv4 labeled-unicast soft in
clear ip bgp peer-group WORD ipv4 labeled-unicast soft out
Parameters
WORD
Peer-group name
soft
Soft clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
#clear ip bgp peer-group LU_GROUP ipv4 labeled-unicast soft in
 
 
 
clear ip bgp * ipv4 labeled-unicast
Use this command to soft reset all IPv4 Labeled-unicast BGP neighbors.
Command Syntax
clear ip bgp * ipv4 labeled-unicast soft
clear ip bgp * ipv4 labeled-unicast soft in
clear ip bgp * ipv4 labeled-unicast soft out
Parameters
soft
Soft clear both incoming and outgoing routes
in
Soft reconfig inbound update
out
Soft reconfig outbound update
Command Mode
Privileged Exec mode
Applicability
This command was introduced in OcNOS version 3.0.
Examples
#clear ip bgp * ipv4 labeled-unicast soft in