13
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 20479. 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.
Examples
# Add MAC address
000f-e201-0101
to VSI
vsi1
. Specify Tunnel-interface 1 as the outgoing
interface.
<Sysname> system-view
[Sysname] mac-address static 000f-e201-0101 interface tunnel 1 vsi vsi1
Related commands
vxlan tunnel mac-learning disable
mtu
Use
mtu
to set the MTU for a VSI.
Use
undo mtu
to restore the default.
Syntax
mtu
size
undo mtu
Default
The default MTU of a VSI is 1500 bytes.
Views
VSI view