16
•
group
•
multicast
routing
(
IP Multicast Command Reference
)
l2vpn enable
Use
l2vpn enable
to enable L2VPN.
Use
undo l2vpn enable
to disable L2VPN.
Syntax
l2vpn enable
undo l2vpn enable
Default
L2VPN is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
You must enable L2VPN before you can configure L2VPN settings.
Examples
# Enable L2VPN.
<Sysname> system-view
[Sysname] l2vpn enable
mac-address static
Use
mac-address static
to add a static remote-MAC address entry.
Use
undo mac-address static
to remove a static remote-MAC address entry.
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 remote MAC address in H-H-H format. Do not specify a multicast MAC
address or an all-zeros 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
.