<Sysname> system-view
[Sysname] interface virtual-ethernet 2/4/1
[Sysname-Virtual-Ethernet2/4/1]
# Create VE subinterface Virtual-Ethernet 2/4/1.1 and enter its view.
<Sysname> system-view
[Sysname] interface virtual-ethernet 2/4/1.1
[Sysname-Virtual-Ethernet2/4/1.1]
mac-address
Use mac-address to specify the MAC address for a VE interface.
Use undo mac-address to restore the default.
Syntax
mac-address mac-address
undo mac-address
Default
The MAC address of the VE interface is the bridge MAC address of the device.
Views
VE interface view
Predefined user roles
network-admin
Parameters
mac-address: Specifies the MAC address in the format of H-H-H.
Usage guidelines
A VE interface uses the bridge MAC address of the device as its MAC address. As a result, all VE
interfaces share the same MAC address. You must use the mac-address command to specify a
MAC address for each VE interface in the following condition:
•
The VE interfaces are connected to a DHCP server through different PVCs.
•
The VE interfaces need to obtain IP addresses from the DHCP server through static allocation.
Examples
# Set the MAC address of VE interface Virtual-Ethernet 2/4/1 to 0001-0001-0001.
<Sysname> system-view
[Sysname] interface virtual-ethernet 2/4/1
[Sysname-Virtual-Ethernet2/4/1] mac-address 1-1-1
map bridge
Use map bridge to create an IPoEoA mapping or PPPoEoA mapping for a PVC or PVC-group.
Use undo map bridge to delete the mapping.
Syntax
map bridge virtual-ethernet interface-number
undo map bridge
210