Page 2
The information in this document is subject to change without notice. All contents in this document, including statements, information, and recommendations, are believed to be accurate, but they are presented without warranty of any kind, express or implied. H3C shall not be liable for technical or editorial errors or omissions contained herein.
Page 3
Preface This command reference describes the commands for configuring VXLAN. This preface includes the following topics about the documentation: • Audience. • Conventions. • Documentation feedback. Audience This documentation is intended for: • Network planners. • Field technical support and servicing engineers. •...
Page 4
Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information.
Page 5
Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
Default A VSI does not have a description. Views VSI view Predefined user roles network-admin mdc-admin Parameters text : Specifies a description, a case-sensitive string of 1 to 80 characters. Examples # Configure a description for VSI vpn1. <Sysname> system-view [Sysname] vsi vpn1 [Sysname-vsi-vpn1] description vsi for vpn1 Related commands...
count : Displays the number of ARP flood suppression entries that match the command. Examples # Display ARP flood suppression entries. <Sysname> display arp suppression vsi IP address MAC address Vsi Name Link ID Aging 1.1.1.2 000f-e201-0101 vsi1 0x5000000 1.1.1.3 000f-e201-0202 vsi1 0x5000001 1.1.1.4...
Page 10
Usage guidelines If you do not specify any parameters, this command displays brief L2VPN information for all Layer 3 interfaces that are mapped to VSIs. Examples # Display brief L2VPN information for all Layer 3 interfaces that are mapped to VSIs. <Sysname>...
display l2vpn mac-address Use display l2vpn mac-address to display MAC address entries for VSIs. Syntax display l2vpn mac-address [ vsi vsi-name ] [ dynamic ] [ count ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vsi vsi-name : Specifies a VSI name, a case-sensitive string of 1 to 31 characters. If you do not specify a VSI, this command displays MAC address entries for all VSIs.
Field Description OpenFlow. For a local MAC address, this field displays the AC's link ID on the VSI. Link ID/Name For a remote MAC address, this field displays the tunnel interface name. Entry aging state: • Aging Aging. • NotAging. Related commands reset l2vpn mac-address display l2vpn vsi...
Page 13
# Display detailed information about all VSIs. <Sysname> display l2vpn vsi verbose VSI Name: vpna VSI Index VSI State : Up : 1500 Bandwidth Broadcast Restrain : 5120 kbps Multicast Restrain Unknown Unicast Restrain: 5120 kbps MAC Learning : Enabled MAC Table Limit Drop Unknown : Disabled...
Page 14
Field Description MAC address entry learning rate of the VSI. If this field is not supported in the MAC Learning Rate current software version, a hyphen (-) is displayed. Action on source MAC-unknown frames received after the maximum number of Drop Unknown MAC entries is reached.
display vxlan tunnel Use display vxlan tunnel to display VXLAN tunnel information for VXLANs. Syntax display vxlan tunnel [ vxlan-id vxlan-id [ tunnel tunnel-number ] ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vxlan-id : Specifies a VXLAN ID in the range of 0 to 16777215. If you do not specify a VXLAN, this command displays VXLAN tunnel information for all VXLANs.
Packets: 15539 Output statistics: Octets : 0 Packets: 0 Table 7 Command output Field Description Link ID Tunnel's link ID in the VXLAN. Tunnel state: • Up—The tunnel is operating correctly. • Blocked—The tunnel is a backup proxy tunnel. Its tunnel interface is up, but the State tunnel is blocked because the primary proxy tunnel is operating correctly.
undo flooding disable Default Flooding is enabled for a VSI. Views VSI view Predefined user roles network-admin mdc-admin Usage guidelines By default, the device floods unknown unicast frames received from the local site to the following interfaces in the frame's VXLAN: •...
[Sysname] l2vpn enable l2vpn statistics interval Use l2vpn statistics interval to set the VXLAN statistics collection interval. Use undo l2vpn statistics interval to restore the default. Syntax l2vpn statistics interval interval undo l2vpn statistics interval Default The VXLAN statistics collection interval is 15 minutes. Views System view Predefined user roles...
Parameters mac - address : Specifies a MAC address in H-H-H format. Do not specify a multicast MAC address, all-zeros MAC address, or all-Fs MAC address. You can omit the consecutive zeros at the beginning of each segment. For example, you can enter f-e2-1 for 000f-00e2-0001. interface tunnel tunnel-number : Specifies a VXLAN tunnel interface by its tunnel interface number.
Predefined user roles network-admin mdc-admin Parameters size : Specifies an MTU value. The value range for this argument is 300 to 65535. Usage guidelines The MTU set by using this command limits the maximum length of the packets that a VSI receives from ACs and forwards through VXLAN tunnels.
Examples # Specify VXLAN 10000 as the reserved VXLAN. <Sysname> system-view [Sysname] reserved vxlan 10000 Related commands mapping vni (EVPN Command Reference) reset arp suppression vsi Use reset arp suppression vsi to clear ARP flood suppression entries on VSIs. Syntax reset arp suppression vsi [ name vsi-name ] Views User view...
Usage guidelines Use this command when the number of dynamic MAC address entries reaches the limit or the device learns incorrect MAC addresses. Examples # Clear the dynamic MAC address entries on VSI vpn1. <Sysname> reset l2vpn mac-address vsi vpn1 Related commands display l2vpn mac-address vsi reset l2vpn statistics tunnel...
mdc-admin Parameters mac-address : Specifies a MAC address. The MAC address cannot be all Fs. Usage guidelines This command excludes a remote MAC address from the flood suppression done by using the flooding disable command. The VTEP will flood the frames destined for the specified MAC address to remote sites when unknown-unicast floods are confined to the local site.
tunnel Use tunnel to assign a VXLAN tunnel to a VXLAN. Use undo tunnel to remove a VXLAN tunnel from a VXLAN. Syntax tunnel tunnel-number [ flooding-proxy ] undo tunnel tunnel-number Default A VXLAN does not contain VXLAN tunnels. Views VXLAN view Predefined user roles network-admin...
tunnel global source-address Use tunnel global source-address to specify a global source address for VXLAN tunnels. Use undo tunnel global source-address to restore the default. Syntax tunnel global source-address ip-address undo tunnel global source-address Default No global source address is specified for VXLAN tunnels. Views System view Predefined user roles...
Usage guidelines This command enables packet statistics only for VXLAN tunnels. It does not take effect on VXLAN-DCI tunnels. Examples # Enable packet statistics for all VXLAN tunnels associated with VSI vpna. <Sysname> system-view [Sysname] vsi vpna [Sysname-vsi-vpna] tunnel statistics enable Related commands display vxlan tunnel Use vsi to create a VSI and enter its view, or enter the view of an existing VSI.
vxlan Use vxlan to create a VXLAN and enter its view, or enter the view of an existing VXLAN. Use undo vxlan to restore the default. Syntax vxlan vxlan-id undo vxlan Default No VXLANs exist. Views VSI view Predefined user roles network-admin mdc-admin Parameters...
mdc-admin Usage guidelines VXLAN fast forwarding enables the device to bypass QoS and security services when the device forwards data traffic over VXLAN tunnels based on the software. As a best practice, enable this feature to improve forwarding speed only when QoS and security services are not configured on the following interfaces: •...
vxlan local-mac report Use vxlan local-mac report to enable local-MAC logging. Use undo vxlan local-mac report to disable local-MAC logging. Syntax vxlan local-mac report undo vxlan local-mac report Default Local-MAC logging is disabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines When the local-MAC logging feature is enabled, the VXLAN module immediately sends a log...
Usage guidelines When network attacks occur, use this command to prevent the device from learning incorrect remote MAC addresses in the data plane. Examples # Disable remote-MAC address learning. <Sysname> system-view [Sysname] vxlan tunnel mac-learning disable vxlan udp-port Use vxlan udp-port to set the destination UDP port number for VXLAN packets. Use undo vxlan udp-port to restore the default.
Page 31
Views Interface view Predefined user roles network-admin mdc-admin Parameters vsi-name : Specifies the VSI name, a case-sensitive string of 1 to 31 characters. access-mode : Specifies an access mode. If the AC is a Layer 3 subinterface, you can specify this keyword.
bandwidth Use bandwidth to set the expected bandwidth for a VSI interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) equals the interface baudrate divided by 1000. Views VSI interface view Predefined user roles network-admin mdc-admin...
This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions. To resolve this problem: Use the display this command in interface view to identify these commands. Use their undo forms or follow the command reference to restore their default settings. If the restoration attempt still fails, follow the error message instructions to resolve the problem.
Page 35
Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vsi-interface [ vsi-interface-id ] : Specifies a VSI interface by its number. Make sure the specified VSI interface has been created on the device. If you do not specify the vsi-interface [ vsi-interface-id ] option, this command displays information about all interfaces except for VA interfaces.
Page 36
Field Description state is down. • UP—The interface is both administratively and physically up. Data link layer state of the interface: • UP—The data link layer protocol is up. • Line protocol state UP(spoofing)—The data link layer protocol is up, but the link is an on-demand link or does not exist.
Page 37
Field Description Last 300 seconds output rate Average output rate for the last 300 seconds. Incoming traffic statistics on the interface: • Number of incoming packets. Input: 0 packets, 0 bytes, 0 drops • Number of incoming bytes. • Number of dropped incoming packets. Outgoing traffic statistics on the interface: •...
Field Description is an on-demand link or does not exist. The (s) attribute represents the spoofing flag. • DOWN—The data link layer protocol of the interface is down. Primary IP address of the interface. This field displays two hyphens (--) if Primary IP the interface does not have an IP address.
Use undo gateway subnet to remove a subnet from a VSI. Syntax gateway subnet ipv4-address wildcard-mask ipv6-address prefix-length } undo gateway subnet { ipv4-address wildcard-mask ipv6-address prefix-length } Default No subnet is assigned to a VSI. Views VSI view Predefined user roles network-admin mdc-admin Parameters...
Default No gateway interface is specified for a VSI. Views VSI view Predefined user roles network-admin mdc-admin Parameters vsi-interface-id : Specifies an existing VSI interface by its number. The value range for this argument is 0 to 8191. You can create a maximum of 1024 VSI interfaces. Usage guidelines A VSI can have only one gateway interface.
Examples # Create VSI-interface 100 and enter VSI interface view. <Sysname> system-view [Sysname] interface vsi-interface 100 [Sysname-Vsi-interface100] Related commands gateway vsi-interface mac-address Use mac-address to assign a MAC address to a VSI interface. Use undo mac-address to restore the default. Syntax mac-address mac-address undo mac-address...
Views VSI interface view Predefined user roles network-admin mdc-admin Parameters size : Specifies an MTU value in the range of 46 to 9600 bytes. Examples # Set the MTU to 1430 bytes for VSI-interface 100. <Sysname> system-view [Sysname] interface vsi-interface 100 [Sysname-Vsi-interface100] mtu 1430 reset counters interface vsi-interface Use reset counters interface vsi-interface to clear packet statistics on VSI interfaces.
Syntax shutdown undo shutdown Default A VSI interface is not manually shut down. Views VSI interface view Predefined user roles network-admin mdc-admin Examples # Shut down VSI-interface 100. <Sysname> system-view [Sysname] interface vsi-interface 100 [Sysname-Vsi-interface100] shutdown vtep group member local Use vtep group member local to assign the local VTEP to a VTEP group.
[Sysname] vtep group 1.1.1.1 member local 2.2.2.2 Related commands vtep group member remote vtep group member remote Use vtep group member remote to specify a VTEP group and its member VTEPs. Use undo vtep group member remote to remove a VTEP group and its member VTEPs. Syntax vtep group group-ip member remote member-ip&<1-8>...
Page 45
Predefined user roles network-admin mdc-admin Usage guidelines By default, the device learns ARP information of remote VMs from packets received on VXLAN tunnel interfaces. To save resources on VTEPs in an SDN transport network, you can temporarily disable remote ARP learning when the controller and VTEPs are synchronizing entries. After the entry synchronization is completed, use the undo vxlan tunnel arp-learning disable command to enable remote ARP learning.