Command Reference MAC VLAN Commands
Specifies the MAC address.
Specifies the MAC address mask, with the high bits being all 1 in
binary. This field is full of F by default.
Specifies the VLAN corresponding to the MAC address. The range is
from 1 to 4,094.
Specifies the 802.1p priority of the VLAN corresponding to the MAC
address. The range is from 0 to 7. The default value is 0.
No static MAC VLAN entry is configured by default.
Global configuration mode
Use this command to configure a static MAC VLAN entry including the MAC address, VLAN ID and
VLAN priority. Use the no form of this command to remove the static MAC VLAN entry.
The following example configures a static MAC VLAN entry.
Ruijie(config)# mac-vlan mac-address 0001.0001.0001 vlan 100 priority 3
Ruijie(config)# mac-vlan mac-address 0002.0002.0000 mask ffff.ffff.0000 vlan
200 priority 5
Use this command to display the MAC VLAN entries.
show mac-vlan { all | dynamic | static | vlan vlan-id | mac-address mac-address [ mask
mac-mask ] }
Displays all MAC VLAN entries.
Displays the dynamic MAC VLAN entries.
Displays the static MAC VLAN entries.
Displays the MAC VLAN entry of the specified MAC address.
Displays the MAC VLAN entry of the specified MAC address range.