The peer advertise route-reoriginated command configures a device to send the routes that are regenerated in the EVPN or VPNv4/v6 address family to a BGP EVPN peer group.
The undo peer advertise route-reoriginated command restores the default configuration.
By default, a device does not send the routes that are regenerated in the EVPN or VPNv4/v6 address family to a BGP EVPN peer group.
peer peerGroupName advertise route-reoriginated { evpn { mac-ip | mac } | vpnv4 }
peer peerGroupName advertise route-reoriginated evpn ip
peer peerGroupName advertise route-reoriginated { evpn { mac-ipv6 | ipv6 } | vpnv6 }
undo peer peerGroupName advertise route-reoriginated { evpn { mac-ip | mac } | vpnv4 }
undo peer peerGroupName advertise route-reoriginated evpn ip
undo peer peerGroupName advertise route-reoriginated { evpn { mac-ipv6 | ipv6 } | vpnv6 }
Parameter | Description | Value |
---|---|---|
peerGroupName |
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. |
evpn |
Re-encapsulates received EVPN routes. |
- |
mac-ip |
Re-encapsulates the IRB or ARP routes in received EVPN routes. |
- |
mac |
Re-encapsulates MAC routes in received EVPN routes. |
- |
vpnv4 |
Re-encapsulates received VPNv4 routes. |
- |
ip |
Re-encapsulates received prefix routes. |
- |
mac-ipv6 |
Re-encapsulates the IRBv6 or ND routes in received EVPN routes. |
- |
ipv6 |
Re-encapsulates received IPv6 prefix routes. |
- |
vpnv6 |
Re-encapsulates received VPNv6 routes. |
- |
Usage Scenario
Data Center Interconnection (DCI) provides solutions used to interconnect data centers. In DCI solutions, each DCI-PE re-encapsulates received EVPN or VPNv4/v6 routes before sending them to its peers.
Prerequisites
Route information exchange has been enabled between the local device and a specified peer group using the peer enable command.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] peer 1.1.1.1 as-number 100 [*HUAWEI-bgp] group gp1 [*HUAWEI-bgp] l2vpn-family evpn [*HUAWEI-bgp-af-evpn] peer gp1 enable [*HUAWEI-bgp-af-evpn] peer 1.1.1.1 group gp1 [*HUAWEI-bgp-af-evpn] peer gp1 advertise route-reoriginated evpn mac-ip