Refer to the exhibit. An engineer is configuring Segment Routing for BGP (BGP-SR) on a PE router to assign labels to prefixes learned from a CE. The route-policy SET-LABEL is applied to the neighbor under the address-family ipv4 unicast. However, the CE prefix 10.1.1.0/24 is not receiving the label. What is the most likely reason?
Exhibit
Refer to the exhibit.
router bgp 65000
neighbor 10.0.0.1 remote-as 65001
neighbor 10.0.0.1 update-source Loopback0
!
address-family vpnv4
neighbor 10.0.0.1 activate
neighbor 10.0.0.1 send-community extended
exit-address-family
!
route-policy SET-LABEL
if destination in (10.1.1.0/24) then
set label-index 100
endif
end-policyTrap 1: The route-policy syntax is incorrect; 'destination' should be 'ip…
The 'destination' condition in route-policy is valid and can match a prefix directly.
Trap 2: The update-source should be the interface facing the CE, not…
The update-source Loopback0 is appropriate for BGP sessions between PEs, but for a CE-facing session, the direct interface should be used; however, this would not prevent label assignment, only session establishment.
Trap 3: The 'set label-index' command should be 'set label' for BGP-SR.
In BGP-SR, 'set label-index' is the correct command to assign a label index for a prefix-SID.
- A
The route-policy syntax is incorrect; 'destination' should be 'ip prefix-list'.
Why wrong: The 'destination' condition in route-policy is valid and can match a prefix directly.
- B
The update-source should be the interface facing the CE, not Loopback0.
Why wrong: The update-source Loopback0 is appropriate for BGP sessions between PEs, but for a CE-facing session, the direct interface should be used; however, this would not prevent label assignment, only session establishment.
- C
The neighbor is missing 'send-community extended' under address-family ipv4 unicast.
BGP-SR uses the prefix-SID attribute carried in extended communities; without this, labels are not advertised.
- D
The 'set label-index' command should be 'set label' for BGP-SR.
Why wrong: In BGP-SR, 'set label-index' is the correct command to assign a label index for a prefix-SID.