peer egress-engineering

Function

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.

Format

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

Parameters

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.

-

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

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.

  • A peer-node SID identifies a node on which a peer is configured.
  • A peer-Adj SID identifies an adjacency to a peer.

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.

Example

# Configure a device to search its routing table when detecting an interface down event during traffic forwarding based on BGP-EPE label.
<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
# Associate BGP-EPE labels with SBFD packets.
<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
# Enable BGP EPE.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >