10-EVPN Command Reference

HomeSupportSwitchesS12500R SeriesReference GuidesCommand ReferencesH3C S12500R Switch Router Series Command References(R51xx)-6W10110-EVPN Command Reference
02-EVPN-DCI commands
Title Size Download
02-EVPN-DCI commands 55.35 KB

EVPN-DCI commands

advertise evpn route

Use advertise evpn route to enable BGP EVPN route advertisement for the BGP VPNv4 address family.

Use undo advertise evpn route to disable BGP EVPN route advertisement for the BGP VPNv4 address family.

Syntax

advertise evpn route [ replace-rt ][ advertise-policy policy-name ]

undo advertise evpn route

Default

BGP EVPN routes are not advertised through the BGP VPNv4 address family.

Views

BGP VPNv4 address family

Predefined user roles

network-admin

Parameters

replace-rt: Replaces the route targets of BGP EVPN routes with the route targets of BGP VPNv4 routes. If you do not specify this keyword, route targets of BGP EVPN routes are not modified.

advertise-policy policy-name: Specifies a routing policy to filter the BGP EVPN routes to be advertised to BGP VPNv4 peers. The policy-name argument specifies the routing policy name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, all BGP EVPN routes are advertised to BGP VPNv4 peers.

Usage guidelines

To enable communication between data centers interconnected through an MPLS L3VPN network, you must configure the BGP EVPN address family and the BGP VPNv4 address family to exchange routes on EDs.

After you execute this command, the device advertises IP prefix advertisement routes and MAC/IP advertisement routes that contain host route information through the BGP VPNv4 address family.

Examples

# Enable BGP EVPN route advertisement for the BGP VPNv4 address family.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family vpnv4

[Sysname-bgp-default-vpnv4] advertise evpn route

advertise l3vpn route

Use advertise l3vpn route to enable BGP VPNv4 route advertisement for the BGP EVPN address family.

Use undo advertise l3vpn route to disable BGP VPNv4 route advertisement for the BGP EVPN address family.

Syntax

advertise l3vpn route [ replace-rt ][ advertise-policy policy-name ]

undo advertise l3vpn route

Default

BGP VPNv4 routes are not advertised through the BGP EVPN address family.

Views

BGP EVPN address family view

Predefined user roles

network-admin

Parameters

replace-rt: Replaces the route targets of BGP VPNv4 routes with the route targets of BGP EVPN routes. If you do not specify this keyword, route targets of BGP VPNv4 routes are not modified.

advertise-policy policy-name: Specifies a routing policy to filter the BGP VPNv4 routes to be advertised to BGP EVPN peers. The policy-name argument specifies the routing policy name, a case-sensitive string of 1 to 63 characters. If you do not specify this option, all BGP VPNv4 routes are advertised to BGP EVPN peers.

Usage guidelines

To enable communication between data centers interconnected through an MPLS L3VPN network, you must configure the BGP EVPN address family and the BGP VPNv4 address family to exchange routes on EDs.

After you execute this command, the device advertises BGP VPNv4 routes as IP prefix advertisement routes through the BGP EVPN address family.

Examples

# Enable BGP VPNv4 route advertisement for the BGP EVPN address family.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family l2vpn evpn

[Sysname-bgp-default-evpn] advertise l3vpn route

dci enable

Use dci enable to enable DCI on an interface.

Use undo dci enable to disable DCI on an interface.

Syntax

dci enable

undo dci enable

Default

DCI is disabled on an interface.

Views

Interface view

Predefined user roles

network-admin

Usage guidelines

For EDs to automatically establish VXLAN-DCI tunnels, you must enable DCI on the Layer 3 interfaces that interconnect the EDs.

Subinterfaces of a DCI-enabled interface inherit configuration of the interface.

Examples

# Enable DCI on HundredGigE 1/0/1.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] dci enable

mapping vni

Use mapping vni to map a local VXLAN to a remote VXLAN.

Use undo mapping vni to restore the default.

Syntax

mapping vni vxlan-id

undo mapping vni

Default

A local VXLAN is not mapped to any remote VXLAN.

Views

EVPN instance view

Predefined user roles

network-admin

Parameters

vxlan-id: Specifies a remote VXLAN ID in the range of 0 to 16777215.

Usage guidelines

The VXLAN mapping feature provides Layer 2 connectivity for a tenant subnet that uses different VXLAN IDs in multiple data centers.

VXLAN mapping includes the following types:

·     Non-intermediate VXLAN mapping—When two data centers use different VXLAN IDs for a subnet, map the local VXLAN to the remote VXLAN on the ED of one data center. For example, for VXLAN 10 of data center 1 to communicate with VXLAN 20 of data center 2, map VXLAN 10 to VXLAN 20 on the ED of data center 1.

·     Intermediate VXLAN mapping—When multiple data centers use different VXLAN IDs for a subnet, map the VXLANs to an intermediate VXLAN on all EDs. For example, data center 1 uses VXLAN 10, data center 2 uses VXLAN 20, and data center 3 uses VXLAN 30. To provide connectivity for the VXLANs, map them to intermediate VXLAN 500 on EDs of the data centers. You must use intermediate VXLAN mapping if more than two data centers use different VXLAN IDs. The intermediate VXLAN can be used only for VXLAN mapping, and it cannot be used for common VXLAN services.

You must create mapped remote VXLANs on the device, create an EVPN instance for each remote VXLAN, and configure RD and route target settings for the EVPN instances.

The mapped remote VXLAN ID cannot be any L3 VXLAN ID specified by using the l3-vni command or the reserved VXLAN ID specified by using the reserved vxlan command.

Examples

# Map local VXLAN 100 to remote VXLAN 200.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] vxlan 100

[Sysname-vsi-aaa-vxlan-100] quit

[Sysname-vsi-aaa] evpn encapsulation vxlan

[Sysname-vsi-aaa-evpn-vxlan] mapping vni 200

Related commands

reserved vxlan (VXLAN Command Reference)

peer router-mac-local

Use peer router-mac-local to enable route router MAC replacement for a peer or peer group.

Use undo peer router-mac-local to cancel route router MAC replacement configuration for a peer or peer group.

Syntax

peer { group-name | ipv4-address [ mask-length ] } router-mac-local

undo peer { group-name | ipv4-address [ mask-length ] } router-mac-local

Default

The device does not modify the router MAC address of routes before advertising the routes.

Views

BGP EVPN address family view

Predefined user roles

network-admin

Parameters

group-name: Specifies a peer group by its name, a case-sensitive string of 1 to 47 characters. The peer group must exist.

ipv4-address: Specifies a peer by its IPv4 address. The peer must exist.

mask-length: Specifies a mask length in the range of 0 to 32. To specify a subnet, you must specify both the ipv4-address and mask-length arguments

Usage guidelines

This command enables an ED to use its router MAC address to replace the router MAC address of routes received from and advertised to a peer or peer group in the local data center. The router MAC replacement process is as follows:

·     For routes received from the peer or peer group, the ED performs router MAC replacement and advertises the routes to remote EDs.

·     For routes received from a remote data center, the ED performs router MAC replacement and advertises the routes to the peer or peer group.

Examples

# In BGP EVPN address family view, enable route router MAC replacement for peer 1.1.1.1.

<Sysname> system-view

[Sysname] bgp 100

[Sysname-bgp-default] address-family l2vpn evpn

[Sysname-bgp-default-evpn] peer 1.1.1.1 router-mac-local

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网