12
Examples
# Set the VXLAN statistics collection interval to 30 seconds.
<Sysname> system-view
[Sysname] l2vpn statistics interval 30
mac-address static vsi
Use
mac-address static vsi
to add a static remote-MAC address entry for a VXLAN VSI.
Use
undo mac-address static vsi
to remove static remote-MAC address entries for a VXLAN
VSI.
Syntax
mac-address static
mac-address interface tunnel
tunnel-number
vsi
vsi-name
undo mac-address static
[
mac-address
]
[
interface tunnel
tunnel-number
]
vsi
vsi-name
Default
VXLAN VSIs do not have static remote-MAC address entries.
Views
System view
Predefined user roles
network-admin
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. The value range for the
tunnel-number
argument is 0 to 10239. The tunnel interface
must already exist.
vsi vsi-name
: Specifies a VSI name, a case-sensitive string of 1 to 31 characters.
Usage guidelines
A remote MAC address is the MAC address of a VM in a remote site. Remote MAC entries include
manually added MAC entries, dynamically learned MAC entries, and MAC entries advertised
through a protocol, for example, BGP EVPN.
When you add a remote MAC address entry, make sure the specified VSI's VXLAN has been
assigned the specified VXLAN tunnel.
The
undo mac-address static vsi
vsi-name
command removes all static MAC address
entries for a VSI.
Do not configure static remote-MAC entries for tunnels that are automatically established by using
EVPN.
•
EVPN re-establishes tunnels if the transport-facing interface goes down and then comes up. If
you have configured static remote-MAC entries, the entries are deleted when the tunnels are
re-established.
•
EVPN re-establishes tunnels if you perform configuration rollback. If the tunnel IDs change
during tunnel re-establishment, configuration rollback fails, and static remote-MAC entries on
the tunnels cannot be restored.