15-EVPN Command Reference

HomeSupportSwitchesS12500X-AF SeriesReference GuidesCommand ReferencesH3C S12500X-AF Switch Series Command References(R3606)-6W10015-EVPN Command Reference
Table of Contents
Related Documents
01-EVPN commands
Title Size Download
01-EVPN commands 295.69 KB

EVPN commands

ac interface

Use ac interface to map an interface or Ethernet service instance to a cross-connect.

Use undo ac interface to delete the mapping between a cross-connect and an interface or Ethernet service instance.

Syntax

ac interface interface-type interface-number [ service-instance instance-id ] [ access-mode { ethernet | vlan } ] [ track track-entry-number&<1-15> ]

undo ac interface interface-type interface-number [ service-instance instance-id ]

Default

No interface or Ethernet service instance is mapped to a cross-connect.

Views

Cross-connect view

Predefined user roles

network-admin

Parameters

interface-type interface-number: Specifies an interface by its type and number.

service-instance instance-id: Specifies an Ethernet service instance by its ID in the range of 1 to 4096.

access-mode: Specifies an access mode. The default access mode varies by AC type.

·     If the AC is a Layer 3 interface, the default access mode is Ethernet.

·     If the AC is an Ethernet service instance, the default access mode depends on the frame match criterion that the Ethernet service instance uses.

¡     The default access mode is VLAN if the frame match criterion is configured by using the encapsulation s-vid vlan-id command.

¡     The default access mode is Ethernet if the frame match criterion is configured by using one of the following commands:

-     encapsulation s-vid vlan-id-list.

-     encapsulation s-vid vlan-id-list c-vid vlan-id-list.

-     encapsulation { default | untagged }.

The vlan-id-list argument specifies multiple VLAN IDs.

ethernet: Specifies the Ethernet access mode.

vlan: Specifies the VLAN access mode.

track track-entry-number&<1-15>: Specifies a space-separated list of up to 15 track entry numbers in the range of 1 to 1024. The AC is up only if a minimum of one associated track entry is in positive state.

Usage guidelines

After you execute this command, packets received from the mapped Layer 3 interface or Ethernet service instance are forwarded to the PW or another AC bound to the cross-connect.

To configure this command for an Ethernet service instance, you must first use the encapsulation command to configure a frame match criterion for the Ethernet service instance.

The access mode determines how the PE treats the VLAN tag in Ethernet frames received from the AC. It also determines how the PE forwards Ethernet frames out of the AC.

·     VLAN access mode—Ethernet frames received from the AC must carry a VLAN tag in the Ethernet header. The VLAN tag is called a P-tag, which is assigned by the service provider. Ethernet frames sent out of the AC must also carry the P-tag.

·     Ethernet access mode—If Ethernet frames from the AC have a VLAN tag in the header, the VLAN tag is called a U-tag, and the PE ignores it. Ethernet frames sent out of the AC do not carry the P-tag.

Examples

# Map HundredGigE 1/0/1 to cross-connect aaa in cross-connect group vpna.

[Sysname] xconnect-group vpna

[Sysname-xcg-vpna] connection aaa

[Sysname-xcg-vpna-aaa] ac interface hundredgige 1/0/1

# Map Ethernet service instance 200 that matches traffic of VLAN 200 on HundredGigE 1/0/1 to cross-connect actopw in cross-connect group vpn1.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] service-instance 200

[Sysname-HundredGigE1/0/1-srv200] encapsulation s-vid 200

[Sysname-HundredGigE1/0/1-srv200] quit

[Sysname-HundredGigE1/0/1] quit

[Sysname] xconnect-group vpn1

[Sysname-xcg-vpn1] connection actopw

[Sysname-xcg-vpn1-actopw] ac interface hundredgige 1/0/1 service-instance 200

Related commands

connection (MPLS Command Reference)

display l2vpn interface (MPLS Command Reference)

display l2vpn service-instance (MPLS Command Reference)

encapsulation (MPLS Command Reference)

pw-type (MPLS Command Reference)

address-family l2vpn evpn

Use address-family l2vpn evpn to create the BGP EVPN address family and enter its view, or enter the view of the existing BGP EVPN address family.

Use undo address-family l2vpn evpn to delete the BGP EVPN address family and all settings in BGP EVPN address family view.

Syntax

address-family l2vpn evpn

undo address-family l2vpn evpn

Default

The BGP EVPN address family does not exist.

Views

BGP instance view

Predefined user roles

network-admin

Usage guidelines

Configuration made in BGP EVPN address family view takes effect only on routes and peers of the BGP EVPN address family that are on the public network.

Examples

# Create the BGP EVPN address family and enter its view.

<Sysname> system-view

[Sysname] bgp 100

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

[Sysname-bgp-default-evpn]

arp forwarding-conversational-learning

Use arp forwarding-conversational-learning to enable conversational learning for remote ARP entries.

Use undo arp forwarding-conversational-learning to disable conversational learning for remote ARP entries.

Syntax

arp forwarding-conversational-learning [ aging aging-time ]

undo arp forwarding-conversational-learning

Default

Conversational learning is disabled for remote ARP entries.

Views

System view

Predefined user roles

network-admin

Parameters

aging aging-time: Specifies an aging timer in minutes for remote ARP entries, in the range of 60 to 1440. The default value is 60.

Usage guidelines

Use this command only on an EVPN network.

By default, the device issues a remote ARP entry to the hardware after the ARP information is advertised to the local site by BGP EVPN routes. This feature enables the device to issue a remote ARP entry to the hardware only when the entry is required for packet forwarding. This feature saves hardware resources on the device.

After you enable this feature, the device periodically examines whether the ARP entries are used for packet forwarding. An ARP entry is deleted if its aging timer expires.

When a large number of remote ARP entries exist, set an appropriate aging timer to avoid traffic interruption caused by the aging of ARP entries. As a best practice, set the aging timer value higher than or equal to the number of remote ARP entries divided by 200.

Examples

# Enable conversational learning for remote ARP entries and set the entry aging timer to 80 minutes.

<Sysname> system-view

[Sysname] arp forwarding-conversational-learning aging 80

arp mac-learning disable

Use arp mac-learning disable to disable an EVPN instance from learning MAC addresses from ARP information.

Use undo arp mac-learning disable to restore the default.

Syntax

arp mac-learning disable

undo arp mac-learning disable

Default

An EVPN instance learns MAC addresses from ARP information.

Views

VSI EVPN instance view

Predefined user roles

network-admin

Usage guidelines

The MAC information and ARP information advertised by a remote device overlap. To avoid duplication, use this command to disable the learning of MAC addresses from ARP information. EVPN will learn remote MAC addresses only from the MAC information advertised from remote sites.

Examples

# Disable an EVPN instance from learning MAC addresses from ARP information.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls] arp mac-learning disable

arp-advertising disable

Use arp-advertising disable to disable ARP information advertisement for an EVPN instance.

Use undo arp-advertising disable to restore the default.

Syntax

arp-advertising disable

undo arp-advertising disable

Default

ARP information advertisement is enabled for an EVPN instance.

Views

VSI EVPN instance view

Predefined user roles

network-admin

Examples

# Disable ARP information advertisement for an EVPN instance.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls] arp-advertising disable

display bgp l2vpn evpn

Use display bgp l2vpn evpn to display BGP EVPN routes.

Syntax

display bgp [ instance instance-name ] l2vpn evpn [ peer { ipv4-address | ipv6-address } { advertised-routes | received-routes } [ statistics ] | route-distinguisher route-distinguisher [ route-type { auto-discovery | es | imet | ip-prefix | mac-ip } ] [ evpn-route route-length [ advertise-info ] ] | route-type { auto-discovery | es | imet | ip-prefix | mac-ip } | statistics ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays BGP EVPN routes for the default BGP instance.

peer { ipv4-address | ipv6-address }: Specifies a peer by its IPv4 or IPv6 address.

advertised-routes: Specifies the routes advertised to the specified peer.

received-routes: Specifies the routes received from the specified peer.

statistics: Displays BGP EVPN route statistics.

route-distinguisher route-distinguisher: Specifies a route distinguisher (RD), a string of 3 to 21 characters. The RD can use one of the following formats:

·     16-bit AS number:32-bit user-defined number. For example, 101:3.

·     32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.

·     32-bit AS number:16-bit user-defined number. For example, 65536:1. The AS number must be equal to or greater than 65536.

route-type: Specifies a route type.

auto-discovery: Specifies Ethernet auto-discovery routes.

es: Specifies Ethernet segment (ES) routes.

imet: Specifies inclusive multicast Ethernet tag (IMET) routes.

ip-prefix: Specifies IP prefix advertisement routes.

mac-ip: Specifies MAC/IP advertisement routes.

evpn-route: Specifies a BGP EVPN route, a case-insensitive string of 1 to 512 characters.

route-length: Specifies the route length in bits, in the range of 0 to 65535.

evpn-prefix: Specifies a BGP EVPN route in the format of evpn-route/route-length, a case-insensitive string of 1 to 512 characters.

advertise-info: Displays advertisement information about BGP EVPN routes.

ipv4-address: Specifies an IPv4 address.

ipv6-address: Specifies an IPv6 address.

mac-address: Specifies a MAC address in MAC/IP advertisement routes. If you specify the route-type keyword, to use this argument, you must also specify the mac-ip keyword.

Usage guidelines

If you do not specify any parameter, this command displays brief information about all BGP EVPN routes.

Examples

# Display brief information about all BGP EVPN routes.

<Sysname> display bgp l2vpn evpn

 

BGP local router ID is 1.1.1.1

 Status codes: * - valid, > - best, d - dampened, h - history

               s - suppressed, S - stale, i - internal, e - external

               a - additional-path

       Origin: i - IGP, e - EGP, ? - incomplete

 

 Total number of routes from all PEs: 3

 

 Route distinguisher: 1:1(vpna)

 Total number of routes: 3

 

 

* >  Network : [2][0][48][521f-b814-0106][0][0.0.0.0]/104

     NextHop : 0.0.0.0                                  LocPrf    : 100

     PrefVal : 32768                                    OutLabel  : NULL

     MED     : 0

     Path/Ogn: i

 

* >  Network : [2][0][48][521f-b814-0106][32][10.1.1.10]/136

     NextHop : 0.0.0.0                                  LocPrf    : 100

     PrefVal : 32768                                    OutLabel  : NULL

     MED     : 0

     Path/Ogn: i

 

* >i Network : [2][0][48][522b-3c6a-0406][32][10.1.1.20]/136

     NextHop : 3.3.3.3                                  LocPrf    : 100

     PrefVal : 0                                        OutLabel  : NULL

     MED     : 0

     Path/Ogn: i

Table 1 Command output

Field

Description

Status codes

Route status codes:

·     * - valid—Valid route.

·     > - best—Optimal route.

·     d - dampened—Dampened route.

·     h - history—History route.

·     i - internal—Internal route.

·     e - external—External route.

·     s - suppressed—Suppressed route.

·     S - stale—Stale route.

·     a - additional-path—Add-Path optimal route.

Origin

Origin of the route:

·     i – IGP—Originated in the AS. The origin of routes advertised by using the network command is IGP.

·     e – EGP—Learned through EGP.

·     ? – incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is incomplete.

Network

BGP EVPN route/route length. BGP EVPN routes are as follows:

·     [1][ESI][EthernetTagID]

¡     1—Ethernet auto-discovery route.

¡     ESI—Ethernet segment identifier (ESI).

¡     EthernetTagID—Ethernet tag ID.

·     [2][EthernetTagID][MACLength][MAC][IPAddressLength][IPAddress]

¡     2—MAC/IP advertisement route.

¡     EthernetTagID—Ethernet tag ID.

¡     MACLength—MAC address length.

¡     MAC—MAC address.

¡     IPAddressLength—IP address length.

¡     IPAddress—IP address.

·     [3][EthernetTagID][IPAddressLength][IPAddress]

¡     3—IMET route.

¡     IPAddressLength—IP address length.

¡     IPAddress—IP address of the originating router.

·     [4][ESI][IPAddressLength][IPAddress]

¡     4—ES route.

¡     ESI—ESI.

¡     IPAddressLength—IP address length.

¡     IPAddress—IP address of the originating router.

·     [5][EthernetTagID][IPAddressLength][IPAddress]

¡     5—IP prefix advertisement route.

¡     EthernetTagID—Ethernet tag ID.

¡     IPAddressLength—IP address length.

¡     IPAddress—IP address of the originating router.

NextHop

Next hop IP address.

LocPrf

Local precedence.

PrefVal

Preferred value.

OutLabel

Outgoing label.

MED

Multi-Exit Discriminator (MED) attribute.

Path/Ogn

AS_PATH and ORIGIN attributes of the route.

 

# Display detailed information about BGP EVPN route [1][0001.0203.0405.0607.0809][5]/120 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [1][0001.0203.0405.0607.0809][5] 120

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [1][0001.0203.0405.0607.0809][5]/120:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <RT: 1:2>, <Encapsulation Type: MPLS >, <ESI Label: Flag 0,

                   Label 1>, <EVPN Layer 2 Attributes: MTU 1500, Control Flags 0x02>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0, pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : Ethernet auto-discovery route

 ESI             : 0001.0203.0405.0607.0809

 Ethernet tag ID : 5

 MPLS label      : 10

Table 2 Command output

Field

Description

Paths

Number of routes:

·     available—Number of valid routes.

·     best—Number of optimal routes.

From

IP address of the BGP peer that advertised the route.

Rely nexthop

Next hop after route recursion. If no next hop is found, this field displays not resolved.

Original nexthop

Original next hop of the route. If the route was obtained from a BGP update message, the original next hop is the next hop IP address in the message.

OutLabel

Outgoing label of the route.

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

·     ESI Label.

·     EVPN Layer 2 Attributes.

·     E-Tree Leaf Label—E-tree Leaf flag and label.

RxPathID

Add-Path ID value of the received route.

This field is not supported by the BGP EVPN address family.

TxPathID

Add-Path ID value of the sent route.

This field is not supported by the BGP EVPN address family.

AS-path

AS_PATH attribute of the route. This attribute records the ASs the route has passed and avoids routing loops.

Origin

Origin of the route:

·     igp—Originated in the AS. The origin of routes advertised by using the network command is IGP.

·     egp—Learned through EGP.

·     incomplete—Unknown origin. The origin of routes redistributed from IGP protocols is incomplete.

Attribute value

Attributes of the route:

·     MED—MED value for the destination network.

·     localpref—Local preference value.

·     pref-val—Preferred value.

·     pre—Route preference value.

State

Current state of the route:

·     valid.

·     internal.

·     external.

·     local.

·     synchronize.

·     best.

·     delay—The route will be delayed for optimal route selection. This field is displayed only in the detailed command output.

·     bgp-rib-only—The route will not be flushed to the routing table. This field is displayed only in the detailed command output.

IP precedence

IP precedence in the range of 0 to 7. N/A indicates that the IP precedence is invalid.

QoS local ID

QoS local ID in the range of 1 to 4095. N/A indicates that the QoS local ID is invalid.

Traffic index

Traffic index in the range of 1 to 64. N/A indicates that the traffic index is invalid.

MPLS label

MPLS label. The current software version does not support this field.

 

# Display detailed information about BGP EVPN route [2][5][48][0001-0203-0405][32][4.5.5.5]/136 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [2][5][48][0001-0203-0405][32][5.5.5.5] 136

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [2][5][48][0001-0203-0405][32][5.5.5.5]/136:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <RT: 1:2>, <RT: 1:3>, <RT: 1:4>, <RT: 1:5>, <RT: 1:6>, <RT: 1:7

                   >, <Encapsulation Type: MPLS>, <Router's Mac: 0006-0708-0910

                   >, <MAC Mobility: Flag 0, SeqNum 2>, <Default GateWay>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0, pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : MAC/IP advertisement route

 ESI             : 0001.0203.0405.0607.0809

 Ethernet tag ID : 5

 MAC address     : 0001-0203-0405

 IP address      : 5.5.5.5/32

 MPLS label1     : 10

 MPLS label2     : 0

Table 3 Command output

Field

Description

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

·     Router's Mac.

·     MAC Mobility—MAC mobility.

¡     Flag—Indicates whether the MAC address can move. A value of 1 indicates that the MAC address cannot move, and a value of 0 indicates that the MAC address can move.

¡     SeqNum—Identifies the most recent move of the MAC address.

·     Default GateWay—Route for the default gateway.

MPLS label1

MPLS label.

MPLS label2

L3 VXLAN ID used for Layer 3 forwarding. This field is not supported in the current software version.

 

# Display detailed information about BGP EVPN route [3][0][32][5.5.5.5]/80 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [3][0][32][4.5.5.5] 80

 

BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [3][0][32][4.5.5.5]/80:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <RT: 1:2>, <Encapsulation Type: MPLS>

 RxPathID        : 0x0

 TxPathID        : 0x0

 PMSI tunnel     : Flag 0, TunnelType 6, Label 10, EndPointAddress 10.1.1.2

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0,pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : Inclusive multicast Ethernet tag route

 Ethernet tag ID : 0

 Origin address  : 5.5.5.5/32

Table 4 Command output

Field

Description

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

PMSI tunnel

This field is not supported in the current software version.

P-Multicast Service Interface (PMSI) tunnel information:

·     Flag—Flags. This field is fixed at 0 in the current software version.

·     TunnelType—Tunnel type. This field is fixed at 6 in the current software version, which represents a head-end replication tunnel.

·     Label—VXLAN ID.

·     EndPointAddress—Tunnel destination address.

Origin address

IP address of the originating router.

 

# Display detailed information about BGP EVPN route [4][0000.0000.0000.0000.000a][32][4.5.5.5]/128 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [4][0000.0000.0000.0000.000a][32][4.5.5.5] 128

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [4][0000.0000.0000.0000.000a][32][4.5.5

.5]/128:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <ES-Import RT: 0000-0000-0000>, <Encapsulation Type: MPLS>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0,pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : Ethernet segment route

 ESI             : 0000.0000.0000.0000.000a

 Origin address  : 4.5.5.5/32

Table 5 Command output

Field

Description

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

·     ES-Import RT.

Origin address

IP address of the originating router.

 

# Display detailed information about BGP EVPN route [5][10][32][4.5.5.5]/80 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [5][10][32][4.5.5.5] 80

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [5][10][32][4.5.5.5]/80:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <RT: 1:2>, <Encapsulation Type: MPLS>, <Router's Mac:

                   0006-0708-0910>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0,pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : IP prefix advertisement route

 ESI             : 0000.0000.0000.0000.000a

 Ethernet tag ID : 10

 IP address      : 4.5.5.5/32

 Gateway address : 0.0.0.0

 MPLS Label      : 1

Table 6 Command output

Field

Description

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

·     Router's Mac.

IP address

IP address and prefix length.

MPLS Label

L3 VXLAN ID used for Layer 3 forwarding. This field is not supported in the current software version.

 

# Display detailed information about BGP EVPN route [4][0000.0000.0000.0000.000a][32][4.5.5.5]/128 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [4][0000.0000.0000.0000.000a][32][4.5.5.5] 128 advertise-info

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 best

 

 BGP routing table information of [4][0000.0000.0000.0000.000a][32][4.5.5.5]/128:

 Advertised to peers (1 in total):

    10.2.1.2

Table 7 Command output

Field

Description

Paths

Number of optimal routes.

Advertised to peers (1 in total)

Peers to whom the route has been advertised and the number of the peers.

 

# Display detailed information about BGP EVPN route [5][10][32][4.5.5.5]/80 with RD 1.1.1.1:100.

<Sysname> display bgp l2vpn evpn route-distinguisher 1.1.1.1:100 [5][10][32][4.5.5.5] 80

 

 BGP local router ID: 172.16.250.133

 Local AS number: 100

 

 

 Route distinguisher: 1.1.1.1:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [5][10][32][4.5.5.5]/80:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : NULL

 Ext-Community   : <RT: 1:2>, <Encapsulation Type: MPLS>, <Router's Mac:

                   0006-0708-0910>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0,pref-val 0

 State           : valid, external, best

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : IP prefix advertisement route

 ESI             : 0000.0000.0000.0000.000a

 Ethernet tag ID : 10

 IP address      : 4.5.5.5/32

 Gateway address : 0.0.0.0

 MPLS Label      : 1

 Re-origination  : Enable

 

 Route distinguisher: 2.2.2.2:100

 Total number of routes: 1

 Paths:   1 available, 1 best

 

 BGP routing table information of [5][10][32][4.5.5.5]/80:

 From            : 10.1.1.2 (192.168.56.17)

 Rely nexthop    : 10.1.1.2

 Original nexthop: 10.1.1.2

 OutLabel        : 0

 Ext-Community   : <RT: 1:2>, <Encapsulation Type: MPLS>, <Router's Mac:

                   0006-0708-0910>

 RxPathID        : 0x0

 TxPathID        : 0x0

 AS-path         : 200

 Origin          : igp

 Attribute value : MED 0,pref-val 0

 State           : valid, external, best, reoriginated, remoteredist

 IP precedence   : N/A

 QoS local ID    : N/A

 Traffic index   : N/A

 EVPN route type : IP prefix advertisement route

 ESI             : 0000.0000.0000.0000.000a

 Ethernet tag ID : 10

 IP address      : 4.5.5.5/32

 Gateway address : 0.0.0.0

 MPLS Label      : 20

Table 8 Command output

Field

Description

Ext-Community

Extended community attributes:

·     RT.

·     Encapsulation Type.

·     Router's Mac.

State

Current state of the route:

·     valid.

·     internal.

·     external.

·     local.

·     synchronize.

·     best.

·     reoriginated—Reoriginated route.

·     localredist—IP prefix advertisement route generated based on a local route.

·     remoteredist—IP prefix advertisement route generated based on a remote route.

IP address

IP address and prefix length.

MPLS Label

L3 VXLAN ID used for Layer 3 forwarding. This field is not supported in the current software version.

Re-origination

State of route reorigination:

·     Enable.

·     Disable.

display evpn auto-discovery

Use display evpn auto-discovery to display information about peers that are automatically discovered through BGP.

Syntax

display evpn auto-discovery { ethernet-ad mpls [ peer ip-address] [ vsi vsi-name ] | { imet | mac-ip } [ mpls ] [ peer ip-address] [ vsi vsi-name ] | macip-prefix [ nexthop next-hop ] [ count ] }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ethernet-ad: Specifies Ethernet auto-discovery routes.

imet: Specifies peers discovered through IMET routes.

mac-ip: Specifies MAC/IP advertisement routes.

mpls: Specifies the EVPN VPLS network.

peer ip-address: Specifies a peer by its IP address. If you do not specify this option, the command displays information about all automatically discovered peers.

vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays peer information about all VSIs.

macip-prefix: Specifies peers discovered through MAC/IP advertisement and IP prefix advertisement routes.

nexthop next-hop: Specifies a next hop. If you do not specify this option, the command displays peer information about all next hops.

count: Displays the number of peers. If you do not specify this keyword, the command displays detailed peer information.

Examples

# Display information about peers discovered through Ethernet auto-discovery routes for EVPN VPLS.

<Sysname> display evpn auto-discovery ethernet-ad mpls

Total number of automatically discovered peers: 1

 

VSI name: vpnb

Destination IP  In/Out label    Tunnel Mode

7.7.7.7         1420/-          PW

Table 9 Command output

Field

Description

In/Out label

Incoming and outgoing labels for the PW. If the labels are invalid, this field displays a hyphen (-).

Tunnel Mode

Tunnel mode, which can only be PW.

 

# Display information about peers discovered through IMET routes for EVPN VPLS.

<Sysname> display evpn auto-discovery imet

Total number of automatically discovered peers: 1

 

VSI name: vpna

RD                    PE_address      In/Out label    Tunnel mode

1:1                   1.1.1.1         1151/1151       PW

Table 10 Command output

Field

Description

PE_address

Identifier of the remote device on the VSI.

Tunnel mode

Tunnel mode, which can only be PW.

In/Out label

Incoming and outgoing labels for the PW. If the labels are invalid, this field displays a hyphen (-).

 

# Display information about IPv4 peers discovered through MAC/IP advertisement routes for EVPN VPLS.

<Sysname> display evpn auto-discovery mac-ip

Total number of automatically discovered peers: 1

 

VSI name: vpnb

Destination IP  In/Out label    Tunnel Mode

7.7.7.7         1420/1419       PW

Table 11 Command output

Field

Description

Tunnel mode

Tunnel mode, which can only be PW.

In/Out label

Incoming and outgoing labels for the PW. If the labels are invalid, this field displays a hyphen (-).

 

display evpn es

Use display evpn es to display EVPN ES information.

Syntax

display evpn es { local [ vsi vsi-name  | xconnect-group group-name ] [ esi esi-id ] [ verbose ] | remote [ vsi vsi-name | xconnect-group group-name ] [ esi esi-id ] [ nexthop next-hop ] }

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

local: Specifies local ES information.

vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays ES information about all VSIs.

esi esi-id: Specifies an ES by its ESI in XXXX.XXXX.XXXX.XXXX.XXXX format. Each X represents a hexadecimal digit. The ESI must begin with 00 and cannot be all zeros. If you do not specify this option, the command displays information about all ESs.

verbose: Displays detailed ES information. If you do not specify this keyword, the command displays brief ES information.

remote: Specifies remote ES information.

nexthop next-hop: Specifies a next hop. If you do not specify this option, the command displays ES information received from all next hops.

xconnect-group group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays EVPN local or remote ES information about all cross-connect groups.

Examples

# Display brief information about local ESs of VSI vpna.

<Sysname> display evpn es local vsi vpna

Redundancy mode: A – All-active, S – Single-active

 

VSI name : vpna

ESI                         Tag ID      DF address      Mode  State ESI label

0001.0002.0002.0002.0002    -           1.1.1.1         A     Up    1000

0001.0002.0003.0004.0005    -           1.1.1.1         A     Up    1001

0003.0003.0003.0003.0003    2           2.2.2.2         A     Up    1002

# Display brief information about local ESs of cross-connect group vpna.

<Sysname> display evpn es local xconnect-group vpna

Redundancy mode: A – All-active, S – Single-active

 

Xconnect group name: vpna

ESI                         Tag ID      DF address      Mode  State ESI label

0001.0002.0002.0002.0002    -           1.1.1.1         A     Up    -

0001.0002.0003.0004.0005    -           1.1.1.1         A     Up    -

0003.0003.0003.0003.0003    2           2.2.2.2         A     Up    -

Table 12 Command output

Field

Description

Xconnect group name

Cross-connect group name.

Tag ID

Ethernet tag ID.

DF address

Router ID of the device elected as the DF.

Mode

Redundancy mode of the ES:

·     A—All-active mode.

·     S—Single-active mode.

State

State of the ES:

·     Up.

·     Down.

ESI label

ESI label. For EVPN VPWS, this field is invalid and displays a hyphen (-).

 

# Display detailed information about local ESs of all VSIs.

<Sysname> display evpn es local verbose

 

VSI name : v1

  ESI                      : 0003.0003.0003.0003.0003

  Interface                : HundredGigE1/0/1

  Redundancy mode          : All-active

  State                    : Up

  AD-delay remaining time  : 10

  ACs                      :

    Link ID     Service instance ID   Tag ID      DF address        ESI label

    0           1                     1           1.1.1.1           1001

    1           3                     3           3.3.3.3           1002

    2           10                    10          2.2.2.2           1003

 

VSI name : vpna

  ESI                      : 0001.0002.0002.0002.0002

  Interface                : HundredGigE1/0/2

  Redundancy mode          : All-active

  State                    : Up

  AD-delay remaining time  : 10

  ACs                      :

    Link ID     Service instance ID   Tag ID      DF address        ESI label

    1           -                     -           1.1.1.1           -

 

Xconnect group name : vpna

 Connection name           : aa

  ESI                      : 0003.0003.0003.0003.0003

  AC                       : HGE1/0/5 srv1

  Redundancy mode          : All-active

  State                    : Up

  Link ID                  : 0

  Tag ID                   : 10

  DF address               : 1.1.1.1

Table 13 Command output

Field

Description

Xconnect group name

Cross-connect group name.

Connection name

Cross-connect name.

AC

AC name:

·     A Layer 3 interface name.

·     A Layer 2 interface name and an Ethernet service instance name.

Redundancy mode

Redundancy mode of the ES:

·     A—All-active mode.

·     S—Single-active mode.

State

State of the ES:

·     Up.

·     Down.

If the ES is not manually assigned an ESI, a hyphen (-) is displayed.

AD-delay remaining time

Remaining time of the advertisement delay timer for Ethernet auto-discovery routes, in seconds.

ACs

The VSI's ACs on the ES.

Link ID

The AC's link ID on the VSI.

Service instance ID

Ethernet service instance ID.

Tag ID

Ethernet tag ID.

DF address

Router ID of the device elected as the DF. If the device is not the DF of an AC, a hyphen (-) is displayed.

ESI label

ESI label. For EVPN VPWS, this field is invalid and displays a hyphen (-).

 

# Display information about remote ESs of all VSIs.

<Sysname> display evpn es remote

Control Flags: P - Primary, B - Backup, C - Control word

 

VSI name : v1

  ESI                     : 0003.0003.0003.0003.0003

  A-D per ES routes       :

    Peer IP             Remote Redundancy mode

    1.1.1.1             All-active

  A-D per EVI routes      :

    Tag ID      Peer IP

    1           1.1.1.1

    3           1.1.1.1

    10          1.1.1.1

 

VSI name : vpna

  ESI                     : 0001.0000.0000.0000.0001

  Ethernet segment routes :

    1.1.1.1

    3.3.3.3

  A-D per ES routes       :

    Peer IP             Remote Redundancy mode

    1.1.1.1             All-active

    3.3.3.3             All-active

  A-D per EVI routes      :

    Tag ID      Peer IP

    -           1.1.1.1

    -           3.3.3.3

 

  ESI                     : 0001.0002.0003.0004.0005

  Ethernet segment routes :

    1.1.1.1

  A-D per ES routes       :

    Peer IP             Remote Redundancy mode

    1.1.1.1             All-active

  A-D per EVI routes      :

    Tag ID      Peer IP

    -           1.1.1.1

 

Xconnect group name : a

  ESI                     : 0001.0000.0000.0000.0001

  Ethernet segment routes :

    123.123.123.123

    3.3.3.3

  A-D per ES routes       :

    Peer IP             Remote Redundancy mode

    123.123.123.123     All-active

    3.3.3.3             All-active

  A-D per EVI routes      :

    Tag ID      Peer IP          Control Flags

    2           3.3.3.3          P

    4           123.123.123.123  PC

 

  ESI                     : 0001.0000.0000.0000.0002

  Ethernet segment routes :

    123.123.123.123

    3.3.3.3

  A-D per ES routes       :

    Peer IP             Remote Redundancy mode

    123.123.123.123     Single-active

    3.3.3.3             All-active

  A-D per EVI routes      :

    Tag ID      Peer IP          Control Flags

    2           3.3.3.3          PC

    4           123.123.123.123  P

# Display remote ES information received from next hop 3.3.3.3 for VSI vpna.

<Sysname> display evpn es remote vsi vpna nexthop 3.3.3.3

 

VSI name : vpna

  ESI                     : 0001.0000.0000.0000.0001

  Redundancy mode         : All-active

  Ethernet segment routes :

    3.3.3.3

  A-D per ES routes       :

    3.3.3.3

  A-D per EVI routes      :

    Tag ID      Peer IP

    -           3.3.3.3

Table 14 Command output

Field

Description

Xconnect group name

Cross-connect group name.

Ethernet segment routes

Ethernet segment routes for the ES.

A-D per Ethernet segment routes

A-D per Ethernet segment routes for the ES.

A-D per EVI routes

A-D per EVI routes for the ES.

Tag ID

Ethernet tag ID.

Peer IP

IP address of the remote peer.

Remote Redundancy mode

Redundancy mode of the remote ES:

·     All-active.

·     Single-active.

Control Flags

Layer 2 attributes control flags of the remote route:

·     P—Primary flag.

·     B—Backup flag.

·     C—Control word flag.

 

display evpn route arp

Use display evpn route arp to display EVPN ARP entries.

Syntax

display evpn route arp [ local | remote ] [ vpn-instance vpn-instance-name ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

local: Specifies local ARP entries.

remote: Specifies remote ARP entries.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays EVPN ARP entries for all VPN instances.

count: Displays the number of ARP entries. If you do not specify this keyword, the command displays detailed information about ARP entries.

Usage guidelines

If you do not specify the local or remote keyword, this command displays both local and remote EVPN ARP entries.

Examples

# Display all EVPN ARP entries.

<Sysname> display evpn route arp

Flags: D - Dynamic   B - BGP      L - Local active

       G - Gateway   S - Static   M - Mapping        I - Invalid

 

VPN instance:abc                             Interface:Vsi-interface1

IP address      MAC address     Router MAC      VSI index   Flags

10.1.1.1        0003-0003-0003  a0ce-7e40-0400  0           GL

10.1.1.11       0001-0001-0001  a0ce-7e40-0400  0           DL

10.1.1.12       0001-0001-0011  a0ce-7e41-0401  0           B

10.1.1.13       0001-0001-0021  a0ce-7e42-0402  0           B

10.1.1.101      0001-0011-0101  a0ce-7e40-0400  0           SL

10.1.1.102      0001-0011-0102  0011-9999-0000  0           BS

 

Public instance                             Interface:Vsi-interface2

IP address      MAC address     Router MAC      VSI index   Flags

11.1.1.1        0033-0033-0033  a0ce-7e40-0400  0           GL

11.1.1.11       0011-0011-0011  a0ce-7e40-0400  0           DL

# Display the total number of EVPN ARP entries.

<Sysname> display evpn route arp count

Total number of entries: 6

Table 15 Command output

Field

Description

Interface

VSI interface.

Flags

ARP entry type:

·     D—The entry is dynamically learned.

·     B—The entry is learned from BGP EVPN routes.

·     L—The local entry is active. If this flag is not set and the B flag is set, the entry learned from BGP EVPN routes is active.

·     G—The entry for the gateway is active.

·     S—The static entry is active.

·     M—The entry from a remote VXLAN mapped to a local VXLAN is active. This type is not supported in the current software version.

·     I—The entry is invalid. Reasons:

¡     The VSI has been administratively shut down by using the shutdown command.

¡     The outgoing tunnel interface does not exist.

 

display evpn route arp suppression

Use display evpn route arp suppression to display EVPN ARP flood suppression entries.

Syntax

display evpn route arp suppression [ mpls ] [ local | remote ] [ vsi vsi-name ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

mpls: Specifies the EVPN VPLS network.

local: Specifies local ARP flood suppression entries.

remote: Specifies remote ARP flood suppression entries.

vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays ARP flood suppression entries for all VSIs.

count: Displays the number of ARP flood suppression entries. If you do not specify this keyword, the command displays detailed information about ARP flood suppression entries.

Usage guidelines

If you do not specify the local or remote keyword, this command displays both local and remote EVPN ARP flood suppression entries.

Examples

# Display all ARP flood suppression entries for EVPN VPLS.

<Sysname> display evpn route arp suppression

Flags: D - Dynamic   B - BGP      L - Local active

       G - Gateway   S - Static   M - Mapping        I - Invalid

 

VSI name: vpna

IP address      MAC address       Flags           Encap

10.1.1.12       0002-0002-0002    B               MPLS

10.1.1.13       0002-0002-0002    BI              MPLS

10.1.1.101      0001-0011-0101    BS              MPLS

10.1.1.102      0001-0011-0102    DL              MPLS

# Display the total number of ARP flood suppression entries.

<Sysname> display evpn route arp suppression count

Total number of entries: 1

Table 16 Command output

Field

Description

Flags

ARP flood suppression entry type:

·     D—The entry is dynamically learned.

·     B—The entry is learned from BGP EVPN routes.

·     L—The local entry is active. If this flag is not set and the B flag is set, the entry learned from BGP EVPN routes is active.

·     G—The entry for the gateway is active.

·     S—The static entry is active.

·     M—The entry from a remote VXLAN mapped to a local VXLAN is active. This type is not supported in the current software version.

·     I—The entry is invalid. Reasons:

¡     The VSI has been administratively shut down by using the shutdown command.

¡     The outgoing tunnel interface does not exist.

Encap

Packet encapsulation type, which can only be MPLS.

 

display evpn route mac

Use display evpn route mac to display EVPN MAC address entries.

Syntax

display evpn route mac [ mpls ] [ local | remote ] [ vsi vsi-name ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

mpls: Specifies the EVPN VPLS network.

local: Specifies local MAC address entries.

remote: Specifies remote MAC address entries.

vsi vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays MAC address entries for all VSIs.

count: Displays the number of MAC address entries. If you do not specify this keyword, the command displays detailed information about MAC address entries.

Usage guidelines

If you do not specify the mpls keyword, this command displays EVPN MAC address entries for EVPN VPLS. If you do not specify the local or remote keyword, this command displays both local and remote EVPN MAC address entries.

Examples

# Display all MAC address entries for EVPN VPLS.

<Sysname> display evpn route mac

Flags: D - Dynamic   B - BGP      L - Local active

       G - Gateway   S - Static   M - Mapping        I - Invalid

       E – Multihoming ES sync    F - Leaf

 

VSI name: bbb

MAC address     Link ID/Name   Flags   Encap           Next hop

0001-2000-5000  9              BF      MPLS            4.4.4.4

# Display the total number of EVPN MAC address entries.

<Sysname> display evpn route mac count

Total number of entries: 2

Table 17 Command output

Field

Description

Link ID/Name

For a local MAC address, this field displays the AC's link ID on the VSI.

For a remote MAC address, this field displays the tunnel interface name.

Flags

MAC address entry type:

·     D—The entry is dynamically learned.

·     B—The entry is learned from BGP EVPN routes.

·     L—The local entry is active. If this flag is not set and the B flag is set, the entry learned from BGP EVPN routes is active.

·     G—The entry for the gateway is active.

·     S—The static entry is active.

·     M—The entry from a remote VXLAN mapped to a local VXLAN is active. This type is not supported in the current software version.

·     I—The entry is invalid. Reasons:

¡     The VSI has been administratively shut down by using the shutdown command.

¡     The outgoing tunnel interface does not exist.

·     E—The entry is synchronized between devices at a multihomed site.

·     F—The entry is from a leaf AC of EVPN E-tree.

Encap

Packet encapsulation type, which can only be MPLS.

Next hop

IP address of the remote device. If the MAC address entry is a local entry, a hyphen (-) is displayed.

 

display evpn route nd

Use display evpn route nd to display EVPN ND entries.

Syntax

display evpn route nd [ local | remote ] [ vpn-instance vpn-instance-name ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

local: Specifies local ND entries.

remote: Specifies remote ND entries.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays EVPN ND entries for all VPN instances.

count: Displays the number of ND entries. If you do not specify this keyword, the command displays detailed information about ND entries.

Usage guidelines

If you do not specify the local or remote keyword, this command displays both local and remote EVPN ND entries.

Examples

# Display all EVPN ND entries.

<Sysname> display evpn route nd

Flags: D - Dynamic   B - BGP      L - Local active

       G - Gateway   S - Static   M - Mapping        I - Invalid

 

VPN instance: vpn1                            Interface: Vsi-interface1

IPv6 address :   AD80:0300:1000:0050:0200:0300:0100:0012

MAC address  :   0001-0001-0001       Router MAC   :   a0ce-7e40-0400

VSI index    :   0                    Flags        :   GL

 

IPv6 address :   AD10:0300:1000:0020:0200:0300:0100:0022

MAC address  :   0001-0001-0002       Router MAC   :   a0ce-7e40-0411

VSI index    :   0                    Flags        :   GL

 

Public instance                               Interface: Vsi-interface1

IPv6 address :   BC80:0300:1000:0050:0200:0300:0100:0033

MAC address  :   0002-0002-0001       Router MAC   :   a0ce-7e40-0422

VSI index    :   0                    Flags        :   GL

 

IPv6 address :   BC10:0300:1000:0020:0200:0300:0100:0034

MAC address  :   0002-0002-0002       Router MAC   :   a0ce-7e40-0433

VSI index    :   0                    Flags        :   GL

# Display the total number of EVPN ND entries.

<Sysname>display evpn route nd count

Total number of entries: 2

Table 18 Command output

Field

Description

Interface

VSI interface.

Flags

ND entry type:

·     D—The entry is dynamically learned.

·     B—The entry is learned from BGP EVPN routes.

·     L—The local entry is active. If this flag is not set and the B flag is set, the entry learned from BGP EVPN routes is active.

·     G—The entry for the gateway is active.

·     S—The static entry is active.

·     M—The entry from a remote VXLAN mapped to a local VXLAN is active. This type is not supported in the current software version.

·     I—The entry is invalid. Reasons:

¡     The VSI has been administratively shut down by using the shutdown command.

¡     The outgoing tunnel interface does not exist.

 

display evpn routing-table

Use display evpn routing-table to display the EVPN routing table for a VPN instance.

Syntax

display evpn routing-table [ ipv6 ] vpn-instance vpn-instance-name [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

ipv6: Specifies IPv6 information. If you do not specify this keyword, the command displays IPv4 information.

vpn-instance vpn-instance-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31 characters.

count: Displays the number of entries in the routing table. If you do not specify this keyword, the command displays detailed information about the routing table.

Examples

# Display the EVPN IPv4 routing table for VPN instance vpn1.

<Sysname> display evpn routing-table vpn-instance vpn1

Flags: E - with valid ESI   A – A-D ready   L - Local ES exists

VPN instance:vpna                            Local L3VNI:111

IP address       Nexthop          Outgoing interface    NibID       Flags

10.0.0.2         2.2.2.2          Vsi-interface111      0x18000000  EAL

10.0.0.3         3.3.3.3          Vsi-interface111      0x18000001  EA

                 2.2.2.2          Vsi-interface111      0x18000000  EA

20.0.0.2         3.3.3.3          Vsi-interface111      0x18000001  -

# Display the number of EVPN route entries in the IPv4 routing table for VPN instance vpn1.

<Sysname> display evpn routing-table vpn-instance vpn1 count

Total number of entries: 2

# Display the EVPN IPv6 routing table for VPN instance vpna.

<Sysname> display evpn routing-table ipv6 vpn-instance vpna

 

VPN instance: vpna                              Local L3VNI: 7

IPv6 address        :      BC10:0300:1000:0020:0200:0300:0100:0034

Nexthop             :      1.1.1.1

Outgoing interface  :      Vsi-interface3

NibID               :      0x18000000

 

IPv6 address        :      BC10:0300:1000:0020:0200:0300:0100:0035

Nexthop             :      2.2.2.2

Outgoing interface  :      Vsi-interface3

NibID               :      0x18000001

Table 19 Command output

Field

Description

Local L3VNI

L3 VXLAN ID associated with the VPN instance or the public instance. This field is not supported in the current software version.

NibID

Next hop ID.

Flags

Flags of the route:

·     E—The route carries a valid ESI.

·     A—All Ethernet auto-discovery routes are received. The ECMP routes for the next hop can be issued.

·     L—An active local ESI exists. Remote routes are not issued.

·     -—The MAC/IP advertisement route does not have a valid ESI. ECMP routes are not supported.

 

display evpn vsi

Use display evpn vsi to display VSI information.

Syntax

display evpn vsi [ name vsi-name ] [ verbose ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

name vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays information about all VSIs.

verbose: Displays detailed VSI information. If you do not specify this keyword, the command displays brief VSI information.

Examples

# Display brief information about all VSIs.

<Sysname> display evpn vsi

Total number of VSIs: 2

 

VSI name                        VSI index

vpna                            0

vpnb                            1

# Display detailed information about all VSIs.

<Sysname> display evpn vsi verbose

VSI name: vpna

  VSI index                          : 0

  Encapsulation                      : MPLS

  Route distinguisher                : 1:1

  Export VPN targets                 : 1:1 2:2 3:3

  Import VPN targets                 : 1:1 2:2 3:3

  MAC advertisement                  : Disabled

  ARP advertisement                  : Disabled

  ARP-based MAC learning             : Disabled

  ND-based MAC learning              : Disabled

  MPLS label                         : 1150

  IMET MPLS label                    : 1149

  Tunnel policy                      : policy1

  PW class                           : class1

  Control word                       : Enabled

  E-Tree                             : Disabled

  PW type                            : Ethernet

  Sequencing                         : Both

  Flow label                         : Both

Table 20 Command output

Field

Description

Encapsulation

EVPN encapsulation type, which can only be MPLS.

MAC advertisement

Status of MAC address advertisement:

·     Enabled.

·     Disabled.

ARP advertisement

Status of ARP advertisement:

·     Enabled.

·     Disabled.

ARP-based MAC learning

Whether EVPN learns MAC addresses from ARP information:

·     Enabled.

·     Disabled.

ND-based MAC learning

Whether EVPN learns MAC addresses from ND information:

·     Enabled.

·     Disabled.

MPLS label

MPLS label in MAC/IP advertisement routes.

IMET MPLS label

MPLS label in IMET routes.

Tunnel policy

Tunnel policy used by the EVPN instance.

PW class

PW class used by the EVPN instance.

Control word

Status of the control word feature:

·     Enabled.

·     Disabled.

E-Tree

Status of EVPN E-tree:

·     Enabled.

·     Disabled.

PW type

PW type:

·     Ethernet.

·     VLAN.

Sequencing

Sequencing on the PW. The value is Both.

A hyphen (-) in this field indicates that sequencing is disabled on the PW.

Flow label

Flow label capability:

·     Both—Flow label sending and receiving capabilities.

·     Send—Flow label sending capability.

·     Recv—Flow label receiving capability.

This field displays a hyphen (-) if the flow label feature is disabled.

 

Related commands

evpn encapsulation

vsi

display evpn route xconnect-group

Use display evpn route xconnect-group to display EVPN information about cross-connects.

Syntax

display evpn route xconnect-group [ name group-name [ connection connection-name ] ] [ count ]

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

name group-name: Specifies a cross-connect group by its name, a case-sensitive string of 1 to 31 characters. If you do not specify a cross-connect group, this command displays EVPN information about all cross-connect groups.

connection connection-name: Specifies a cross-connect by its name, a case-sensitive string of 1 to 20 characters excluding hyphens (-). If you do not specify a cross-connect, this command displays EVPN information about all cross-connects in the specified cross-connect group.

count: Displays the number of EVPN cross-connects. If you do not specify this keyword, the command displays detailed EVPN information.

Usage guidelines

If you do not specify any parameters, this command displays detailed EVPN information about all cross-connects.

Examples

# Display detailed EVPN information about all cross-connects.

<Sysname> display evpn route xconnect-group

Flags: P - Primary, B - Backup, C - Control word

 

Xconnect group name: aa

 Connection name: aaa

  ESI                 : 0001.0002.0002.0002.0002

  Local service ID    : 16777215

  Remote service ID   : 16777214

  Control word        : Enabled

  In label            : 502

  Local MTU           : 1500

  AC State            : Up

  PW type             : VLAN

    Nexthop          ESI                       Out label  Flags  MTU    state

    192.123.123.123  0001.0002.0002.0002.0001  1299       PC     1500   Up 

    192.1.1.1        0001.0002.0002.0002.0001  1026       B      1500   Down  

 

 Connection name: aab

  ESI                 : 0000.0000.0000.0000.0000

  Local service ID    : 1

  Remote service ID   : 2

  Control word        : Disabled

  In label            : 323

  Local MTU           : 1500

  AC State            : Up

  PW type             : VLAN

    Nexthop          ESI                       Out label  Flags  MTU    state

    192.1.1.1        0002.0002.0002.0002.0001  1234       P      1500   Up  

    192.2.1.2        0002.0002.0002.0002.0001  603        P      1500   Up  

 

 Connection name: aac

  ESI                 : 0000.0000.0000.0000.0000

  Local service ID    : 3

  Remote service ID   : 4

  Control word        : Enabled

  In label            : -

  Local MTU           : 1500

  AC State            : Up

  PW type             : Ethernet

    Nexthop          ESI                       Out label  Flags  MTU    state

    192.1.1.3        0000.0000.0000.0000.0000  555        P      1500   Idle

# Display the total number of EVPN cross-connects.

<Sysname> display evpn route xconnect-group count

Total number of entries: 2

Table 21 Command output

Field

Description

Xconnect group name

Cross-connect group name.

Connection name

Cross-connect name.

In label

PW incoming label.

Local MTU

Local MTU in bytes.

AC State

AC state:

·     Up.

·     Down.

This field displays a hyphen (-) if no AC is configured.

PW type

PW data encapsulation type:

·     Ethernet.

·     VLAN.

Nexthop

Remote PE address.

Out label

PW outgoing label.

Flags

PW attribute flags:

·     P—The received route has the primary flag. A primary PW needs to be set up.

·     B—The received route has the backup flag. A backup PW needs to be set up.

·     C—The received route has the control word flag, which indicates that control word is enabled on the peer. For the EVPN PWs to come up, you must enable control word on the local device.

MTU

MTU in the received route, in bytes.

state

EVPN PW state:

·     Up.

·     Down.

·     Idle—The incoming or outgoing label is not available.

 

display l2vpn forwarding evpn

Use display l2vpn forwarding evpn to display forwarding information about VSIs of EVPN VPLS and EVPN VPWS.

Syntax

display l2vpn forwarding evpn [ vsi [ name vsi-name ] [ verbose ] ] slot slot-number

Views

Any view

Predefined user roles

network-admin

network-operator

Parameters

vsi: Specifies VSI forwarding information. If you do not specify this keyword, the command displays both VSI and cross-connect forwarding information about EVPN.

name vsi-name: Specifies a VSI by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command displays forwarding information about all VSIs.

verbose: Displays detailed forwarding information. If you do not specify this keyword, the command displays brief forwarding information.

slot slot-number: Specifies a card by its slot number.

Examples

# Display brief forwarding information about all VSIs of EVPN VPLS on slot 1.

<Sysname> display l2vpn forwarding evpn vsi slot 1

Total number of VSIs: 2

VSI name                       VSI index

vpls1                          0

# Display detailed forwarding information about all VSIs of EVPN VPLS on slot 1.

<Sysname> display l2vpn forwarding evpn vsi verbose slot 1

VSI name: vpls1

  VSI index                         : 0

  Encapsulation                     : MPLS

  MPLS label                        : 1150

  IMET MPLS label                   : 1149

  Control word                      : enabled

  PW type                           : Ethernet

  Sequencing                        : Both

  Flow label                        : Both

Table 22 Command output

Field

Description

Encapsulation

EVPN encapsulation type. MPLS represents MPLS encapsulation.

MPLS label

MPLS label in MAC/IP advertisement routes.

IMET MPLS label

MPLS label in IMET routes.

Control word

Status of the control word feature:

·     enabled.

·     disabled.

PW type

PW type:

·     Ethernet.

·     VLAN.

Sequencing

Sequencing on the PW. The value is Both.

A hyphen (-) in this field indicates that sequencing is disabled on the PW.

Flow label

Flow label capability:

·     Both—Flow label sending and receiving capabilities.

·     Send—Flow label sending capability.

·     Recv—Flow label receiving capability.

This field displays a hyphen (-) if the flow label feature is disabled.

 

Related commands

evpn encapsulation

vsi

display l2vpn forwarding evpn split-horizon

Use display l2vpn forwarding evpn split-horizon to display site-facing interfaces excluded from traffic forwarding by split horizon.

Syntax

display l2vpn forwarding evpn split-horizon { ac interface interface-type interface-number | ac interface interface-type interface-number service-instance instance-id } [ slot slot-number ]

Views

Any view

Predefined user roles

network-admin

network-operator

 Parameters

ac interface interface-type interface-number: Specifies a Layer 3 interface by its type and number. These parameters apply to EVPN VPLS.

ac interface interface-type interface-number service-instance instance-id: Specifies an Ethernet service instance on a Layer 2 interface. The interface-type interface-number argument specifies the interface by its type and number. The instance-id argument specifies the Ethernet service instance by its ID in the range of 1 to 4096. These parameters apply to EVPN VPLS.

slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information on the active MPU.

Examples

# Display site-facing interfaces excluded from traffic forwarding for AC HundredGigE 1/0/1.

<Sysname> display l2vpn forwarding evpn split-horizon ac interface hundredgige 1/0/1

Interface name  : HundredGigE1/0/1

AC link ID              : 0

Service instance ID     : 100

PW count                : 2

VSI name        PW link ID         ESI label

vpna            8                  775128

vpna            9                  775128

esi

Use esi to assign an ESI to an interface.

Use undo esi to restore the default.

Syntax

esi esi-id

undo esi

Default

No ESI is assigned to an interface.

Views

Interface view

Predefined user roles

network-admin

Parameters

esi-id: Specifies an ES by its ESI in XXXX.XXXX.XXXX.XXXX.XXXX format. Each X represents a hexadecimal digit. The ESI must begin with 00 and cannot be all zeros.

Usage guidelines

An ESI uniquely identifies an ES. The links on interfaces with the same ESI belong to the same ES. Traffic of the ES can be distributed among the links for load sharing.

To modify the ESI of an interface, first use the undo esi command to delete the original ESI.

Examples

# Assign ESI 0000.0001.0002.0003.0004 to HundredGigE 1/0/1.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] esi 0000.0001.0002.0003.0004

evpn encapsulation

Use evpn encapsulation to create an EVPN instance and enter its view, or enter the view of an existing EVPN instance.

Use undo evpn encapsulation to restore the default.

Syntax

In VSI view:

evpn encapsulation mpls

undo evpn encapsulation

In cross-connect group view:

evpn encapsulation mpls

undo evpn encapsulation

Default

No EVPN instance is created.

Views

VSI view

Cross-connect group view

Predefined user roles

network-admin

Parameters

mpls: Specifies MPLS encapsulation.

Usage guidelines

Before you can configure EVPN settings for a VSI or cross-connect group, you must create an EVPN instance on it.

Examples

# Create an EVPN instance on VSI aaa, specify MPLS encapsulation, and enter VSI EVPN instance view.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls]

evpn frr local

Use evpn frr local enable to enable local fast reroute (FRR) on an EVPN instance.

Use evpn frr local disable to disable local FRR on an EVPN instance and delete the existing bypass PW.

undo evpn frr local to restore the default.

Syntax

evpn frr local { disable | enable }

undo evpn frr local

Default

An EVPN instance uses the global local FRR configuration of EVPN VPWS.

Views

Cross-connect group EVPN instance view

Predefined user roles

network-admin

Usage guidelines

Local FRR enables two PEs at a multihomed EVPN VPWS network site to set up a bypass PW between them. This feature helps reduce the traffic loss caused by AC failure.

At a multihomed EVPN VPWS network site, CE 1 is dualhomed to PE 1 and PE 2, and PE 1 is the DF. When the AC on PE 1 fails, PE 1 advertises the local unreachable event to PE 2 and remote PEs for the remote PEs to switch traffic to the PWs to PE 2. In this situation, PE 1 drops the packets that the remote PEs send before they are notified of the local unreachable event. To resolve this issue, enable local FRR on PE 1 and PE 2. When receiving packets from the remote PEs after its AC fails, PE 1 forwards the packets to PE 2 over the bypass PW to prevent traffic loss.

On an EVPN instance, EVPN instance-specific local FRR configuration takes precedence over global local FRR configuration.

Examples

# Enable local FRR on the EVPN instance of cross-connect group aa.

<Sysname> system-view

[Sysname] xconnect-group aa

[Sysname-xcg-1] evpn encapsulation mpls

[Sysname-xcg-1-evpn-mpls] evpn frr local enable

Examples

evpn multihoming vpws-frr local

evpn frr remote

Use evpn frr remote enable to enable remote FRR on an EVPN instance.

Use evpn frr remote disable to disable remote FRR on an EVPN instance and delete existing backup PWs.

Use undo evpn frr remote to restore the default.

Syntax

evpn frr remote [ disable | enable ]

undo evpn frr remote

Default

An EVPN instance uses the global remote FRR configuration of EVPN VPWS.

Views

Cross-connect group EVPN instance view

Predefined user roles

network-admin

Usage guidelines

Remote FRR enables two PEs on an EVPN VPWS network to set up a primary PW and a backup PW between them to ensure high availability. The PEs use the primary PW to forward traffic as long as it is available. When the primary PW fails, the PEs switch traffic to the backup PW.

On an EVPN instance, EVPN instance-specific remote FRR configuration takes precedence over global remote FRR configuration.

Examples

# Enable remote FRR on the EVPN instance of cross-connect group xcga.

<Sysname> system-view

[Sysname] xconnect-group xcga

[Sysname-xcg-xcga] evpn encapsulation mpls

[Sysname-xcg-xcga-evpn-mpls] evpn frr remote enable

Examples

evpn vpws-frr remote

evpn local-service-id remote-service-id

Use evpn local-service-id remote-service-id to create an EVPN PW.

Use undo evpn local-service-id remote-service-id to delete an EVPN PW.

Syntax

evpn local-service-id local-service-id remote-service-id remote-service-id [ tunnel-policy tunnel-policy-name ] [ pw-class class-name ]

undo evpn local-service-id local-service-id remote-service-id remote-service-id

Default

No EVPN PWs exist.

Views

Cross-connect view

Predefined user roles

network-admin

Parameters

local-service-id: Specifies a local service ID in the range of 1 to 16777215.

remote-service-id: Specifies a remote service ID in the range of 1 to 16777215.

tunnel-policy tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters. If you do not specify a tunnel policy, the PW uses the default tunnel policy.

pw-class class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters. You can specify a PW class to configure the PW data encapsulation type and control word for the PW. If you do not specify a PW class, the PW data encapsulation type is determined by the link type of the interface. The control word feature is not supported for PW data encapsulation types that do not require using control word.

Usage guidelines

You can use the evpn local-service-id remote-service-id command to concatenate two EVPN PWs on the same cross-connect.

To modify an EVPN PW, first use the undo evpn local-service-id remote-service-id command to delete the original EVPN PW.

You cannot use this command and the peer command together in cross-connect view.

Examples

# Create an EVPN PW, and specify tunnel policy aaa and PW class bbb for it.

<Sysname> system-view

[Sysname] xconnect-group aaa

[Sysname-xcg-aaa] connection ac2pw

[Sysname-xcg-aaa- ac2pw] evpn local-service-id 2 remote-service-id 4 tunnel-policy aaa pw-class bbb

evpn mpls routing-enable

Use evpn mpls routing-enable to enable EVPN to advertise the routes of a VPN instance.

Use undo evpn mpls routing-enable to disable EVPN from advertising the routes of a VPN instance.

Syntax

evpn mpls routing-enable

undo evpn mpls routing-enable

Default

EVPN does not advertise the routes of VPN instances.

Views

VPN instance IPv4 address family view

VPN instance IPv6 address family view

Predefined user roles

network-admin

Usage guidelines

This command enables devices to exchange the routes of a VPN instance by using IP prefix advertisement routes with MPLS encapsulation. After you execute this command for a VPN instance, the device advertises the routes of the VPN instance through IP prefix advertisement routes. When receiving IP prefix advertisement routes with MPLS encapsulation, the device adds the routes that belong to the VPN instance to the routing table.

For EVPN to add MPLS encapsulation to IP prefix advertisement routes, you must execute the peer advertise encap-type mpls command in BGP EVPN address family view.

Examples

# Enable EVPN to advertise the IPv4 routes of VPN instance vpna.

<Sysname> system-view

[Sysname] ip vpn-instance vpna

[Sysname-vpn-instance-vpna] address-family ipv4

[Sysname-vpn-ipv4-vpna] evpn mpls routing-enable

Related commands

peer advertise encap-type mpls

evpn multihoming advertise disable

Use evpn multihoming advertise disable to disable advertisement of EVPN multihoming routes and withdraw the EVPN multihoming routes that have been advertised to remote sites.

Use undo evpn multihoming advertise disable to restore the default.

Syntax

evpn multihoming advertise disable

undo evpn multihoming advertise disable

Default

The device advertises EVPN multihoming routes.

Views

System view

Predefined user roles

network-admin

Usage guidelines

EVPN multihoming routes include Ethernet auto-discovery routes and Ethernet segment routes.

In a multihomed EVPN network, execute this command on a redundant PE before you reboot it. This operation allows other devices to refresh their EVPN routing table to prevent traffic interruption caused by the reboot.

Examples

# Disable advertisement of EVPN multihoming routes and withdraw the EVPN multihoming routes that have been advertised to remote sites.

<Sysname> system-view

[Sysname] evpn multihoming advertise disable

evpn multihoming advertise ignore-ethernet-tag

Use evpn multihoming advertise ignore-ethernet-tag to enable the device to ignore the Ethernet tag when advertising Ethernet auto-discovery routes and MAC/IP advertisement routes.

Use undo evpn multihoming advertise ignore-ethernet-tag to restore the default.

Syntax

evpn multihoming advertise ignore-ethernet-tag

undo evpn multihoming advertise ignore-ethernet-tag

Default

By default, the device advertises Ethernet auto-discovery routes and MAC/IP advertisement routes that carry Ethernet tags.

Views

System view

Predefined user roles

network-admin

Usage guidelines

This command is available only in the EVPN VPLS multihoming scenario. Use this command on the redundant PEs at a dualhomed site.

This command enables the device to do the following:

·     Withdraw the Ethernet auto-discovery routes and MAC/IP advertisement routes that have been advertised.

·     Set the Ethernet tag to 0 for the Ethernet auto-discovery routes and MAC/IP advertisement routes and re-advertise them.

After you configure ESIs for ACs on the redundant edge devices at a dualhomed site, the edge devices advertise Ethernet auto-discovery routes and MAC/IP advertisement routes that carry Ethernet tags. If the remote peers are unable to identify Ethernet tags, you must execute this command on the redundant edge devices to enable communication with the peers.

When you use this command, follow these restrictions and guidelines:

·     After you assign an ESI to a Layer 2 Ethernet or aggregate interface, you must map the Ethernet service instances created on the interface to different VSIs. If two interfaces use the same ESI, you must map the Ethernet service instances created on them to different VSIs.

·     After you assign an ESI to a Layer 3 main interface, its subinterfaces inherit the ESI if they do not have one. In addition, you must map two subinterfaces to different VSIs if the subinterfaces have the same ESI.

Examples

# Enable the device to ignore the Ethernet tag when advertising Ethernet auto-discovery routes and MAC/IP advertisement routes.

<Sysname> system-view

[Sysname] evpn multihoming advertise ignore-ethernet-tag

Related commands

esi

evpn multihoming timer df-delay

Use evpn multihoming timer df-delay to set the DF election delay.

Use undo evpn multihoming timer df-delay to restore the default.

Syntax

evpn multihoming timer df-delay delay-value

undo evpn multihoming timer df-delay

Default

The DF election delay is 3 seconds.

Views

System view

Predefined user roles

network-admin

Parameters

delay-value: Specifies the DF election delay, in the range of 1 to 1200 seconds.

Usage guidelines

DF election delay defines the minimum interval allowed between two DF elections.

The DF election can be triggered by site-facing interface status changes, redundant PE membership changes, and interface ESI changes. To prevent frequent DF elections from degrading network performance, set the DF election delay.

Examples

# Set the DF election delay to 5 seconds.

<Sysname> system-view

[Sysname] evpn multihoming timer df-delay 5

evpn multihoming vpws-frr local

Use evpn multihoming vpws-frr local to enable local FRR globally for EVPN VPWS.

Use undo evpn multihoming vpws-frr local to disable local FRR globally for EVPN VPWS and delete existing bypass PWs.

Syntax

evpn multihoming vpws-frr local

undo evpn multihoming vpws-frr local

Default

Local FRR is disabled globally for EVPN VPWS.

Views

System view

Predefined user roles

network-admin

Usage guidelines

Local FRR enables two PEs at a multihomed EVPN VPWS network site to set up a bypass PW between them. This feature helps reduce the traffic loss caused by AC failure.

At a multihomed EVPN VPWS network site, CE 1 is dualhomed to PE 1 and PE 2, and PE 1 is the DF. When the AC on PE 1 fails, PE 1 advertises the local unreachable event to PE 2 and remote PEs for the remote PEs to switch traffic to the PWs to PE 2. In this situation, PE 1 drops the packets that the remote PEs send before they are notified of the local unreachable event. To resolve this issue, enable local FRR on PE 1 and PE 2. When receiving packets from the remote PEs after its AC fails, PE 1 forwards the packets to PE 2 over the bypass PW to prevent traffic loss.

On an EVPN instance, EVPN instance-specific local FRR configuration takes precedence over global local FRR configuration.

If you have executed the evpn frr local enable command on an EVPN instance, the undo evpn multihoming vpws-frr local command does not delete the bypass PW of the EVPN instance.

Examples

# Enable local FRR globally for EVPN VPWS.

<Sysname> system-view

[Sysname] evpn multihoming vpws-frr local

Examples

evpn frr local (cross-connect group EVPN instance view)

evpn redundancy-mode

Use evpn redundancy-mode to set the redundancy mode on an interface.

Use undo evpn redundancy-mode to restore the default.

Syntax

evpn redundancy-mode { all-active | single-active }

undo evpn redundancy-mode

Default

The all-active redundancy mode is used.

Views

Interface view

Predefined user roles

network-admin

Parameters

all-active: Specifies the all-active mode.

single-active: Specifies the single-active mode.

Usage guidelines

This command is supported only by a multihomed EVPN VPWS network.

The redundant PEs at a dualhomed site each establish an EVPN PW to a remote PE. To use one PW as a backup of the other PW, use the single-active mode. To distribute traffic across the PWs for load sharing, use the all-active mode.

As a best practice, set the same redundancy mode on the interfaces that act as ACs or are configured with ACs on the redundant PEs at a multihomed site.

Make sure the interface where you execute this command is assigned an ESI.

Examples

# Set the redundancy mode to single-active on HundredGigE 1/0/1.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] evpn redundancy-mode single-active

Related commands

esi

evpn timer ad-delay

Use evpn timer ad-delay to set the advertisement delay timer for Ethernet auto-discovery routes.

Use undo evpn timer ad-delay to delete the advertisement delay setting for Ethernet auto-discovery routes.

Syntax

evpn timer ad-delay delay-time

undo evpn timer ad-delay

Default

Advertisement of Ethernet auto-discovery routes is not delayed.

Views

Interface view

Predefined user roles

network-admin

Parameters

delay-time: Specifies a delay value in the range of 3 to 1200 seconds.

Usage guidelines

The advertisement delay timer for Ethernet auto-discovery routes helps reduce the traffic loss caused by a PE reboot at a multihomed EVPN VPLS network site.

At a multihomed EVPN VPLS network site, CE 1 is dualhomed to PE 1 and PE 2 through an aggregate link or smart trunk, and PE 3 is at a remote site. PE 1 forwards all traffic sent from CE 1 to the remote site, and PE 3 forwards the traffic that the remote site sends to CE 1 to both PE 1 and PE 2. When PE 1 reboots, it advertises Ethernet auto-discovery routes that carry next hop information to PE 3. If PE 3 has not received the MAC/IP advertisement routes advertised by PE 2 when receiving the Ethernet auto-discovery routes, it will forward traffic to both PE 1 and PE 2. In this situation, PE 1 does not have MAC address entries for CE 1 and drops the traffic.

To resolve this issue, set the advertisement delay timer for Ethernet auto-discovery routes on the CE-facing interface of PE 1. This timer allows PE 3 to receive the MAC/IP advertisement routes advertised by PE 2 before the Ethernet auto-discovery routes advertised by PE 1 and update its MAC address table timely.

Examples

# On HundredGigE 1/0/1, set the advertisement delay timer for Ethernet auto-discovery routes to 300 seconds.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] evpn timer ad-delay 300

evpn track peer

Use evpn track peer to enable the device to monitor the BGP peer status of another local edge device.

Use undo evpn track peer to restore the default.

Syntax

evpn track peer peer-address

undo evpn track peer

Default

At a multihomed site, the device does not monitor the BGP peer status of the other edge devices.

Views

Interface view

Predefined user roles

network-admin

Parameters

peer-address: Specifies a PE by its IPv4 address.

Usage guidelines

Use this command on the CE-facing interfaces of the edge devices multihomed to a site to prevent device reboots from causing inter-site forwarding failure.

This command excludes unavailable edge devices from DF election at a multihomed site. After an edge device recovers from failure and brings up its CE-facing interface, it starts a delay timer and checks the status of the BGP peer specified in this command. If the BGP peer comes up before the timer expires, the edge device advertises Ethernet segment routes to the peer. If the BGP peer is still down when the timer expires, the edge device does not advertise Ethernet segment routes to the peer. The edge devices then perform DF election based on the Ethernet segment routes they have received.

Examples

# On HundredGigE 1/0/1, enable the device to monitor the BGP peer at 1.1.1.1.

<Sysname> system-view

[Sysname] interface gigabitethernet 1/0/1

[Sysname-GigabitEthernet1/0/1] evpn tack peer 1.1.1.1

evpn track bfd

Use evpn track bfd to enable the device to monitor the status of a static BFD session on an AC-side interface for fast DF/BDF switchover.

Use undo evpn track bfd to restore the default.

Syntax

evpn track bfd session-name

undo evpn track bfd

Default

The device does not monitor the status of static BFD sessions.

Views

Layer 3 Ethernet interface view

Layer 3 aggregate interface view

Predefined user roles

network-admin

Parameters

session-name: Specifies a static BFD session name, a case-sensitive string of 1 to 15 characters.

Usage guidelines

Use this command on a BDF for fast DF/BDF switchover.

At a multihomed site of an EVPN VPWS network, a BDF cannot take over the DF role immediately when an AC on a DF fails, and traffic loss will occur as a result. To resolve this issue, set up a static BFD session between the DF and BDF. You must configure the static BFD session to monitor the status of the local AC on the DF and enable the BDF to monitor the status of the session. When the AC on the DF fails, the static BFD session goes down, and the BDF can fast take over the DF role to reduce traffic loss.

To modify the static BFD session monitored on an interface, first use the undo evpn track bfd command to remove the existing static BFD session configuration.

Examples

# Enable the device to monitor the status of static BFD session abc on HundredGigE 1/0/1 for fast DF/BDF switchover.

<Sysname> system-view

[Sysname] interface hundredgige 1/0/1

[Sysname-HundredGigE1/0/1] evpn tack bfd abc

Related commands

bfd static (High Availability Command Reference)

evpn vpws-frr remote

Use evpn vpws-frr remote to enable remote FRR globally for EVPN VPWS.

Use undo evpn vpws-frr remote to disable remote FRR globally for EVPN VPWS and delete the existing backup PWs.

Syntax

evpn vpws-frr remote

undo evpn vpws-frr remote

Default

Remote FRR is disabled globally for EVPN VPWS.

Views

System view

Predefined user roles

network-admin

Usage guidelines

Remote FRR enables two PEs on an EVPN VPWS network to set up a primary PW and a backup PW between them to ensure high availability. The PEs use the primary PW to forward traffic as long as it is available. When the primary PW fails, the PEs switch traffic to the backup PW.

On an EVPN instance, EVPN instance-specific remote FRR configuration takes precedence over global remote FRR configuration.

If you have executed the evpn frr remote enable command on an EVPN instance, the undo evpn vpws-frr remote command does not delete the backup PWs of the EVPN instance.

Examples

# Enable remote FRR globally for EVPN VPWS.

<Sysname> system-view

[Sysname] evpn vpws-frr remote

Examples

evpn frr remote

export route-policy

Use export route-policy to apply an export routing policy to EVPN on a VPN instance.

Use undo export route-policy to restore the default.

Syntax

export route-policy route-policy

undo export route-policy

Default

No export routing policy is applied to EVPN on a VPN instance.

Views

VPN instance EVPN view

Predefined user roles

network-admin

Parameters

route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.

Usage guidelines

You can specify an export routing policy to filter advertised routes or modify their route attributes for EVPN.

If you execute this command multiple times, the most recent configuration takes effect.

EVPN can use an export routing policy specified in VPN instance view or in VPN instance EVPN view. Export routing policy configuration in VPN instance EVPN view takes precedence over that in VPN instance view.

Examples

# Apply export routing policy poly-1 to EVPN on VPN instance vpn1.

<Sysname> system-view

[Sysname] ip vpn-instance vpn1

[Sysname-vpn-instance-vpn1] address-family evpn

[Sysname-vpn-evpn-vpn1] export route-policy poly-1

Related commands

route-policy (Layer 3—IP Routing Command Reference)

ignore-ac-state

Use ignore-ac-state enable to enable a VSI to ignore the state of ACs.

Use ignore-ac-state disable to disable a VSI from ignoring the state of ACs.

Use undo ignore-ac-state to restore the default.

Syntax

ignore-ac-state { enable | disable }

undo ignore-ac-state

Default

A VSI uses the global AC state ignore configuration.

Views

VSI view

Predefined user roles

network-admin

Usage guidelines

This command helps reduce the traffic loss caused by AC failure at a multihomed EVPN VPLS network site that uses single-active redundancy mode.

At a multihomed EVPN VPLS network site that uses single-active redundancy mode, CE 1 is dualhomed to PE 1 and PE 2 through a smart trunk. PE 1 is the primary PE, and PE 2 is the secondary PE. When the AC on PE 1 fails, PE 1 and PE 2 act as follows:

·     PE 1 withdraws advertised Ethernet auto-discovery routes.

·     PE 2 brings up its AC and advertises Ethernet auto-discovery routes to remote PEs.

The remote PEs switch traffic to the paths to PE 2 only after receiving the Ethernet auto-discovery routes advertised by PE 2, and traffic loss occurs during path switchover. To resolve this issue, enable VSIs to ignore the state of ACs on PE 2. This feature allows PE 2 to advertise Ethernet auto-discovery routes to remote PEs regardless of the state of ACs and speeds up path switchover when the AC on PE 1 fails.

On a VSI, VSI-specific AC state ignore configuration takes precedence over global AC state ignore configuration.

Examples

# Enable VSI vpna to ignore the state of ACs.

<Sysname> system-view

[Sysname] vsi vpna

[Sysname-vsi-vpna] ignore-ac-state enable

Examples

l2vpn ignore-ac-state

import route-policy

Use import route-policy to apply an import routing policy to EVPN on a VPN instance.

Use undo import route-policy to restore the default.

Syntax

import route-policy route-policy

undo import route-policy

Default

No import routing policy is applied to EVPN on a VPN instance. The VPN instance accepts a route when the route targets of the route match local import route targets.

Views

VPN instance EVPN view

Predefined user roles

network-admin

Parameters

route-policy: Specifies a routing policy by its name, a case-sensitive string of 1 to 63 characters.

Usage guidelines

You can specify an import routing policy to filter received routes or modify their route attributes for EVPN.

If you execute this command multiple times, the most recent configuration takes effect.

EVPN can use an import routing policy specified in VPN instance view or in VPN instance EVPN view. Import routing policy configuration in VPN instance EVPN view takes precedence over that in VPN instance view.

Examples

# Apply import routing policy poly-1 to EVPN on VPN instance vpn1.

<Sysname> system-view

[Sysname] ip vpn-instance vpn1

[Sysname-vpn-instance-vpn1] address-family evpn

[Sysname-vpn-evpn-vpn1] import route-policy poly-1

Related commands

route-policy (Layer 3—IP Routing Command Reference)

l2vpn ignore-ac-state

Use l2vpn ignore-ac-state to enable VSIs to ignore the state of ACs globally.

Use undo l2vpn ignore-ac-state to disable VSIs from ignoring the state of ACs globally.

Syntax

l2vpn ignore-ac-state

undo l2vpn ignore-ac-state

Default

VSIs does not ignore the state of ACs.

Views

System view

Predefined user roles

network-admin

Usage guidelines

This command helps reduce the traffic loss caused by AC failure at a multihomed EVPN VPLS network site that uses single-active redundancy mode.

At a multihomed EVPN VPLS network site that uses single-active redundancy mode, CE 1 is dualhomed to PE 1 and PE 2 through a smart trunk. PE 1 is the primary PE, and PE 2 is the secondary PE. When the AC on PE 1 fails, PE 1 and PE 2 act as follows:

·     PE 1 withdraws advertised Ethernet auto-discovery routes.

·     PE 2 brings up its AC and advertises Ethernet auto-discovery routes to remote PEs.

The remote PEs switch traffic to the paths to PE 2 only after receiving the Ethernet auto-discovery routes advertised by PE 2, and traffic loss occurs during path switchover. To resolve this issue, enable VSIs to ignore the state of ACs on PE 2. This feature allows PE 2 to advertise Ethernet auto-discovery routes to remote PEs regardless of the state of ACs and speeds up path switchover when the AC on PE 1 fails.

On a VSI, VSI-specific AC state ignore configuration takes precedence over global AC state ignore configuration.

Examples

# Enable VSIs to ignore the state of ACs globally.

<Sysname> system-view

[Sysname] l2vpn ignore-ac-state

Examples

ignore-ac-state

mac-advertising disable

Use mac-advertising disable to disable MAC address advertisement and withdraw advertised MAC addresses.

Use undo mac-advertising disable to restore the default.

Syntax

mac-advertising disable

undo mac-advertising disable

Default

MAC address advertisement is enabled.

Views

VSI EVPN instance view

Predefined user roles

network-admin

Usage guidelines

The MAC information and ARP information advertised by the device overlap. To avoid duplication, use this command to disable MAC address advertisement and withdraw the MAC addresses advertised to remote devices.

Examples

# Disable MAC address advertisement and withdraw advertised MAC addresses for an EVPN instance.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls] mac-advertising disable

peer advertise encap-type mpls

Use peer advertise encap-type mpls to enable MPLS encapsulation for the IP prefix advertisement routes advertised to a peer or peer group.

Use undo peer advertise encap-type mpls to disable MPLS encapsulation for the IP prefix advertisement routes advertised to a peer or peer group.

Syntax

peer { group name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } advertise encap-type mpls

undo peer { group name | ipv4-address [ mask-length ] | ipv6-address [ prefix-length ] } advertise encap-type mpls

Default

IP prefix advertisement routes use VXLAN encapsulation.

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.

ipv6-address: Specifies a peer by its IPv6 address. The peer must exist.

prefix-length: Specifies a prefix length in the range of 0 to 128. To specify a subnet, you must specify both the ipv6-address and prefix-length arguments.

Usage guidelines

Use this command to enable the device to advertise IP prefix advertisement routes with MPLS encapsulation over an L3VPN network.

Execute this command on the edge nodes of the EVPN L3VPN network and RRs. On the edge nodes, you must use this command together with the evpn mpls routing-enable command.

Examples

# Enable MPLS encapsulation for the IP prefix advertisement routes advertised to 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 advertise encap-type mpls

Related commands

evpn mpls routing-enable

policy vpn-target

Use policy vpn-target to enable route target filtering for BGP EVPN routes.

Use undo policy vpn-target to disable route target filtering for BGP EVPN routes.

Syntax

policy vpn-target

undo policy vpn-target

Default

Route target filtering is enabled for BGP EVPN routes.

Views

BGP EVPN address family view

Predefined user roles

network-admin

Usage guidelines

When route target filtering is enabled for BGP EVPN routes, the EVPN routing table accepts only BGP EVPN routes whose export route targets match the local import route targets. If the device must save all BGP EVPN routes, use the undo policy vpn-target command to disable route target filtering for BGP EVPN routes.

Examples

# Disable route target filtering for BGP EVPN routes.

<Sysname> system-view

[Sysname] bgp 100

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

[Sysname-bgp-default-evpn] undo policy vpn-target

pw-class

Use pw-class to specify a PW class for a VSI EVPN instance.

Use undo pw-class to restore the default.

Syntax

pw-class class-name

undo pw-class

Default

No PW class is specified for a VSI EVPN instance.

Views

VSI EVPN instance view

Predefined user roles

network-admin

Parameters

class-name: Specifies a PW class by its name, a case-sensitive string of 1 to 19 characters.

Usage guidelines

This command is supported only by EVPN instances that use MPLS encapsulation.

The specified PW class will be used to establish all PWs on the VSI EVPN instance.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify PW class pw100 for the EVPN instance on VSI vpna.

<Sysname> system-view

[Sysname] vsi vpna

[Sysname-vsi-aa] evpn encapsulation mpls

[Sysname-vsi-aa-evpn-mpls] pw-class pw100

route-distinguisher

Use route-distinguisher to configure an RD for an EVPN instance.

Use undo route-distinguisher to restore the default.

Syntax

In cross-connect group EVPN instance view:

route-distinguisher route-distinguisher

undo route-distinguisher

In VSI EVPN instance view:

route-distinguisher { route-distinguisher | auto router-id }

undo route-distinguisher

Default

No RD is configured for an EVPN instance.

Views

Cross-connect group EVPN instance view

VSI EVPN instance view

Predefined user roles

network-admin

Parameters

route-distinguisher: Specifies an RD, a string of 3 to 21 characters. The RD cannot be all zeros and can use one of the following formats:

·     16-bit AS number:32-bit user-defined number. For example, 101:3.

·     32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.

·     32-bit AS number:16-bit user-defined number. For example, 65536:1. The AS number must be equal to or greater than 65536.

auto router-id: Automatically generates an RD based on the router ID in the Router ID:N format. The initial value of N is 1. If Router ID:N is already in use, the system increases the value of N by 1 until the RD is available.

Usage guidelines

EVPN uses MP-BGP to advertise BGP EVPN routes for automatic PE discovery, MAC reachability information advertisement, and host route advertisement. MP-BGP uses the RD to differentiate BGP EVPN routes of different EVPN instances.

To modify an RD, first execute the undo route-distinguisher command to remove the original RD.

Examples

# Configure 22:1 as the RD of the EVPN instance on VSI aaa.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls] route-distinguisher 22:1

rr-filter

Use rr-filter to create a route reflector (RR) reflection policy.

Use undo rr-filter to restore the default.

Syntax

rr-filter { ext-comm-list-number | ext-comm-list-name }

undo rr-filter

Default

An RR does not filter reflected BGP EVPN routes.

Views

BGP EVPN address family view

Predefined user roles

network-admin

Parameters

ext-comm-list-number: Specifies an extended community attribute list by its number in the range of 1 to 199.

ext-comm-list-name: Specifies an extended community attribute list by its name, a case-sensitive string of 1 to 63 characters.

Usage guidelines

This command enables an RR to reflect only received BGP EVPN routes that match the attributes in the specified extended community attribute list.

If a cluster contains multiple RRs, you can configure different reflection policies on the RRs for load sharing among the RRs.

For more information about the extended community attribute list, see Layer 3—IP Routing Configuration Guide.

Examples

# Configure a reflection policy for the device to reflect BGP EVPN routes that match extended community attribute list 10.

<Sysname> system-view

[Sysname] bgp 100

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

[Sysname-bgp-default-evpn] rr-filter 10

Related commands

ip extcommunity-list (Layer 3—IP Routing Command Reference)

tunnel-policy

Use tunnel-policy to specify a tunnel policy for a VSI EVPN instance.

Use undo tunnel-policy to restore the default.

Syntax

tunnel-policy tunnel-policy-name

undo tunnel-policy

Default

No tunnel policy is specified for a VSI EVPN instance.

Views

VSI EVPN instance view

Predefined user roles

network-admin

Parameters

tunnel-policy-name: Specifies a tunnel policy by its name, a case-sensitive string of 1 to 19 characters.

Usage guidelines

This command is supported only by EVPN instances that use MPLS encapsulation.

The PWs of the VSI EVPN instance use the specified tunnel policy to select public tunnels.

If you do not specify a tunnel policy or specify a nonexistent tunnel policy, the default tunnel policy applies. The default tunnel policy selects only one public tunnel for a PW in this order: LSP tunnel, GRE tunnel, CRLSP tunnel, and SRLSP tunnel.

If you execute this command multiple times, the most recent configuration takes effect.

Examples

# Specify tunnel policy policy1 for the EVPN instance on VSI aa.

<Sysname> system-view

[Sysname] vsi aa

[Sysname-vsi-aa] evpn encapsulation mpls

[Sysname-vsi-aa-evpn-mpls] tunnel-policy policy1

vpn-route cross multipath

Use vpn-route cross multipath to enable ECMP VPN route redistribution.

Use undo vpn-route cross multipath to disable ECMP VPN route redistribution.

Syntax

vpn-route cross multipath

undo vpn-route cross multipath

Default

ECMP VPN route redistribution is disabled. If multiple routes have the same prefix and RD, BGP only imports the optimal route into the EVPN routing table.

Views

BGP EVPN address family view

Predefined user roles

network-admin

Usage guidelines

ECMP VPN route redistribution enables BGP to import all routes that have the same prefix and RD into the EVPN routing table.

Examples

# Enable ECMP VPN route redistribution.

<Sysname> system-view

[Sysname] bgp 100

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

[Sysname-bgp-default-evpn] vpn-route cross multipath

vpn-target

Use vpn-target to configure route targets for EVPN.

Use undo vpn-target to delete route targets for EVPN.

Syntax

In VSI EVPN instance view:

vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]

undo vpn-target { vpn-target&<1-8> | all } [ both | export-extcommunity | import-extcommunity ]

In cross-connect group EVPN instance view:

vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]

undo vpn-target { all | vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ] }

Default

EVPN does not have route targets.

Views

VSI EVPN instance view

Cross-connect group EVPN instance view

Predefined user roles

network-admin

Parameters

vpn-target&<1-8>: Specifies a space-separated list of up to eight route targets. Each route target is a string of 3 to 21 characters in one of the following formats:

·     16-bit AS number:32-bit user-defined number. For example, 101:3.

·     32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1.

·     32-bit AS number:16-bit user-defined number. For example, 65536:1. The AS number must be equal to or greater than 65536.

both: Uses the specified route targets as both import and export targets. If you do not specify the both, export-extcommunity, or import-extcommunity keyword, the both keyword applies.

export-extcommunity: Uses the specified route targets as export targets.

import-extcommunity: Uses the specified route targets as import targets.

all: Specifies all route targets.

Usage guidelines

EVPN uses MP-BGP to advertise BGP EVPN routes for automatic PE discovery, MAC reachability information advertisement, and host route advertisement. MP-BGP uses route targets to control the advertisement and acceptance of BGP EVPN routes.

A PE sets the export targets for BGP EVPN routes before advertising the routes to remote PEs. The PE checks the export targets of BGP EVPN routes from remote PEs and imports only BGP EVPN routes of which the export targets match the local import targets.

If you execute this command multiple times, all configured route targets take effect.

Examples

# Configure import route targets 10:1, 100:1, and 1000:1 for an EVPN instance.

<Sysname> system-view

[Sysname] vsi aaa

[Sysname-vsi-aaa] evpn encapsulation mpls

[Sysname-vsi-aaa-evpn-mpls] vpn-target 10:1 100:1 1000:1 import-extcommunity

  • 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
新华三官网