3 mac-vlan, 4 mac-vlan vlan – PLANET XGS3-24040 User Manual
Page 174
11-40
Switch#config
Switch(config)#dynamic-vlan subnet-vlan prefer
11.2.3 mac-vlan
Command:
mac-vlan mac
no mac-vlan {mac
Function:
Add the correspondence between MAC address and VLAN, namely specify certain MAC address to
join specified VLAN. The “no” form of this command deletes all/the correspondence.
Parameter:
mac-address is the MAC address which is shown in the form of XX-XX-XX-XX-XX-XX,vlan-id is the
ID of the VLAN with a valid range of 1~4094;priority-id is the level of priority and is used in the VLAN
tag with a valid range of 0~7;all refers to all the MAC addresses.
Command Mode:
Global Mode.
Default:
No MAC address joins the VLAN by default.
Usage Guide:
With this command user can add specified MAC address to specified VLAN. If there is a non VLAN
label data packet enters from the switch port from the specified MAC address, it will be assigned
with specified VLAN ID so sent enter specified VLAN. Their belonging VLAN are the same no
matter which port did they enter through. The command does not have any interfere on the VLAN
label data packet.
Example:
Add network device of MAC address as 00-30-4f-11-22-33 to VLAN 100.
Switch#config
Switch(config)#mac-vlan mac 00-30-4f-11-22-33 vlan 100 priority 0
11.2.4 mac-vlan vlan
Command:
mac-vlan vlan
no mac-vlan vlan
Function:
Configure the specified VLAN to MAC VLAN; the “no mac-vlan vlan
the MAC VLAN configuration of this VLAN.
Parameter:
<vlan-id> is the number of the specified VLAN.
Command Mode:
Global Mode.