The unicast-route label advertise command enables a device to convert received IPv4 public network unicast routes to labeled routes by allocating one BGP label to each route and advertise the labeled routes to peers with the labeled route exchange capability.
The undo unicast-route label advertise command restores the default configuration.
By default, a device does not convert received IPv4 public network unicast routes to labeled routes.
Usage Scenario
Received IPv4 public network unicast routes are advertised as labeled routes only when the following conditions are met:
<HUAWEI> system-view [~HUAWEI] route-policy policy1 permit node 10 [*HUAWEI-route-policy] apply mpls-label [*HUAWEI-route-policy] quit [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] peer 10.1.1.1 label-route-capability check-tunnel-reachable [*HUAWEI-bgp] peer 10.1.1.1 route-policy policy1 export [*HUAWEI-bgp] unicast-route label advertise
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] unicast-route label advertise pop-go [*HUAWEI-bgp] ipv4-family unicast [*HUAWEI-bgp-af-ipv4] unicast-route label advertise pop-go