The peer egress-engineering command enables BGP egress peer engineering (EPE).
The undo peer egress-engineering command disables BGP EPE.
By default, the function is disabled.
peer ipv4-address egress-engineering
peer ipv4-address egress-engineering label static-label
peer ipv4-address egress-engineering link-down relate-bfd-state
peer ipv4-address egress-engineering link-down label-pop
undo peer ipv4-address egress-engineering
undo peer ipv4-address egress-engineering label static-label
undo peer ipv4-address egress-engineering link-down relate-bfd-state
undo peer ipv4-address egress-engineering link-down label-pop
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies a BGP peer IP address. |
The value is in dotted decimal notation. |
label static-label |
Specifies the static label value. |
The value is an integer in the range of 16 to 32783. |
link-down |
BGP EPE Link Down. |
- |
relate-bfd-state |
BGP EPE Label Care BFD State. |
- |
label-pop |
The BGP EPE Label Pop when The Link is Down. |
- |
Usage Scenario
The Border Gateway Protocol (BGP) is a dynamic routing protocol used between autonomous systems (ASs). BGP EPE is a BGP extension to segment routing and is used to implement source routing between ASs.
BGP EPE allocates BGP peer SIDs to inter-AS paths. BGP-LS advertises the BGP peer SIDs to the network controller. The controller properly orchestrates IGP SIDs and BGP peer SIDs to implement inter-AS optimal path forwarding. After the peer egress-engineering command is run, a local device can assign peer node segment (peer-node SID) and peer adjacency segment (peer-Adj SID) values.Precautions
BGP EPE can take effect only after BGP-LS is enabled using the link-state-family unicast command and segment routing is enabled using the segment-routing command.
<HUAWEI> system-view [~HUAWEI] segment-routing [*HUAWEI-segment-routing] commit [~HUAWEI-segment-routing] quit [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering label 32 [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering link-down label-pop
<HUAWEI> system-view [~HUAWEI] segment-routing [*HUAWEI-segment-routing] commit [~HUAWEI-segment-routing] quit [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering link-down relate-bfd-state
<HUAWEI> system-view [~HUAWEI] segment-routing [*HUAWEI-segment-routing] commit [~HUAWEI-segment-routing] quit [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 10.1.1.1 as-number 200 [*HUAWEI-bgp] peer 10.1.1.1 egress-engineering