CloudEngine S3700, S5700 and S6700 V600R022C10 Command Reference
VXLAN Configuration Commands
- advertise l2vpn evpn (BGP multi-instance VPN instance IPv4 address family view)
- advertise l2vpn evpn best-route valid-routes (BGP multi-instance VPN instance IPv4 address family view)
- alarm-threshold route
- assign forward nvo3 udp src-port extend enable
- bridge-domain
- bridge-domain (Layer 2 sub interface view)
- description (Bridge domain view)
- description (VNI peer view)
- display bridge-domain
- display bridge-domain statistics
- display fwm vxlan statistics
- display vxlan peer
- display vxlan statistics
- display vxlan troubleshooting
- display vxlan tunnel
- display vxlan vni
- encapsulation default
- encapsulation dot1q
- encapsulation qinq
- encapsulation untag
- hub-mode enable
- irb-reoriginate irb2ip
- irb-reoriginated without-bridge-domain disable(Global EVPN configuration view)
- irb-reoriginated without-split-group disable(Global EVPN configuration view)
- isolate enable
- isolate remote enable
- l2 binding vlan
- mac rib-only
- mac-address (NVE interface view)
- mac-address static (System view)
- peer (VNI view)
- peer advertise route-reoriginated evpn (BGP multi-instance EVPN view)
- peer advertise route-reoriginated evpn (BGP multi-instance EVPN view) (group)
- peer import reoriginate (BGP multi-instance EVPN view)
- peer import reoriginate (BGP multi-instance EVPN view) (group)
- pip-source peer bypass
- qos phb marking dscp disable
- reserved for vxlan bypass
- reset bridge-domain statistics
- reset fwm vxlan statistics
- reset vxlan statistics
- rewrite (Layer 2 sub-interface view)
- rewrite no-action
- route-distinguisher (EVPN instance view)
- set bridge-domain resource super-mode
- source (NVE interface view)
- statistic enable (Bridge domain view)
- statistic enable (VNI view)
- vni (NVE interface view)
- vni (System view)
- vni head-end peer-list protocol bgp
- vni mcast-group
- vxlan anycast-gateway enable
- vxlan statistics enable
- vxlan tunnel-status track exact-route
- vxlan vni
- vxlan vni (Bridge domain view)
- vxlan vni (VPN instance view)
advertise l2vpn evpn (BGP multi-instance VPN instance IPv4 address family view)
Function
The advertise l2vpn evpn command enables a device to advertise IP routes from a VPN instance to its EVPN instance.
The undo advertise l2vpn evpn command restores the default configuration..
By default, a device is disabled from advertising IP routes from a VPN instance to its EVPN instance.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
advertise l2vpn evpn [ import-route-multipath ]
undo advertise l2vpn evpn [ import-route-multipath ]
Parameters
Parameter | Description | Value |
---|---|---|
import-route-multipath |
Advertises all routes with the same destination address in a VPN instance to an EVPN instance. |
- |
Usage Guidelines
After VTEPs establish VXLAN tunnels through IP prefix routes, run the advertise l2vpn evpn command to enable a VTEP to advertise host routes from a VPN instance to its EVPN instance. The VTEP then sends host routes to the remote VTEP through the BGP EVPN peer relationship.
By default, the VPN instance local cross-route is not sent to the EVPN instance. To solve the problem of mutual access between different VRFs, you can enable the VPN instance to publish the local cross-connect function to the EVPN instance, and send the local cross-route collected by the VPN instance To the EVPN instance, and then send it to the remote device through the BGP EVPN peer relationship. In BGP VPN multi-instance scenarios, routes cannot be locally leaked between BGP VPN instances. For example, if VRF1 is a common BGP VPN instance and VRF2 is a BGP VPN multi-instance, routes imported or remotely leaked to VRF1 cannot be locally leaked to VRF2.Example
<HUAWEI> system-view [HUAWEI] ip vpn-instance vpna [HUAWEI-vpn-instance-vpna] route-distinguisher 1:1 [HUAWEI-vpn-instance-vpna-af-ipv4] quit [HUAWEI-vpn-instance-vpna] quit [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] ipv4-family vpn-instance vpna [HUAWEI-bgp-instance-evrf-vpna] advertise l2vpn evpn
advertise l2vpn evpn best-route valid-routes (BGP multi-instance VPN instance IPv4 address family view)
Function
The advertise l2vpn evpn valid-routes command enables a device to advertise only valid IP routes from a VPN instance to its EVPN instance.
The advertise l2vpn evpn best-route command enables a device to advertise only best IP routes from a VPN instance to its EVPN instance.
The undo advertise l2vpn evpn command restores the default configuration.
By default, a device is disabled from advertising IP routes from a VPN instance to its EVPN instance.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
advertise l2vpn evpn { best-route | valid-routes } [ import-route-multipath ]
undo advertise l2vpn evpn { best-route | valid-routes } [ import-route-multipath ]
Parameters
Parameter | Description | Value |
---|---|---|
import-route-multipath |
Advertises all routes with the same destination address in a VPN instance to an EVPN instance. |
- |
Usage Guidelines
After VTEPs establish VXLAN tunnels through IP prefix routes, run the advertise l2vpn evpn command to enable a VTEP to advertise host routes from a VPN instance to its EVPN instance. The VTEP then sends host routes to the remote VTEP through the BGP EVPN peer relationship.
By default, the device advertises all routes in the BGP VPN routing table to the BGP EVPN routing table including invalid routes. To prevent advertising the invalid routes, you need to specify valid-routes parameter. If you want only optimal BGP VPN routes to be advertised to BGP EVPN routing table, specify best-route parameter. To implement even load balancing, run the advertise l2vpn evpn command with the import-route-multipath parameter specified. This configuration allows the VPN instance to advertise all the routes with the same destination address to the EVPN instance. By default, the VPN instance local cross-route is not sent to the EVPN instance. To solve the problem of mutual access between different VPN instances, you can enable the VPN instance to publish the local cross-connect function to the EVPN instance, and send the local cross-route collected by the VPN instance To the EVPN instance, and then send it to the remote device through the BGP EVPN peer relationship. In BGP VPN multi-instance scenarios, routes cannot be locally leaked between BGP VPN instances. For example, if VRF1 is a common BGP VPN instance and VRF2 is a BGP VPN multi-instance, routes imported or remotely leaked to VRF1 cannot be locally leaked to VRF2.Example
<HUAWEI> system-view [HUAWEI] ip vpn-instance vpna [HUAWEI-vpn-instance-vpna] route-distinguisher 1:1 [HUAWEI-vpn-instance-vpna-af-ipv4] quit [HUAWEI-vpn-instance-vpna] quit [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] ipv4-family vpn-instance vpna [HUAWEI-bgp-instance-evrf-vpna] advertise l2vpn evpn valid-routes
alarm-threshold route
Function
The alarm-threshold route command sets a threshold and log recovery percentage for the number of EVPN routes.
The undo alarm-threshold route command cancels the settings.
By default, the threshold and log recovery percentage for the number of EVPN routes are not configured.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
alarm-threshold route route-number [ recovery-percentage percentage ]
undo alarm-threshold route route-number [ recovery-percentage percentage ]
Parameters
Parameter | Description | Value |
---|---|---|
route-number |
Specifies the threshold for the number of EVPN routes. |
The value is an integer ranging from 1 to 4294967295. |
recovery-percentage percentage |
Specifies the log recovery percentage. |
The value is an integer ranging from 1 to 95. After the threshold for the number of EVPN routes is set, the log recovery percentage is 80 by default. |
Usage Guidelines
Usage Scenario
When a distributed VXLAN gateway is deployed, EVPN serves as the control plan to deliver routes. As more and more hosts access the gateway, routes stored on the control plane increase greatly, consuming a lot of memory resources. To better monitor the impact of an increase in route quantity on memory and prevent device restart caused by memory insufficiency, run the alarm-threshold route command to set a threshold for the number of routes. When the number of routes exceeds the threshold, a user log will be generated. When the number of routes equals the log recovery percentage, a recovery log will be generated.
assign forward nvo3 udp src-port extend enable
Function
The assign forward nvo3 udp src-port extend enable command enables a device to use the extension mode to encapsulate the outer UDP source port number of VXLAN packets.
The undo assign forward nvo3 udp src-port extend enable command disables a device from using the extension mode to encapsulate the outer UDP source port number of VXLAN packets.
By default, the extension mode is not used when the device encapsulates the outer UDP source port number of VXLAN packets.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
assign forward nvo3 udp src-port extend enable
undo assign forward nvo3 udp src-port extend enable
Usage Guidelines
When a device encapsulates the outer header of a VXLAN packet, the UDP source port number is the value calculated using the hash algorithm for the inner packet. The source port number can be used for load balancing on the network. If load balancing based on the UDP source port number is not ideal, you are advised to run this command to set the calculation mode of the UDP source port number to extension mode to improve the load balancing effect on the entire network.
bridge-domain
Function
The bridge-domain command creates a bridge domain as a broadcast domain and displays the bridge domain view.
The undo bridge-domain command removes a bridge domain which is a broadcast domain.
By default, no bridge domain is created.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
bridge-domain bd-id |
Specifies a BD ID. |
The value is an integer ranging from 1 to 16777215. |
Usage Guidelines
Usage Scenario
A metro Ethernet network consists of the following broadcast domains:
- Global virtual local area network (VLAN): a traditional broadcast domain that transmits Layer 2 services.In a metro Ethernet network, VLANs are used to prevent broadcast storms. A 12-bit VLAN tag defined in IEEE 802.1Q identifies a maximum of only 4096 VLANs, which is insufficient for a great number of users in the metro Ethernet. The 802.1Q in 802.1Q (QinQ) technology is developed to increase the number of VLAN tags.QinQ relieves the VLAN resource insufficiency but has its own drawback. If only QinQ is used to implement local switch services, the virtual private LAN service (VPLS) must be configured. QinQ cannot simultaneously provide the local switch service and Layer 3 packet termination service.
- Virtual switching instance (VSI): a broadcast domain that transmits VPLS services.
- A VSI is sold as a whole to a single user, and the user can plan VLANs and service traffic in the VSI.
- VLANs over a VSI cannot be isolated, imposing traffic security risks. If various VLANs in a VSI have the same MAC address, the learned MAC entry is changed, which causes incorrect service forwarding. To resolve the preceding problems, EVC introduces the bridge domain as a broadcast domain. To create a bridge domain, run the bridge-domain command. Bridge domains provide the following functions:
- Supports the VLAN and QinQ service local switch function. Allows different bridge domains to transmit traffic of the same VSI, and traffic in various bridge domains are distinguished using bridge domain IDs.
- Each bridge domain is a broadcast domain, which implements broadcast domain isolation. MAC address learning is based on a specific bridge domain, which prevents MAC entry changes.
Precautions
Multiple bridge domains can be created on a device. Bridge domains are irrelevant to VLAN tags carried in packets.
bridge-domain (Layer 2 sub interface view)
Function
The bridge-domain command adds an EVC Layer 2 sub-interface to a bridge domain.
The undo bridge-domain command removes an EVC Layer 2 sub-interface from a bridge domain.
By default, no EVC Layer 2 sub-interface is added to a bridge domain.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
bridge-domain bd-id |
Specifies a bridge domain ID. |
The bd-id value is an integer ranging from 1 to 16777215. |
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
Before a created bridge domain can forward service packets, a sub-interface must be added to the bridge domain using the bridge-domain command in a specific EVC Layer 2 sub-interface view.
Prerequisites
Before running the bridge-domain command in the EVC Layer 2 sub-interface view, complete the following tasks:
- Run the bridge-domain <bd-id> command in the system view to create a bridge domain.
- Run the interface <interface-type> <interface-number.subnum> mode l2 command in the system view to create an EVC Layer 2 sub-interface.
description (Bridge domain view)
Function
The description command configures a bridge domain (BD) description.
The undo description command deletes a description of a bridge domain.
By default, no bridge domain description is configured.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
description |
Specifies a bridge domain description. |
The value is a string of 1 to 80 case-sensitive characters, spaces supported. |
Usage Guidelines
You can run the bridge-domain bd-id command to configure multiple bridge domains to transmit various services. To describe each bridge domain, run the description command in a specific BD view. The description helps rapidly understand the bridge domain's function, which facilitates service management.
description (VNI peer view)
Function
The description command configures a description for a peer VXLAN tunnel.
The undo description command deletes the description configured for a peer VXLAN tunnel.
By default, no description is configured for a peer VXLAN tunnel.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
desc |
Specifies a description for a peer VXLAN tunnel. |
The value is a string of 1 to 64 case-sensitive characters, spaces supported. |
Usage Guidelines
To use the DHCP Option 82 function in a BD for security reasons, run the description command to configure different descriptions for different VXLAN tunnels. The descriptions carried in the Option 82 fields of DHCP packets help you determine through which VXLAN tunnel each user goes online.
display bridge-domain
Function
The display bridge-domain command displays bridge domain (BD) configurations.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
binding-info |
Displays the binding information between BDs and VNIs, VSIs, and EVPN instances. |
- |
bdid |
Displays information about a BD with a specified ID. |
The value is an integer ranging from 1 to 16777215. |
verbose |
Displays detailed BD information. |
- |
brief |
Displays brief BD information. |
- |
Usage Guidelines
After BDs are configured on a device, to view BD information, run the display bridge-domain command. The command output contains bridge domain configurations. The command output helps verify the configuration and analyze faults.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bridge-domain 10 verbose Bridge-domain ID : 10 Description : vni 5010 State : Up MAC Learning : Enable Statistics : Disable Broadcast : Forward Unknown-unicast : Forward Unknown-multicast : Forward Split-horizon : Disable Vxlan Vni : 5010 VSI : EVPN : ---------------- Interface State 100GE1/0/1.1 up
<HUAWEI> display bridge-domain
The total number of bridge-domains is : 2
--------------------------------------------------------------------------------
MAC_LRN: MAC learning; STAT: Statistics; SPLIT: Split-horizon;
BC: Broadcast; MC: Unknown multicast; UC: Unknown unicast;
*down: Administratively down; FWD: Forward; DSD: Discard;
--------------------------------------------------------------------------------
BDID State MAC-LRN STAT BC MC UC SPLIT Description
--------------------------------------------------------------------------------
10 up enable enable FWD FWD DSD disable VLAN
20 up enable disable FWD FWD FWD disable VLAN
<HUAWEI> display bridge-domain 10
--------------------------------------------------------------------------------
MAC_LRN: MAC learning; STAT: Statistics; SPLIT: Split-horizon;
BC: Broadcast; MC: Unknown multicast; UC: Unknown unicast;
*down: Administratively down; FWD: Forward; DSD: Discard;
U: Up; D: Down;
--------------------------------------------------------------------------------
BDID Ports
--------------------------------------------------------------------------------
10
BDID State MAC-LRN STAT BC MC UC SPLIT Description
--------------------------------------------------------------------------------
10 down enable disable FWD FWD FWD disable
BDID VLANIDs
--------------------------------------------------------------------------------
10 1(D)
<HUAWEI> display bridge-domain 10 brief
--------------------------------------------------------------------------------
*down: Administratively down; U:Up; D:Down;
--------------------------------------------------------------------------------
BDID State Ports
--------------------------------------------------------------------------------
10 up Eth-Trunk1.10(U) Eth-Trunk2.1(U)
<HUAWEI> display bridge-domain binding-info
--------------------------------------------------------------------------------
BDID VNI VSI EVPN
--------------------------------------------------------------------------------
1 1 vpntest1
2 2 vpntest2
3 3 vpntest3
Item | Description |
---|---|
Bridge-domain ID | ID of each BD. A BD can be configured using the bridge-domain bd-id command in the system view. |
Description | Description of a BD. To configure a bridge domain description, run the description command in the BD view. |
State | BD status:
A BD goes Up when at least one member interface in the BD is Up. |
MAC Learning | Whether the MAC address learning function is enabled in a BD:
|
Statistics | Whether a device is enabled to collect statistics about packets transmitted in a BD:
|
Broadcast | Whether a device forwards broadcast packets in a BD:
|
Unknown-unicast | Whether a device forwards unknown unicast packets in a BD:
|
Unknown-multicast | Whether a device forwards multicast packets in a BD:
|
Split-horizon | Whether split horizon is enabled in a BD:
|
Vxlan Vni | VNI bound to a BD. |
VSI | VSI bound to a BD. |
EVPN | EVPN instance bound to a BD. |
Interface | Interface bound to the BD. |
The total number of bridge-domains is | Total number of BDs configured on a device. |
BDID | ID of each BD. A BD can be configured using the bridge-domain bd-id command in the system view. |
MAC-LRN | Whether the MAC address learning function is enabled in a BD:
|
STAT | Whether a device is enabled to collect statistics about packets transmitted in a BD:
|
BC | Whether a device forwards broadcast packets in a BD:
|
MC | Whether a device forwards multicast packets in a BD:
|
UC | Whether a device forwards unknown unicast packets in a BD:
|
SPLIT | Whether split horizon is enabled in a BD:
|
Ports | The status of an EVC Layer 2 sub-interface in a BD can be:
|
VLANIDs | ID of the VLAN bound to a BD. |
VNI | VNI bound to a BD. A VNI can be bound to a BD using the vxlan vni vni-id command in the BD view. |
display bridge-domain statistics
Function
The display bridge-domain statistics command displays statistics about packets transmitted in a bridge domain (BD).
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
bd-id |
Specifies a BD number. |
The value is an integer ranging from 1 to 16777215. |
Usage Guidelines
Usage Scenario
To check traffic statistics of a BD when monitoring it, run the display bridge-domain statistics command. The command output helps locate faults.
Prerequisites
To ensure that the display bridge-domain statistics command displays valid statistics entries, you must have performed the following operations before running the display bridge-domain statistics command:
- A BD has been created using the bridge-domain command in the system view.
- Traffic statistics collection has been enabled for the BD using the statistics enable command in the BD view.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bridge-domain 10 statistics
-------------------------------------------------------------------------------------------
Item Packets Bytes Packets/s Bytes/s
-------------------------------------------------------------------------------------------
Inbound 0 0 0 0
Outbound 0 0 0 0
-------------------------------------------------------------------------------------------
Item | Description |
---|---|
Item | Inbound or outbound. |
Packets | Packet numbers. |
Bytes | Bytes. |
Packets/s | Packets per second. |
Bytes/s | Bytes per second. |
display fwm vxlan statistics
Function
The display fwm vxlan statistics command displays VXLAN module statistics on a specified board.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
l2subif |
Specifies a Layer 2 sub-interface. |
- |
bridge-domain |
Specifies a broadcast domain. |
- |
tunnel |
Indicates the tunnel module. |
- |
evpn |
Indicates the EVPN module. |
- |
all |
Indicates all statistics. |
- |
slot slotid |
Specifies the slot ID. |
The value is a string of 1 to 49 case-sensitive characters, spaces not supported. |
Usage Guidelines
Usage Scenario
You can run the display fwm vxlan { l2subif | bridge-domain | tunnel | evpn } statistics [ all ] slot <slotid> command to check the delivery of each sub-service of the VXLAN module. This command displays statistics in a list. Each line indicates a piece of statistics.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display fwm vxlan bridge-domain statistics slot 1 Id Statistic description Counter Last timestamp -------------------------------------------------------------------------------- 1 BD read bdentrystate 1 04-27-2020 15:41:49.930 2 BD write bdentry 4 04-27-2020 15:41:49.934
Item | Description |
---|---|
Id | Statistics counter ID. |
Statistic description | Statistics counter description about a specific service. |
Counter | Number of statistics counters. |
Last timestamp | Last update time of the statistics counter. |
display vxlan peer
Function
The display vxlan peer command displays ingress replication lists of a VNI or all VNIs.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni vni-id |
Specifies a VNI. |
The value is an integer ranging from 1 to 16000000. |
Usage Guidelines
Usage Scenario
If you want to check the VNI and source and destination IP address in an ingress replication list after a VXLAN is configured, run the display vxlan peer command. The command output helps you determine whether the VXLAN is correctly configured.
Precautions
Before running the display vxlan peer command, ensure that the specified VNI exists. Otherwise, the information obtained will be inapplicable.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vxlan peer
Number of peers : 1
Vni ID Source Destination Type Out Vni ID Creation Mode
----------------------------------------------------------------------------------------------
1000 1.1.1.1 2.2.2.2 static 1000 implicit
<HUAWEI> display vxlan peer vni 1000
Number of peers : 1
Vni ID Source Destination Type Out Vni ID Creation Mode
----------------------------------------------------------------------------------------------
1000 1.1.1.1 2.2.2.2 static 1000 implicit
Item | Description |
---|---|
Number of peers | Number of ingress replication lists. |
Vni ID | VNI ID, which is configured using the vxlan vni vni-id command. |
Source | Source VTEP's IP address, which can be configured using the source ip-address command. |
Destination | IP address of the remote VTEP with the Type of static, which can be configured using the vni vni-id head-end peer-list command. |
Type | Method for configuring an ingress replication list.
|
Out Vni ID | Outbound VNI ID identifying a segment VXLAN tunnel. |
Creation Mode | The creation mode of the ingress replication list: -implicit: The creation mode of the ingress replication list is implicit. -explicit: The creation mode of the ingress replication list is explicit. |
display vxlan statistics
Function
The display vxlan statistics command displays VXLAN packet statistics.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
display vxlan statistics source source-ip peer peer-ip vni vni-id
display vxlan statistics vni vni-id
display vxlan statistics source source-ip peer peer-ip
Parameters
Parameter | Description | Value |
---|---|---|
peer peer-ip |
Displays VXLAN packet statistics collected based on the IP address of the peer virtualized edge node. |
The value is in dotted decimal notation. |
vni vni-id |
Displays VXLAN packets statistics collected based on a specified VNI ID. |
The value is an integer ranging from 1 to 16777215. |
source source-ip |
Displays VXLAN packets statistics collected based on the source IP address. |
The value is in dotted decimal notation. |
Usage Guidelines
Usage Scenario
After you run the vxlan statistics enable command to enable VXLAN packet statistics collection in the NVE interface view, you can run the display vxlan statistics command to view packet statistics by VNI and VXLAN tunnel.
Precautions
Only traffic statistics collection for VNIs in interworking mode is supported.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vxlan statistics vni 1
-------------------------------------------------------------------------------------------
Item Packets Bytes Packets/s Bytes/s
-------------------------------------------------------------------------------------------
Inbound 13,399,602,115 2,331,530,768,010 190,897 33,216,123
Outbound 10,821,560,506 1,864,696,688,120 42,986 7,479,634
-------------------------------------------------------------------------------------------
<HUAWEI> display vxlan statistics source 1.1.1.1 peer 1.1.1.2
-------------------------------------------------------------------------------------------
Item Packets Bytes Packets/s Bytes/s
-------------------------------------------------------------------------------------------
Inbound 1,766,628,190 306,970,426,564 190,948 33,225,118
Outbound 922,624,140 159,239,805,508 20,209 3,516,422
-------------------------------------------------------------------------------------------
<HUAWEI> display vxlan statistics source 1.1.1.1 peer 1.1.1.2 vni 1
-------------------------------------------------------------------------------------------
Item Packets Bytes Packets/s Bytes/s
-------------------------------------------------------------------------------------------
Inbound 1,608,444,626 279,869,364,924 191,298 33,285,908
Outbound 922,508,265 159,219,643,258 20,246 3,522,820
-------------------------------------------------------------------------------------------
Item | Description |
---|---|
Item | Statistical item. |
Packets | Number of packets. |
Bytes | Number of bytes. |
Packets/s | Indicates the rate of packets. |
Bytes/s | Indicates the rate of bytes. |
0 unknown-unicast-drops | Number of discarded unknown unicast packets. |
0 unknown-multicast-drops | Number of discarded unknown multicast packets. |
0 broadcasts-drops | Number of discarded broadcast packets. |
display vxlan troubleshooting
Function
The display vxlan troubleshooting command displays causes for VXLAN tunnel Down events and dynamic VXLAN tunnel establishment failures.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
If a VXLAN tunnel goes Down or fails to be dynamically created, run the display vxlan troubleshooting command to check causes for fault locating.
This command can display causes for the recent five VXLAN tunnel Down events and dynamic VXLAN tunnel establishment failures at most.Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vxlan troubleshooting
Total counts: 2
--------------------------------------------------------------------------------
Sequence Time Event Description
--------------------------------------------------------------------------------
1 2016-02-26 01:40:22 The VXLAN tunnel is down because the route
to the source or destination address is u
nreachable (SourceIpAddress=1.1.1.1, Desti
nationIpAddress=2.2.2.2).
2 2016-02-26 01:40:22 The number of VXLAN tunnel exceeded the thr
eshold (Threshold=16384).
--------------------------------------------------------------------------------
Item | Description |
---|---|
Total counts | Number of VXLAN tunnel Down events and dynamic VXLAN tunnel establishment failures. |
Sequence | Sequence number. |
Time | Time when a VXLAN tunnel went Down or failed to be dynamically created. |
Event Description | Cause for a VXLAN tunnel Down event or dynamic VXLAN tunnel establishment failure. |
display vxlan tunnel
Function
The display vxlan tunnel command displays VXLAN tunnel information.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
tunnel-id |
Specifies a VXLAN tunnel ID. |
The value is an integer ranging from 1 to 4294967295. |
verbose |
Displays detailed VXLAN tunnel information. |
- |
Usage Guidelines
After VXLAN tunnels are established, run the display vxlan tunnel command to check tunnel information. The command output helps verify configurations and locate faults.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vxlan tunnel 4026531841 verbose
Tunnel ID : 4026531841
Source : 1.1.1.1
Destination : 2.2.2.2
State : up
Type : static
BypassVxlan : true
Uptime : 02:22:13
<HUAWEI> display vxlan tunnel
Number of vxlan tunnel : 3
Tunnel ID Source Destination State Type Uptime
----------------------------------------------------------------------------------------------------------
4026531844 1.1.1.1 2.2.2.2 up static 03:12:33
4026531846 1.1.1.1 3.3.3.3 up static 12:23:45
4026531847 1.1.1.1 4.4.4.4 down static -
Item | Description |
---|---|
Tunnel ID | VXLAN tunnel ID, which is automatically allocated after a VXLAN tunnel is established. |
Source | VXLAN tunnel source IP address. |
Destination | VXLAN tunnel destination IP address. |
State | VXLAN tunnel status:
|
Type | VXLAN tunnel type.
|
BypassVxlan | Indicates whether the bypass VXLAN tunnel exists:
|
Uptime | Period during which a VXLAN tunnel is Up.
If a hyphen (-) is displayed, the VXLAN tunnel is Down. |
Number of vxlan tunnel | Number of VXLAN tunnels that have been established. |
display vxlan vni
Function
The display vxlan vni command displays VXLAN configurations.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI ID. |
The value is an integer ranging from 1 to 16777215. |
verbose |
Displays detailed configurations of the VXLAN with a specified VNI ID. |
- |
Usage Guidelines
Usage Scenario
After a VXLAN is configured, to check the VNI status and BD to which the VNI is mapped, run the display vxlan vni command. The command output helps you determine whether the VXLAN is correctly configured.
Precautions
- Before running the display vxlan vni command, ensure that the VNI exists on the device.
- If both ingress replication and other replication modes are configured for the same VNI, the BUM packet forwarding mode in the command output is displayed as other replication modes.
Example
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display vxlan vni 5010 verbose
BD ID : 10
State : up
NVE : 1610612739
Source Address : 1.1.1.1
Source IPv6 Address : -
UDP Port : 4789
BUM Mode : head-end
Group Address : -
Peer List : 2.2.2.2 2.2.2.3
IPv6 Peer List : -
<HUAWEI> display vxlan vni
Number of vxlan vni: 2
VNI BD-ID State
---------------------------------------
5010 10 up
5020 20 up
Item | Description |
---|---|
BD ID | ID of the BD to which a VNI is mapped. |
State | VNI status:
The VNI status is Up only when the VXLAN tunnel corresponding to the VNI exists and is Up. If the VNI status is Down, check whether the values of the Source and Peer List Destination fields in the command output are the same as those of the Source and Destination fields in the display vxlan tunnel command:
Run the source ip-address or vni <vni-id> head-end peer-list command to change the source or destination IP address of the VXLAN tunnel to ensure that the VXLAN tunnel exists.
|
NVE | NVE interface index, which is automatically generated when an NVE interface is created using the interface nve command. This index is used only for internal query. |
Source Address | Source VTEP's IP address, which can be configured using the source ip-address command. |
Source IPv6 Address | IPv6 address of the source VTEP. |
IPv6 Peer List | IPv6 address of the remote VTEP. When BUM Mode is flood-vtep replication or multicast replication, the field is not displayed in the command output. |
UDP Port | Destination UDP port number, which is fixed at 4789. |
BUM Mode | Broadcast, unknown unicast, and multicast mode. head-end: A VXLAN tunnel forwards BUM packets using the ingress replication mode. flood-vtep replication: A VXLAN tunnel forwards BUM packets using the centralized replication mode. multicast replication: A VXLAN tunnel forwards BUM packets in multicast replication mode. |
Group Address | Group address mode, which allows a VNI to use multicast replication to forward BUM packets. This field displays as a hyphen (-) because multicast replication is not supported. |
Peer List | IP address of a remote VTEP, which can be configured or changed using the vni <vni-id> head-end peer-list command. This field is not displayed when BUM Mode is flood-vtep replication or multicast replication. To view the centralized replication list containing IP addresses of the remote VTEPs, run the display vxlan flood-vtep command. |
Number of vxlan vni | Number of VNIs configured. |
VNI | VNI ID, which can be configured using the vxlan vni <vni-id> command. |
BD-ID | BD ID associated with a VNI. It can be configured or modified using the bridge-domain <bd-id> command. |
encapsulation default
Function
The encapsulation default command configures a Layer 2 sub-interface to receive packets with any encapsulation type by default.
The undo encapsulation default command disables a Layer 2 sub-interface from receiving packets with any encapsulation type by default.
By default, no encapsulation type is specified on an EVC Layer 2 sub-interface.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
A Layer 2 Ethernet can transmit untagged, single-tagged, and double-tagged packets. To enable an EVC Layer 2 sub-interface to transmit different types of packets, run the flow-encapsulation command to configure an encapsulation type for the EVC Layer 2 sub-interface. The encapsulation default command configures a Layer 2 sub-interface to receive packets with any encapsulation type by default. When packets cannot meet the requirements of other sub-interfaces, the packets are sent to the Layer 2 sub-interface.
Precautions
- Each EVC Layer 2 sub-interface can be configured with only one encapsulation type. If traffic encapsulation has been configured on an EVC Layer 2 sub-interface and you want to change the encapsulation type, run the undo encapsulation command to delete the original encapsulation type.
- After the encapsulation default command is run, the VLAN configured for the main interface does not take effect. To make the VLAN configuration take effect on an EVC Layer 2 sub-interface, clear the encapsulation configuration on the EVC Layer 2 sub-interface.
encapsulation dot1q
Function
The encapsulation dot1q command enables a Layer 2 sub-interface to receive packets with a specified 802.1Q tag.
The undo encapsulation dot1q command disables a Layer 2 sub-interface from receiving packets with a specified 802.1Q tag.
By default, no encapsulation type is specified on an EVC Layer 2 sub-interface.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
encapsulation dot1q [ vid low-pe-vid [ to high-pe-vid ] ]
undo encapsulation dot1q [ vid low-pe-vid [ to high-pe-vid ] ]
Parameters
Parameter | Description | Value |
---|---|---|
vid low-pe-vid |
Specifies a VLAN ID for single-tagged packets to be received by an EVC Layer 2 sub-interface. |
The value is an integer ranging from 1 to 4094. |
to high-pe-vid |
Specifies a range of VLAN IDs for single-tagged packets to be received by an EVC Layer 2 sub-interface. The parameters are as follows: pevid2: specifies the end VLAN ID. pevid2 must be greater than or equal to pevid1. pevid2 and pevid1 define a range of VLAN IDs. If you do not specify to pevid2, pevid1 specifies the single VLAN ID carried in packets. If the command with the vid pevid1 [ to pevid2 ] parameter specified is run more than once, all configurations take effect. |
The value is an integer ranging from 1 to 4094. |
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
A Layer 2 Ethernet can transmit untagged, single-tagged, and double-tagged packets. To enable an EVC Layer 2 sub-interface to transmit different types of packets, run the flow-encapsulation command to configure an encapsulation type for the EVC Layer 2 sub-interface. The encapsulation dot1q vid command configures a Layer 2 sub-interface to receive VLAN-encapsulated packets by default.
Precautions
Only a single encapsulation type can be specified on each EVC Layer 2 sub-interface. Before changing an encapsulation type, run the undo encapsulation command to delete the existing encapsulation type and run the encapsulation to specify an encapsulation type.
In a data transparent transmission scenario, dot1q or QinQ encapsulation is configured on an EVC Layer 2 sub-interface, and a range of VLAN IDs is specified for VLAN tags carried in packets. In this situation, traffic may be returned or dropped if the undo encapsulation dot1q vid low-pe-vid or undo encapsulation qinq vid pe-vid ce-vid low-ce-vid command is run to delete the existing encapsulation type with the smallest VLAN ID specified. To prevent problems, perform the following operations: 1.Run the shutdown command on the EVC Layer 2 sub-interface. 2.Run the undo encapsulation dot1q vid command to delete the minimum VLAN. 3.Run the undo shutdown command on the EVC Layer 2 sub-interface.Example
<HUAWEI> system-view [HUAWEI] interface 10GE 1/0/1.2 mode l2 [HUAWEI-10GE1/0/1.2] encapsulation dot1q vid 10 [HUAWEI-10GE1/0/1.2] encapsulation dot1q vid 100 [HUAWEI-10GE1/0/1.2] encapsulation dot1q vid 60 [HUAWEI-10GE1/0/1.2] encapsulation dot1q vid 5 Warning: Changing the smallest VLAN ID of the interface will temporarily affect services on the interface. Continue?[Y/N]:
encapsulation qinq
Function
The encapsulation qinq command enables a Layer 2 sub-interface to receive packets with a specified 802.1Q in 802.1Q tag.
The undo encapsulation qinq command disables a Layer 2 sub-interface from receiving packets with a specified 802.1Q in 802.1Q tag.
By default, no encapsulation type is specified on an EVC Layer 2 sub-interface.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
encapsulation qinq [ vid pe-vid [ to high-pe-vid ] ce-vid low-ce-vid [ to high-ce-vid ] ]
undo encapsulation qinq [ vid pe-vid [ to high-pe-vid ] ce-vid low-ce-vid [ to high-ce-vid ] ]
Parameters
Parameter | Description | Value |
---|---|---|
vid pe-vid |
Specifies an outer VLAN ID for double-tagged packets to be received by an EVC Layer 2 sub-interface. |
The value is an integer ranging from 1 to 4094. |
to high-pe-vid |
Specifies an outer VLAN ID for double-tagged packets to be received by an EVC Layer 2 sub-interface. |
The value is an integer ranging from 1 to 4094. |
to high-ce-vid |
Specifies the inner VLAN ID in double-tagged packets to be received by an EVC Layer 2 sub-interface. cevid2 specifies the end VLAN ID. cevid2 must be greater than or equal to cevid1. cevid1 and cevid2 specify a VLAN range. If to cevid2 is not specified, the VLAN ID carried in the tag of the received packet is the VLAN ID specified by cevid1. If the cevid1 to cevid2 parameters are run more than once, all configurations take effect. |
The value is an integer ranging from 1 to 4094. |
low-ce-vid |
Specifies a VLAN ID in the inner tag of double-tagged packets to be received by an EVC Layer 2 sub-interface. |
The value is an integer ranging from 1 to 4094. |
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
On a Layer 2 Ethernet network, packets may not carry VLAN Tags or carry one or two VLAN Tags. To enable different packets to be forwarded through different EVC Layer 2 sub-interfaces, run this command to configure different encapsulation modes for Layer 2 sub-interfaces of the EVC Layer 2 sub-interface. When two VLAN TAGs are carried, the packets can enter this interface if the preceding configurations are met.
Precautions
Only a single encapsulation type can be specified on each EVC Layer 2 sub-interface. Before changing an encapsulation type, run the undo encapsulation command to delete the existing encapsulation type and run the encapsulation to specify an encapsulation type.
In a data transparent transmission scenario, dot1q or QinQ encapsulation is configured on an EVC Layer 2 sub-interface, and a range of VLAN IDs is specified for VLAN tags carried in packets. In this situation, traffic may be returned or dropped if the undo encapsulation dot1q vid low-pe-vid or undo encapsulation qinq vid pe-vid ce-vid low-ce-vid command is run to delete the existing encapsulation type with the smallest VLAN ID specified. To prevent problems, perform the following operations: 1.Run the shutdown command on the EVC Layer 2 sub-interface. 2.Run the undo encapsulation qinq vid command to delete the minimum VLAN. 3.Run the undo shutdown command on the EVC Layer 2 sub-interface.encapsulation untag
Function
The encapsulation untag command enables a Layer 2 sub-interface to receive untagged packets.
The undo encapsulation untag command disables a Layer 2 sub-interface from receiving untagged packets.
By default, no encapsulation type is configured on a Layer 2 sub-interface.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
To add packets that do not carry VLAN TAG, run the encapsulation untag command on the sub-interface. Each Layer 2 sub-interface can be configured with only one encapsulation type. If flow encapsulation has been configured on a Layer 2 sub-interface, you must run the undo encapsulation command to delete the original encapsulation type before changing the encapsulation type.
Configuration Impact
After the encapsulation untag command is run, the main interface cannot forward packets without VLAN tags.
After the encapsulation untag configuration is deleted, if VLAN-related configurations exist on the main interface, you need to re-perform the VLAN-related configurations on the main interface to make the configurations take effect.hub-mode enable
Function
The hub-mode enable command sets the access side mode to hub.
The undo hub-mode enable command cancels the hub mode on the access side.
By default, the access side mode is not set to hub.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,VLAN range view,VLAN view
Usage Guidelines
Usage Scenario
On a VXLAN network, users connected to the same BD can directly communicate with each other. If access-side user isolation is configured using the isolate enable command in the BD view, to allow users connected to the BD through a VLAN or Layer 2 sub-interface to communicate with other users in the BD, run this command in the VLAN or Layer 2 sub-interface view to set the access-side mode to hub.
On a VXLAN network, users in the same BD can directly communicate with each other. If unidirectional isolation from the access side to the tunnel side is configured in a BD using the isolate remote enable command in the BD view, to allow users connected to the BD through a VLAN or Layer 2 sub-interface to communicate with the tunnel side, run this command in the VLAN or Layer 2 sub-interface view to set the access-side mode to hub.Prerequisites
If the VLAN access mode is set to hub, the VLAN has been bound to a BD using the l2 binding vlan command.
Example
<HUAWEI> system-view [HUAWEI] bridge-domain 10 [HUAWEI-bd10] l2 binding vlan 10 [HUAWEI] vlan 10 [HUAWEI-vlan10] hub-mode enable
<HUAWEI> system-view [HUAWEI] interface 10GE1/0/1.1 mode l2 [HUAWEI-10GE1/0/1.1] hub-mode enable
irb-reoriginate irb2ip
Function
The irb-reoriginate irb2ip enable command allows IRB/IRBv6 routes to be re-generated as IP prefix routes.
The undo irb-reoriginate irb2ip enable command restores the default configuration.
By default, IRB/IRBv6 routes can be regenerated as ARP/ND routes only.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
irb-reoriginated without-bridge-domain disable(Global EVPN configuration view)
Function
The irb-reoriginated without-bridge-domain disable command disables the IRB route re-generation function when BDs are not configured.
The undo irb-reoriginated without-bridge-domain disable command restores the default configuration.
By default, the function to re-originate IRB routes when no BD is configured is enabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
irb-reoriginated without-bridge-domain disable
undo irb-reoriginated without-bridge-domain disable
Usage Guidelines
Usage Scenario
In a scenario where segment VXLAN is used for DCI, if DC edge devices (border leaf nodes) do not support BDs, the devices without BD configuration can re-generate IRB routes by default to establish an inter-DC VXLAN tunnel. If edge devices support BDs, to prevent repeat IRB route re-generation, run the evpn command in the system view to display the global EVPN view and then run the irb-reoriginated without-bridge-domain disable command to disable the default IRB route re-generation function when BDs are not configured.
irb-reoriginated without-split-group disable(Global EVPN configuration view)
Function
The irb-reoriginated without-split-group disable command disables the function to advertise re-originated IRB routes without being restricted by a split horizon group (SHG).
The undo irb-reoriginated without-split-group disable command restores the default configuration.
By default, re-originated IRB routes are advertised without being restricted by an SHG.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
irb-reoriginated without-split-group disable
undo irb-reoriginated without-split-group disable
Usage Guidelines
Usage Scenario
In scenarios where segment VXLAN tunnels are used to implement DC interconnections, to prevent forwarding BUM traffic from causing a loop during Layer 2 interconnection, BGP EVPN peer-based SHG is introduced. If no BGP EVPN peer-based SHGs are specified (using the peer split-group command) on transit leaf nodes (edge devices interconnecting DCs), all BGP EVPN peers belong to the default system SHG. In this case, after a transit leaf node re-originates IRB routes received from an intra-DC device, the transit leaf node cannot advertise the re-originated IRB routes to the peer DC's transit leaf node because the transit leaf nodes both belong to the default system SHG. As a result, Layer 3 traffic forwarding is affected.
To prevent this problem, a device advertises re-originated IRB routes without being restricted by an SHG by default. If SHGs are specified for all BGP EVPN peers on transit leaf nodes, to disable the function to advertise re-originated IRB routes without being restricted by an SHG, run the irb-reoriginated without-split-group disable command.isolate enable
Function
The isolate enable command enables isolation of users connected to an access-side BD.
The undo isolate enable command disables isolation of users connected to an access-side BD.
By default, isolation of users connected to an access-side BD is disabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
isolate remote enable
Function
The isolate remote enable command configures unidirectional isolation from the access side to the tunnel side in a BD.
The undo isolate remote enable command disables unidirectional isolation from the access side to the tunnel side in a BD.
By default, unidirectional isolation from the access side to the tunnel side is disabled in a BD.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
l2 binding vlan
Function
The l2 binding vlan command binds a VLAN to a BD.
The undo l2 binding vlan command cancels the binding relationship between a VLAN and a BD.
By default, a VLAN is not bound to a BD.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vlan-id |
Specifies a VLAN ID. |
The value is an integer ranging from 1 to 4094. |
Usage Guidelines
Usage Scenario
On the VXLAN network, you need to configure VXLAN service access points on a VXLAN network edge node. After you run the l2 binding vlan command to bind a VLAN to a BD. The interfaces added to the VLAN become VXLAN service access points.
Prerequisites
The VLAN to be bound to the BD has been created.
The default VLAN, MAC-VLAN, IP-VLAN, protocol-VLAN, and management-VLAN cannot be bound to a BD.Precautions
After a VLAN is bound to a BD, you cannot create a VLANIF interface for the VLAN either.
Enable Layer 2 proxy ARP is exclusive with Binding a VLAN to a BD. After a VLAN is configured as a VXLAN service access point, do not configure ARP Layer 2 proxy. After a VLAN is bound to a BD, the BD becomes the broadcast domain. Therefore, other service configurations in the VLAN become invalid.mac rib-only
Function
The mac rib-only command disables a device from delivering a MAC entry for a remote MAC route.
The undo mac rib-only command restores the default configuration.
By default, a device delivers MAC entries for remote MAC routes.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
Usage Scenario
In a VXLAN Layer 3 gateway scenario, if Layer 2 unicast traffic forwarding is not involved, run the mac rib-only command to disable a device from delivering a MAC entry to its local MAC address table after it receives a VNI-based MAC route from the EVPN peer. This configuration saves forwarding entry resources.
mac-address (NVE interface view)
Function
The mac-address command configures a MAC address for an NVE interface.
The undo mac-address command restores the default MAC address of an NVE interface.
By default, MAC address of an NVE interface is a system MAC address.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
macaddr |
Specifies the MAC address of an NVE interface. |
The value is in the H-H-H format. H is a 4-bit hexadecimal number, such as 00e0 or fc01. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF. |
mac-address static (System view)
Function
The mac-address static vni command configures a static MAC address entry for a VXLAN tunnel.
The undo mac-address static vni command deletes a static MAC address entry of a VXLAN tunnel.
By default, no static MAC address entry is configured for any VXLAN tunnel.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
mac-address static mac-address bridge-domain bd-id source source-ip-address peer peer-ip vni vni-id
undo mac-address static mac-address bridge-domain bd-id [ [ source source-ip-address ] [ peer peer-ip ] [ vni vni-id ] ]
Parameters
Parameter | Description | Value |
---|---|---|
mac-address |
Specifies a destination MAC address. |
The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros. For example, e0 is displayed as 00e0. The MAC address cannot be set to FFFF-FFFF-FFFF or a multicast address starting with 01. |
bridge-domain bd-id |
Specifies the ID of a BD to which a VNI is to be mapped. |
The value is an integer ranging from 1 to 16777215. |
source source-ip-address |
Specifies the IP address of a local VTEP. |
The value is in dotted decimal notation. |
peer peer-ip |
Specifies an IP address for a remote VTEP. |
The value is in dotted decimal notation. |
vni vni-id |
Specifies a VNI ID. |
The default type is UINT32, and the maximum value range is 1-4294967295. The system automatically obtains the value range according to the actual situation. |
Usage Guidelines
After the source NVE on a VXLAN tunnel receives broadcast, unknown unicast, and multicast (BUM) packets, the local VTEP sends a copy of the BUM packets to every VTEP in the ingress replication list with the same VNI. To reduce the volume of broadcast traffic, run the mac-address static vni command to configure a static MAC entry for forwarding traffic. This configuration also prevents unauthorized data access, enhancing network security.
Example
<HUAWEI> system-view [HUAWEI] bridge-domain 10 [HUAWEI-bd10] vxlan vni 5000 [HUAWEI-bd10] quit [HUAWEI] interface nve 1 [HUAWEI-Nve1] source 1.1.1.1 [HUAWEI-Nve1] vni 5000 head-end peer-list 2.2.2.2 [HUAWEI-Nve1] quit [HUAWEI] mac-address static e0-fc-12 bridge-domain 10 source 1.1.1.1 peer 2.2.2.2 vni 5000
peer (VNI view)
Function
The peer command creates and displays the VNI peer view.
The undo peer command deletes the configured VNI peer view.
By default, no VNI peer view is created.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
peerIp |
Specifies the IP address of a peer network virtualization edge. |
The address is in dotted decimal notation. |
peer advertise route-reoriginated evpn (BGP multi-instance EVPN view)
Function
The peer advertise route-reoriginated evpn command enables a device to re-encapsulate EVPN routes and then advertise them to BGP EVPN peers.
The undo peer advertise route-reoriginated evpn command restores the default configuration.
By default, a device does not re-encapsulate EVPN routes or advertise regenerated EVPN routes to BGP EVPN peers.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
peer peerIpv4Addr advertise route-reoriginated evpn { mac-ip | mac | ip | mac-ipv6 | ipv6 }
undo peer peerIpv4Addr advertise route-reoriginated evpn { mac-ip | mac | ip | mac-ipv6 | ipv6 }
Parameters
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a BGP EVPN peer. |
The value is in dotted decimal notation. |
mac-ip |
Re-encapsulates the IRB or ARP routes in the received EVPN routes. |
- |
mac |
Re-encapsulates the MAC routes in the received EVPN routes. |
- |
ip |
Re-encapsulates the IP prefix routes in the received EVPN routes. |
- |
mac-ipv6 |
Re-encapsulates the IRBv6 or ND routes in received EVPN routes. |
- |
ipv6 |
Re-encapsulates received IPv6 prefix routes. |
- |
Usage Guidelines
Usage Scenario
In a segment VXLAN scenario for DCI, to allow VMs in different DCs to communicate with each other, run the peer advertise route-reoriginated command on a DC edge device connecting to a carrier backbone network. The edge device then re-encapsulates the EVPN routes received from one DC and sends them to BGP EVPN peers in another DC.
After receiving an EVPN route from a DC, an edge leaf node re-encapsulates the EVPN route as follows: Modifies the next hop address of the EVPN route as its own VTEP address, replaces the source MAC address (functioning as the gateway MAC address) of the host route contained in the EVPN route with its own MAC address, and replaces the L3VNI in the EVPN route with the L3VNI in the edge leaf's L3VPN instance.Prerequisites
The device has been enabled to add a regeneration flag to the routes received from BGP EVPN peers using the peer ipv4-address import reoriginate command.
Example
<HUAWEI> system-view [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] peer 1.1.1.1 as-number 100 [HUAWEI-bgp-instance-evrf] l2vpn-family evpn [HUAWEI-bgp-instance-evrf-af-evpn] peer 1.1.1.1 enable [HUAWEI-bgp-instance-evrf-af-evpn] peer 1.1.1.1 import reoriginate [HUAWEI-bgp-instance-evrf-af-evpn] peer 1.1.1.1 advertise route-reoriginated evpn mac-ip
peer advertise route-reoriginated evpn (BGP multi-instance EVPN view) (group)
Function
The peer advertise route-reoriginated evpn command enables a device to re-encapsulate EVPN routes and then advertise them to BGP EVPN peers.
The undo peer advertise route-reoriginated evpn command restores the default configuration.
By default, a device does not re-encapsulate EVPN routes or advertise regenerated EVPN routes to BGP EVPN peers.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
peer peerGroupName advertise route-reoriginated evpn { mac-ip | mac | ip | mac-ipv6 | ipv6 }
undo peer peerGroupName advertise route-reoriginated evpn { mac-ip | mac | ip | mac-ipv6 | ipv6 }
Parameters
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of a BGP EVPN peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
mac-ip |
Re-encapsulates the IRB or ARP routes in the received EVPN routes. |
- |
mac |
Re-encapsulates the MAC routes in the received EVPN routes. |
- |
ip |
Re-encapsulates the IP prefix routes in the received EVPN routes. |
- |
mac-ipv6 |
Re-encapsulates the IRBv6 or ND routes in received EVPN routes. |
- |
ipv6 |
Re-encapsulates received IPv6 prefix routes. |
- |
Usage Guidelines
Usage Scenario
In a segment VXLAN scenario for DCI, to allow VMs in different DCs to communicate with each other, run the peer advertise route-reoriginated command on a DC edge device connecting to a carrier backbone network. The edge device then re-encapsulates the EVPN routes received from one DC and sends them to BGP EVPN peers in another DC.
After receiving an EVPN route from a DC, an edge leaf node re-encapsulates the EVPN route as follows: Modifies the next hop address of the EVPN route as its own VTEP address, replaces the source MAC address (functioning as the gateway MAC address) of the host route contained in the EVPN route with its own MAC address, and replaces the L3VNI in the EVPN route with the L3VNI in the edge leaf's L3VPN instance.Prerequisites
The device has been enabled to add a regeneration flag to the routes received from BGP EVPN peers using the peer group-name import reoriginate command.
Example
<HUAWEI> system-view [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] group gp1 [HUAWEI-bgp-instance-evrf] peer 1.1.1.1 group gp1 [HUAWEI-bgp-instance-evrf] peer 2.2.2.2 group gp1 [HUAWEI-bgp-instance-evrf] l2vpn-family evpn [HUAWEI-bgp-instance-evrf-af-evpn] peer gp1 enable [HUAWEI-bgp-instance-evrf-af-evpn] peer gp1 import reoriginate [HUAWEI-bgp-instance-evrf-af-evpn] peer gp1 advertise route-reoriginated evpn mac-ip
peer import reoriginate (BGP multi-instance EVPN view)
Function
The peer import reoriginate command enables a device to add a regeneration flag to the routes received from BGP multi-instance EVPN peers.
The undo peer import reoriginate command restores the default configuration.
By default, a device does not add a regeneration flag to the routes received from BGP multi-instance EVPN peers.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
peerIpv4Addr |
Specifies the IPv4 address of a BGP EVPN peer. |
The value is in dotted decimal notation. |
Usage Guidelines
DCI enables inter-DC VM communication. It uses technologies, such as VXLAN and BGP EVPN, to securely and reliably transmit packets from DCs over carrier networks.
In a segment VXLAN scenario for DCI, an edge node that connects to a carrier network does not re-encapsulate the routes received from BGP EVPN peers, causing the EVPN routes to be terminated on the edge node. As a result, the EVPN routes from one DC cannot be advertised to the BGP EVPN peers of another DC. To address this problem, run the peer import reoriginate command to enable the edge node to add a regeneration flag to the routes received from BGP EVPN peers. The edge node then re-encapsulates the EVPN routes received from one DC before sending them to another DC for inter-DC VM communication.Example
<HUAWEI> system-view [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] peer 1.1.1.1 as-number 100 [HUAWEI-bgp-instance-evrf] l2vpn-family evpn [HUAWEI-bgp-instance-evrf-af-evpn] peer 1.1.1.1 enable [HUAWEI-bgp-instance-evrf-af-evpn] peer 1.1.1.1 import reoriginate
peer import reoriginate (BGP multi-instance EVPN view) (group)
Function
The peer import reoriginate command enables a device to add a regeneration flag to the routes received from BGP EVPN peers.
The undo peer import reoriginate command restores the default configuration.
By default, a device does not add a regeneration flag to the routes received from BGP EVPN peers.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of a BGP EVPN peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Guidelines
Usage Scenario
DCI enables inter-DC VM communication. It uses technologies, such as VXLAN and BGP EVPN, to securely and reliably transmit packets from DCs over carrier networks.
In a segment VXLAN scenario for DCI, an edge node that connects to a carrier network does not re-encapsulate the routes received from BGP EVPN peers, causing the EVPN routes to be terminated on the edge node. As a result, the EVPN routes from one DC cannot be advertised to the BGP EVPN peers of another DC. To address this problem, run the peer import reoriginate command to enable the edge node to add a regeneration flag to the routes received from BGP EVPN peers. The edge node then re-encapsulates the EVPN routes received from one DC before sending them to another DC for inter-DC VM communication.Example
<HUAWEI> system-view [HUAWEI] bgp 100 instance evrf [HUAWEI-bgp-instance-evrf] group gp1 [HUAWEI-bgp-instance-evrf] peer 1.1.1.1 group gp1 [HUAWEI-bgp-instance-evrf] peer 2.2.2.2 group gp1 [HUAWEI-bgp-instance-evrf] l2vpn-family evpn [HUAWEI-bgp-instance-evrf-af-evpn] peer gp1 enable [HUAWEI-bgp-instance-evrf-af-evpn] peer gp1 import reoriginate
pip-source peer bypass
Function
The pip-source peer bypass command configures a static bypass VXLAN tunnel.
The undo pip-source peer bypass command deletes a static bypass VXLAN tunnel.
By default, no bypass vxlan tunnel is configured.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
src-ip |
Specifies the source IP address of a bypass VXLAN tunnel. |
The value is in dotted decimal notation. |
peer-ip |
Specifies the peer IP address of a bypass VXLAN tunnel. |
The value is in dotted decimal notation. |
Usage Guidelines
In a VXLAN scenario with M-LAG configured, if one user-side link fails, service traffic is transmitted through the peer-link between the M-LAG devices. In this scenario, the pip-source peer bypass command must berun on M-LAG devices to create a static bypass VXLAN tunnel to divert traffic to the peer-link.
qos phb marking dscp disable
Function
The qos phb marking dscp disable command disables the mapping of the inner priority to the outer DSCP priority of VXLAN packets.
The undo qos phb marking dscp disable command enables the mapping of the inner priority to the outer DSCP priority of VXLAN packets.
By default, the mapping of the inner priority to the outer DSCP priority of VXLAN packets is enabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
By default, when a packet enters a VXLAN tunnel, the 802.1p or DSCP priority of the original packet is mapped to the internal priority. When VXLAN encapsulation is performed, the outer DSCP priority is 0. When the mapping of PHBs to DSCP priorities is enabled for outgoing packets on an Ethernet interface, the internal priority is mapped to the outer DSCP priority. In this case, the outer DSCP priority of the encapsulated packet may be different from the DSCP priority of the original packet.
If the outer DSCP priority of the VXLAN packet needs to be the same as the DSCP priority of the original packet after VXLAN encapsulation is performed, you can disable the mapping of the inner priority to the outer DSCP priority of VXLAN packets. In this way, the DSCP priority of the original packet is copied as the outer DSCP priority of the VXLAN packet during VXLAN encapsulation, ensuring that the two DSCP priorities are the same.reserved for vxlan bypass
Function
The reserved for vxlan bypass command configures the IPv4 address of the VLANIF interface for a peer-link interface as a dedicated address for the bypass VXLAN tunnel.
The undo reserved for vxlan bypass command restores the default configuration.
By default, the IPv4 address of the VLANIF interface for a peer-link interface is not specified as a dedicated address for the bypass VXLAN tunnel, and a consistency check is performed to determine whether the VLANIF interface addresses on the M-LAG master and backup devices are the same.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
In a scenario where a server is dual-homed to a VXLAN network through an M-LAG, a static bypass VXLAN tunnel must be configured between the M-LAG member devices to divert service traffic to the peer-link.
If the **consistency-check enable mode ** command is run on M-LAG member devices to enable M-LAG configuration consistency check, the VLANIF interfaces configurations on the peer-link interfaces of the master and backup M-LAG member devices are checked. If the configurations are inconsistent, an alarm is reported. If you run this command to specify the IPV4 address of the VLANIF interface for a peer-link interface to be used only by the bypass VXLAN tunnel, the check criteria for VLANIF interface configuration consistency change accordingly. Specifically, if the IPV4 address and MAC address of the corresponding VLANIF interfaces on the M-LAG master and backup devices are the same, an alarm is reported.reset bridge-domain statistics
Function
The reset bridge-domain statistics command clears traffic statistics of a BD.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
bd-id |
Specifies the ID of a bridge domain. |
The value is an integer ranging from 1 to 16777215. |
Usage Guidelines
Usage Scenario
Before you collect traffic statistics within a specified period for a BD, run the reset bridge-domain statistics command to clear existing statistics so that traffic statistics can be collected again, ensuring that the statistics are correct.
Prerequisites
A bridge domain has been created using the bridge-domain command.
Precautions
Traffic statistics of a BD are cleared and cannot be restored. Exercise caution when running the reset bridge-domain statistics command.
reset fwm vxlan statistics
Function
The reset fwm vxlan statistics command resets VXLAN module statistics on a specified board.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
l2subif |
Specifies a Layer 2 sub-interface. |
- |
bridge-domain |
Specifies a broadcast domain. |
- |
tunnel |
Indicates the tunnel module. |
- |
evpn |
Indicates the EVPN module. |
- |
all |
Indicates all statistics. |
- |
slot slotid |
Specifies the slot ID. |
The value is a string of 1 to 49 case-sensitive characters, spaces not supported. |
reset vxlan statistics
Function
The reset vxlan statistics command clears VXLAN packet statistics.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
reset vxlan statistics source source-ip peer peer-ip vni vni-id
reset vxlan statistics vni vni-id
reset vxlan statistics source source-ip peer peer-ip
Parameters
Parameter | Description | Value |
---|---|---|
peer peer-ip |
Clears VXLAN packet statistics collected based on the IP address of the peer virtualized edge node. |
The value is in dotted decimal notation. |
vni |
Clears VXLAN packets statistics collected based on a specified VNI ID. |
The value is an integer ranging from 1 to 16777215. |
vni-id |
Specifies the value of VNI ID. |
The value is an integer ranging from 1 to 16777215. |
source source-ip |
Clears VXLAN packets statistics collected based on the source IP address. |
The value is in dotted decimal notation. |
Usage Guidelines
Usage Scenario
In cloud VPN scenarios, cloud GWs support VXLAN packet statistics collection. To clear VXLAN packet statistics, run the reset vxlan statistics command.
Precautions
After the reset vxlan statistics command is run, VXLAN packet statistics on a device are cleared and cannot be restored. Exercise caution when you run this command.
Example
<HUAWEI> reset vxlan statistics vni 1
<HUAWEI> reset vxlan statistics source 1.1.1.1 peer 1.1.1.2 vni 1
<HUAWEI> reset vxlan statistics source 10.1.1.1 peer 10.2.2.2
rewrite (Layer 2 sub-interface view)
Function
The rewrite pop single command enables a Layer 2 sub-interface with the encapsulation type being dot1q to remove a single VLAN tag from received packets.
The rewrite pop double command enables a Layer 2 sub-interface with the encapsulation type being QinQ to remove double VLAN tags from received packets.
The undo rewrite command restores the default encapsulation type.
By default, a Layer 2 sub-interface with the encapsulation type being QinQ removes double VLAN tags from received packets, and a Layer 2 sub-interface with the encapsulation type being Dot1q removes one VLAN tag from received packets.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
single |
Enables an EVC Layer 2 sub-interface to remove the outer VLAN tag from received packets. |
- |
double |
Enables an EVC Layer 2 sub-interface to remove double tags from packets after receiving them. |
- |
pop |
Remove one or more specified VLAN tags. |
- |
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
If a Layer 2 sub-interface with the encapsulation type being QinQ is configured as a VXLAN service access point on a VXLAN, to enable the sub-interface to remove double VLAN tags from received packets, run the rewrite pop double command.
If a Layer 2 sub-interface with the encapsulation type being Dot1q is configured as a VXLAN service access point on a VXLAN, to enable the sub-interface to remove single VLAN tags from received packets, run the rewrite pop single command.Prerequisites
The following conditions have been met:
The Layer 2 sub-interface is not added to a bridge domainConfiguration Impact
After the rewrite pop single | double command is run successfully, the VLAN tag operation on packets is as as follows:
- For incoming packets, the tags are removed and forwarded at Layer 2.
- For outgoing packets, the corresponding VLAN information is added to the packets before they are forwarded.
Precautions
Only one traffic behavior can be configured on each EVC Layer 2 sub-interface. If a traffic behavior has been configured on an EVC Layer 2 sub-interface and you want to change it, perform the following operations on the EVC Layer 2 sub-interface:
- Run the undo rewrite command to delete the original traffic behavior.
- Run the undo bridge-domain command to exit the BD.
If a VLAN range is specified in this command, broadcast, unknown unicast, and multicast (BUM) traffic is replicated in all VLANs in that VLAN range. Excessive traffic replication will overburden the board, potentially interrupting services. To ensure that the board is not overburdened by many redundant VLANs, you are advised to plan VLANs appropriately during service deployment.
rewrite no-action
Function
The rewrite no-action command configures a dot1q Layer 2 sub-interface to transparently transmit received packets, instead of removing VLAN tags from the packets.
The undo rewrite no-action command restores the default configuration.
By default, a dot1q Layer 2 sub-interface removes VLAN tags from received packets, instead of transparently transmitting them.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Views
100GE Layer 2 sub-interface view,10GE Layer 2 sub-interface view,25GE Layer 2 sub-interface view,40GE Layer 2 sub-interface view,Eth-Trunk Layer 2 sub-interface view,GE Layer 2 sub-interface view,Layer 2 sub-interface view
Usage Guidelines
Usage Scenario
When a service access point is configured in the EVC model, if a Layer 2 sub-interface is selected and the encapsulation mode of the Layer 2 sub-interface is Dot1q, the sub-interface removes VLAN tags from received packets by default. To enable a Layer 2 sub-interface to transparently transmit single-tagged data packets, run the rewrite no-action command.
Prerequisites
- The dot1q Layer 2 sub-interface has not been added to a BD.
- A VLAN ID or VLAN ID range of packets that the dot1q Layer 2 sub-interface permits has been configured using the encapsulation dot1q vid command.
Precautions
This command applies only to dot1q Layer 2 sub-interfaces.
If a dot1q Layer 2 sub-interface is bound to a BD after the rewrite no-action command is run for the sub-interface, the BD does not support VBDIF interfaces and ARP broadcast packet suppression.route-distinguisher (EVPN instance view)
Function
The route-distinguisher command configures a route distinguisher (RD) for a BD EVPN instance.
The undo route-distinguisher command deletes the RD of a BD EVPN instance.
By default, no RD is configured for BD EVPN instances.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
route-distinguisher route-distinguisher
route-distinguisher auto
undo route-distinguisher route-distinguisher
undo route-distinguisher auto
Parameters
Parameter | Description | Value |
---|---|---|
route-distinguisher |
Specifies an RD to be configured for a BD EVPN instance. |
The format of an RD can be as follows:
|
auto |
Specifies the RD that is automatically generated. |
- |
Usage Guidelines
Usage Scenario
After creating an EVPN instance in a BD view, run the route-distinguisher command to configure an RD for the BD EVPN instance.
Different EVPN instances may have the same route prefix. To allow a peer PE to determine to which EVPN instance a received route belongs, run the route-distinguisher command to configure an RD for the EVPN instance on the local PE. The local PE then adds the RD to the route prefix to be sent to the peer PE, and the route prefix becomes a globally unique EVPN route.Prerequisites
An EVPN instance has been created using the evpn command in the BD view.
Precautions
Running the undo route-distinguisher command in the BD-EVPN instance view causes EVPN-related configurations to be deleted.
set bridge-domain resource super-mode
Function
The set bridge-domain resource super-mode command sets the super bridge-domain resource mode.
The undo set bridge-domain resource super-mode command restores the default bridge-domain resource mode.
By default, the bridge-domain resource mode is default mode, not super mode. In default mode, the device supports 4096 BDs.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
source (NVE interface view)
Function
The source command configures an IP address for a source VXLAN tunnel endpoint (VTEP).
The undo source command deletes the IP address of a source VTEP.
By default, no IP address is configured for any source VTEP.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies an IP address for a source VTEP. |
The value is in dotted decimal notation. |
Usage Guidelines
Usage Scenario
A VTEP is a VXLAN tunnel endpoint that encapsulates or decapsulates VXLAN packets. It is represented by a network virtualization edge (NVE).
To configure an IP address for a source VTEP, run the source command. In VXLAN packets, the source IP address is the source VTEP's IP address, and the destination IP address is a remote VTEP's IP address. This pair of VTEP addresses corresponds to a VXLAN tunnel.Precautions
You can specify a physical interface address or loopback interface address as the source VTEP IP address. Using the loopback interface address as the source VTEP IP address is recommended.
Generally, NVE interfaces on different devices need to be configured with different VTEP addresses. Otherwise, traffic may be forwarded incorrectly. In specific scenarios (for example, M-LAG dual-homing access scenario), if multiple devices are required to function as the same NVE, configure the same VTEP address for the NVE interfaces of these devices.statistic enable (Bridge domain view)
Function
The statistic enable command enables traffic statistics collection in a BD.
The undo statistic enable command disables traffic statistics collection in a BD.
By default, traffic statistics collection is disabled in BDs.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
Usage Scenario
To check statistics about packets sent and received in a BD for fault locating, run this command in the BD view to enable traffic statistics collection. Otherwise, you cannot view traffic statistics in the BD.
Follow-up Procedure
After running the statistic enable command, run the display bridge-domain statistics command to view traffic statistics in the BD. The command output helps you diagnose faults.
statistic enable (VNI view)
Function
The statistic enable command enables VXLAN traffic statistics collection.
The undo statistic enable command disables VXLAN traffic statistics collection.
By default, VXLAN traffic statistics collection is disabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
Usage Scenario
By default, VXLAN packet statistics collection is disabled. To view VXLAN packet statistics of a specified VNI for fault locating, run this command in the VNI view to enable VXLAN packet statistics collection. Otherwise, you cannot view VXLAN packet statistics of the VNI.
Configuration Impact
If a large number of VXLAN packets exist, the device counts all these packets and subsequently stores large amounts of statistics, causing device operation performance to deteriorate. If VXLAN traffic statistics collection is not needed, run the undo statistic enable command to disable the function.
Follow-up Procedure
After running the statistics enable command, you can run the display vxlan statistics vni <vni-id> command to view VNI-specific statistics. The statistics can be used for fault diagnosis.
vni (NVE interface view)
Function
The vni command configures a VXLAN network identifier (VNI) for an NVE interface.
The undo vni command deletes the VNI for an NVE interface, and deletes all configurations for the same VNI on the current NVE interface.
The vni head-end peer-list command configures an ingress replication list that contains the IP addresses of those remote VTEPs for a VXLAN network identifier (VNI).
The undo vni head-end peer-list command deletes the ingress replication list of a VNI.
By default, no VNI is configured for an NVE interface, no ingress replication list is configured for any VNI.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
vni vni-id [ head-end peer-list { ip-address } &<1-10> ]
undo vni vni-id [ head-end peer-list { ip-address } &<1-10> ]
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI ID. |
The value is an integer ranging from 1 to 16000000. |
ip-address |
Specifies the IP address of a remote VXLAN tunnel endpoint (VTEP). |
The value is in dotted decimal notation. |
Usage Guidelines
Usage Scenario
VNIs are similar to VLAN IDs. VXLAN uses VNIs to differentiate VXLAN segments and identify tenants. A VNI identifies only one tenant. Even if multiple terminal users belong to the same VNI, they are considered one tenant. Run this command to configure a VNI for an NVE interface.
After the ingress of a VXLAN tunnel receives broadcast, unknown unicast, and multicast (BUM) packets, it replicates these packets and sends a copy to each VTEP in the ingress replication list. The ingress replication list is a collection of remote VTEP IP addresses to which the ingress of a VXLAN tunnel should send replicated BUM packets. If a source VTEP on a VXLAN connects to multiple remote VTEPs on the same VXLAN segment, run the vni head-end peer-list command to configure an ingress replication list that contains the IP addresses of those remote VTEPs. After the source NVE receives BUM packets, the local VTEP sends a copy of the BUM packets to every VTEP in the list.Configuration Impact
Ingress replication allows BUM packets to be transmitted in broadcast mode, independent of multicast routing protocols.
Precautions
Even if a source VTEP connects only to one remote VTEP, you still need to run the vni head-end peer-list command to configure an ingress replication list with the remote VTEP's IP address specified.
If other configurations are performed for the same VNI on the current NVE interface, the command configuration will be overwritten.Example
<HUAWEI> system-view [HUAWEI] interface nve 1 [HUAWEI-Nve1] vni 5010 head-end peer-list 2.2.2.2 3.3.3.3
<HUAWEI> system-view [HUAWEI] interface nve 1 [HUAWEI-Nve1] vni 10
vni (System view)
Function
The vni command creates a VXLAN network identifier (VNI) and displays the VNI view. If a VNI has been created, the VNI view is directly displayed.
The undo vni command deletes a configured VNI.
By default, no VNI is created.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI ID. |
The value is an integer ranging from 1 to 16777215. |
Usage Guidelines
Usage Scenario
VNIs, similar to VLAN IDs, are used to differentiate VXLAN segments and identify tenants. A VNI identifies only one tenant. If multiple terminal users share the same VNI, they are considered one tenant. To create a global VNI and enter the VNI view, run the vni command. Then, global VNI configurations can be performed in the view.
Follow-up Procedure
Run the peer ip-address command in the VNI view to create and display the VNI peer view.
vni head-end peer-list protocol bgp
Function
The vni head-end peer-list protocol bgp command configures a dynamic ingress replication list generated by the BGP protocol that contains the IP addresses of those remote VTEPs for a VXLAN network identifier (VNI).
The undo vni head-end peer-list protocol bgp command cancels the configuration.
By default, no ingress replication list is configured for any VNI.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI ID. |
The value is an integer ranging from 1 to 16000000. |
Usage Guidelines
Usage Scenario
After the ingress of a VXLAN tunnel receives broadcast, unknown unicast, and multicast (BUM) packets, it replicates these packets and sends a copy to each VTEP in the ingress replication list. The ingress replication list is a collection of remote VTEP IP addresses to which the ingress of a VXLAN tunnel should send replicated BUM packets.
If a source VTEP on a VXLAN connects to multiple remote VTEPs on the same VXLAN segment, run the vni head-end peer-list command to configure an ingress replication list that contains the IP addresses of those remote VTEPs. After the source NVE receives BUM packets, the local VTEP sends a copy of the BUM packets to every VTEP in the list. To use BGP to dynamically establish Layer 2 VXLAN tunnels, run the vni head-end peer-list protocol bgp command.Configuration Impact
Ingress replication allows BUM packets to be transmitted in broadcast mode, independent of multicast routing protocols.
Precautions
If other configurations are performed for the same VNI on the current NVE interface, the command configuration will be overwritten.
vni mcast-group
Function
The vni mcast-group command enables the multicast replication mode for forwarding BUM packets and sets the multicast replication address of a specific VNI.
The undo vni mcast-group command restores the default setting.
By default, BUM packets are forwarded in ingress replication mode, and no multicast replication address is set.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI. |
The value is an integer ranging from 1 to 16000000. |
ip-address |
Specifies a multicast replication address. |
The value is a multicast IP address in dotted decimal notation and ranges from 224.0.1.0 to 239.255.255.255. |
Usage Guidelines
Usage Scenario
Using the ingress replication mode to forward a large number of Broadcast&Unknown-unicast&Multicast (BUM) packets on a VXLAN network increases the network load and consumes lots of network bandwidth resources. To resolve the issue, run the vni mcast-group command on each VTEP to configure the multicast replication mode. In multicast replication mode, all VTEPs with the same VNI join the same multicast group. A multicast routing protocol, such as PIM, is used to create a multicast forwarding entry for the multicast group. When a VTEP receives a BUM packet from a local VM, it adds a multicast destination IP address to the BUM packet before sends the packet to the remote VTEPs based on the created multicast forwarding entry.
After you run the vni mcast-group command, mappings between VNIs and multicast groups are established. After receiving a VXLAN multicast packet, the VTEP checks the UNI in the packet. If no matching mapping between the VNI and multicast group is found, the VTEP will discard the packet.Precautions
- This command is mutually exclusive with the vni flood-vtep command. In other words, multicast replication and centralized replication of BUM packets cannot be configured together.
- After configuring multicast replication, you can still run the vni head-end peer-list command to generate a remote VTEP address list for VXLAN tunnel establishment. However, multicast replication, instead of ingress replication, is used for BUM packets.
- One VNI can be configured with only one multicast replication address, and multiple VNIs can share one multicast replication address. That is, one VNI can correspond to only one multicast group, but one multicast group can correspond to multiple VNIs.
- This command cannot be used if BIDIR-PIM or PIM-DM has been enabled.
- If a VXLAN VNI has been configured in the BD view and IGMP snooping has been enabled in the BD view, multicast replication of BUM packets for the VNI cannot be enabled on an NVE interface.
- If a VXLAN VNI has been configured in the BD view and IGMP has been enabled (using the igmp enable command) in the VBDIF view of the BD, multicast replication of BUM packets for the VNI cannot be enabled on an NVE interface.
- The multicast replication address of a VNI specified on an NVE interface cannot be the same as the share-group address (multicast-domain share-group).
- A multicast group address in the switch-MDT switch-address pool (multicast-domain switch-group-pool) cannot be used as a multicast replication address for a specified VNI on an NVE's interface.
vxlan anycast-gateway enable
Function
The vxlan anycast-gateway enable command enables distributed gateway.
The undo vxlan anycast-gateway enable command disables distributed gateway.
By default, distributed gateway is disabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
Usage Scenario
To enable distributed gateway on a VBDIF interface and allow the gateway to learn only user-side ARP, ND, or DHCP packets, run the
vxlan anycast-gateway enable command. After distributed gateway is enabled, the gateway:- Processes only received user-side ARP, ND, or DHCP packets and generates host routes accordingly.
- Deletes network-side ARP, ND, or DHCP entries already learned and deletes the corresponding host routes.
Configuration Impact
After distributed gateway is enabled:
- VXLAN tunnel-side static ARP, ND, or DHCP entries cannot be configured on the gateway.
- If distributed gateways have the same IP address, they do not report ARP, ND, or DHCP conflicts.
- If ARP proxy is not enabled but the network-side devices and user-side hosts have the same IP address, the gateways do not report IP address conflict alarms.
vxlan statistics enable
Function
The vxlan statistics enable command enables the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel.
The undo vxlan statistics enable command disables the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel.
By default, the function of collecting VXLAN packet statistics based on the VNI and VXLAN tunnel is disabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
vxlan statistics peer peer-ip vni vni-id enable
vxlan statistics peer peer-ip enable
undo vxlan statistics peer peer-ip vni vni-id enable
undo vxlan statistics peer peer-ip enable
Parameters
Parameter | Description | Value |
---|---|---|
vni vni-id |
Enables VXLAN packets statistics collection based on a specified VNI ID. |
The value is an integer ranging from 1 to 4294967295. |
peer peer-ip |
Enables VXLAN packet statistics collection based on the IP address of the peer VTEP. |
The value is in dotted decimal notation. |
Usage Guidelines
By default, VXLAN traffic statistics collection is disabled. To enable the VXLAN traffic statistics collection function based on a VNI ID and VXLAN tunnel, run the vxlan statistics enable command. If the function of collecting VXLAN packet statistics is disabled, you cannot obtain the statistics.
Example
<HUAWEI> system-view [HUAWEI] interface nve 1 [HUAWEI-Nve1] source 1.1.1.1 [HUAWEI-Nve1] vni 1 head-end peer-list 1.1.1.2 [HUAWEI-Nve1] vxlan statistics peer 1.1.1.2 vni 1 enable
vxlan tunnel-status track exact-route
Function
The vxlan tunnel-status track exact-route command enables subscription to the status of the exact route to a VXLAN tunnel destination.
The undo vxlan tunnel-status track exact-route command disables subscription to the status of the exact route to a VXLAN tunnel destination.
By default, subscription to the status of the exact route to a VXLAN tunnel destination is disabled.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Usage Guidelines
By default, if the exact route to the source IP address of a VXLAN tunnel is reachable and the route to the network segment where the destination IP address resides is reachable, the VXLAN tunnel is considered Up. In actual networking, however, there may be multiple destination addresses on the same network segment. If one destination address is reachable, the network segment is reachable. If an IP address on the network segment is unreachable, the tunnel status is incorrectly reported and network problems cannot be detected in a timely manner. In this case, you can run the vxlan tunnel-status track exact-route command to enable subscription to the status of the exact route to the VXLAN tunnel destination. In this case, the VXLAN tunnel is Up only when the 32-bit or 128-bit host IP address of the destination VTEP is reachable. Otherwise, the VXLAN tunnel is Down.
You can run the display vxlan tunnel command to view the VXLAN tunnel status.vxlan vni
Function
The vxlan vni command creates a VXLAN network identifier (VNI) and binds it to a BD.
The undo vxlan vni command unbinds a VNI from a BD.
By default, no VNI is created.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies the VNI ID. |
The value is an integer ranging from 1 to 16777215. |
vxlan vni (Bridge domain view)
Function
The vxlan vni command creates a VXLAN network identifier (VNI) and maps a VNI to a bridge domain (BD) in 1:1 mode.
The undo vxlan vni command deletes the mapping between a VNI and a BD.
The vxlan vni split-group command configures a mapping VNI to be associated with a BD and specifies the split horizon group (SHG) to which the mapping VNI belongs.
The undo vxlan vni split-group command restores the default configuration.
By default, no VNI is created and no mapping VNI is associated with a BD.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Format
vxlan vni vni-id [ split-group split-group-name ]
undo vxlan vni vni-id [ split-group split-group-name ]
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies the VNI ID. |
The value is an integer ranging from 1 to 16777215. |
split-group split-group-name |
Specifies the ID of the mapping VNI associated with the current BD. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. The string can contain spaces if it is enclosed with double quotation marks ("). |
Usage Guidelines
Usage Scenario
A virtual network (VN) on a VXLAN is a virtual broadcast domain. To allow a BD to function as a VXLAN network entity to transmit VXLAN traffic, run the vxlan vni command to map a VNI to a BD in 1:1 mode.
To implement Layer 2 communication between hosts in different DCs in a scenario where segment VXLAN is used, run the vxlan vni split-group command on transit leaf nodes (edge devices interconnecting the DCs) to configure a mapping VNI to be associated with the BD. The mapping VNI is used for the VXLAN tunnel between the DCs. After this configuration is complete, a transit leaf node replaces the VNI in VXLAN packets received within the DC with the mapping VNI. This configuration decouples the VNI space for a DC's network from the VNI space for the network between DCs and isolates faults. Additionally, to prevent loops when a transit leaf node forwards BUM traffic, the split horizon group to which the mapping VNI belongs must be specified, so that devices within a DC belong to the default SHG, and transit leaf nodes between DCs belong to the specified SHG. In this manner, when a transit leaf node receives BUM traffic, it does not forward traffic to a device belonging to the same SHG, therefore preventing loops.Precautions
This command is mutually exclusive with the port vlan exclude command.
The VNI bound to a VPN instance cannot be bound to a BD. For the same mapping VNI, the split-group parameter in the vxlan vni split-group command must reference the value configured using the vni head-end peer-list split-group or peer split-group command.Example
<HUAWEI> system-view [HUAWEI] bridge-domain 10 [HUAWEI-bd10] vxlan vni 30 split-group p
<HUAWEI> system-view [HUAWEI] bridge-domain 10 [HUAWEI-bd10] vxlan vni 5000
vxlan vni (VPN instance view)
Function
The vxlan vni command binds a VXLAN network identifier (VNI) to a virtual private network (VPN) instance.
The undo vxlan vni command unbinds a VNI from a VPN instance.
By default, a VNI is not bound to any VPN instance.
This command is supported only on the S6730-H-V2 and S5732-H-V2.
Parameters
Parameter | Description | Value |
---|---|---|
vni-id |
Specifies a VNI ID. |
The value is an integer ranging from 1 to 16000000. |
Usage Guidelines
Usage Scenario
To isolate tenants at Layer 3, VPN is generally used. In a distributed VXLAN gateway scenario, to implement Layer 3 communication through a Layer 3 gateway, the Layer 3 gateway must be bound to a VPN instance.
The Layer 3 gateway assigns a Layer 2 VNI to each tenants and a Layer 3 VNI to each tenant identified by a VPN instance. To bind a VNI to a VPN instance, run the vxlan vni command. During Layer 3 communication through the Layer 3 gateway, the VNI ID bound to the VPN instance is transmitted to the remote Layer 3 gateway through the VXLAN tunnel. The remote Layer 3 gateway identifies VPNs based on tenants' VNI IDs to determine whether tenants belong to the same VPN for communication or isolation purposes.Precautions
A VNI can be bound only to one VPN instance.
The VNI bound to a VPN instance cannot be bound to a BD.- advertise l2vpn evpn (BGP multi-instance VPN instance IPv4 address family view)
- advertise l2vpn evpn best-route valid-routes (BGP multi-instance VPN instance IPv4 address family view)
- alarm-threshold route
- assign forward nvo3 udp src-port extend enable
- bridge-domain
- bridge-domain (Layer 2 sub interface view)
- description (Bridge domain view)
- description (VNI peer view)
- display bridge-domain
- display bridge-domain statistics
- display fwm vxlan statistics
- display vxlan peer
- display vxlan statistics
- display vxlan troubleshooting
- display vxlan tunnel
- display vxlan vni
- encapsulation default
- encapsulation dot1q
- encapsulation qinq
- encapsulation untag
- hub-mode enable
- irb-reoriginate irb2ip
- irb-reoriginated without-bridge-domain disable(Global EVPN configuration view)
- irb-reoriginated without-split-group disable(Global EVPN configuration view)
- isolate enable
- isolate remote enable
- l2 binding vlan
- mac rib-only
- mac-address (NVE interface view)
- mac-address static (System view)
- peer (VNI view)
- peer advertise route-reoriginated evpn (BGP multi-instance EVPN view)
- peer advertise route-reoriginated evpn (BGP multi-instance EVPN view) (group)
- peer import reoriginate (BGP multi-instance EVPN view)
- peer import reoriginate (BGP multi-instance EVPN view) (group)
- pip-source peer bypass
- qos phb marking dscp disable
- reserved for vxlan bypass
- reset bridge-domain statistics
- reset fwm vxlan statistics
- reset vxlan statistics
- rewrite (Layer 2 sub-interface view)
- rewrite no-action
- route-distinguisher (EVPN instance view)
- set bridge-domain resource super-mode
- source (NVE interface view)
- statistic enable (Bridge domain view)
- statistic enable (VNI view)
- vni (NVE interface view)
- vni (System view)
- vni head-end peer-list protocol bgp
- vni mcast-group
- vxlan anycast-gateway enable
- vxlan statistics enable
- vxlan tunnel-status track exact-route
- vxlan vni
- vxlan vni (Bridge domain view)
- vxlan vni (VPN instance view)