4 mac-vlan vlan, 5 protocol-vlan – PLANET WGSW-50040 User Manual

Page 136

Advertising
background image

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

7.2.4 mac-vlan vlan

Command:

mac-vlan vlan <vlan-id>

no mac-vlan vlan <vlan-id>

Function:

Configure the specified VLAN to MAC VLAN; the “no mac-vlan vlan <vlan-id>” command cancels

the MAC VLAN configuration of this VLAN.

Parameter:

<vlan-id> is the number of the specified VLAN.

Command Mode:

Global Mode.

Default:

No MAC VLAN is configured by default.

Usage Guide:

Set specified VLAN for MAC VLAN, There can be only one MAC VLAN at the same time.

Example:

Set VLAN100 to MAC VLAN.

Switch#config

Switch(config)#mac-vlan vlan 100

7.2.5 protocol-vlan

Advertising