< Home

peer import reoriginate

Function

The peer import reoriginate command enables a device to add a regeneration flag to the routes received from BGP EVPN peers.

The undo peer import reoriginate command restores the default configuration.

By default, a device does not add a regeneration flag to the routes received from BGP EVPN peers.

Format

peer { ipv4-address | group-name } import reoriginate

undo peer { ipv4-address | group-name } import reoriginate

Parameters

Parameter Description Value
ipv4-address Specifies the IPv4 address of a BGP EVPN peer. The value is in dotted decimal notation.
group-name Specifies the name of a BGP EVPN peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

BGP-EVPN address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In a three-segment VXLAN scenario, by default, an edge node that connects to a carrier network does not re-encapsulate the routes received from BGP EVPN peers, causing the EVPN routes to be terminated on the edge node. As a result, the EVPN routes from one DC cannot be advertised to the BGP EVPN peers of another DC. To address this problem, run the peer import reoriginate command to enable the edge node to add a regeneration flag to the routes received from BGP EVPN peers. The edge node then re-encapsulates the EVPN routes received from one DC before sending them to another DC for inter-DC VM communication.

Prerequisites

A device has been enabled to exchange routes with a specified peer or peer group using the peer { group-name | ipv4-address } enable command.

Example

# Enable a device to add a regeneration flag to the routes received from BGP EVPN peers.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] peer 1.1.1.1 as-number 100
[HUAWEI-bgp] l2vpn-family evpn
[HUAWEI-bgp-af-evpn] peer 1.1.1.1 enable
[HUAWEI-bgp-af-evpn] peer 1.1.1.1 import reoriginate
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >