2 dynamic-vlan subnet-vlan prefer, 3 mac-vlan – PLANET WGSW-50040 User Manual

Page 135

Advertising
background image

SwitchA#config

SwitchA(config)#dynamic-vlan mac-vlan prefer

7.2.2 dynamic-vlan subnet-vlan prefer

Command:

dynamic-vlan subnet-vlan prefer

Function:

Set the IP-subnet-based VLAN preferred.

Command Mode:

Global Mode.

Default:

MAC-based VLAN is preferred by default.

Usage Guide:

Configure the preference of dynamic-vlan on switch. The default priority sequence is MAC-based

VLAN、IP-subnet-based VLAN、Protocol-based VLAN, namely the preferred order when several

dynamic VLAN is available. This command is used to set to preferring the IP-subnet-based VLAN.

Example:

Set the IP-subnet-based VLAN preferred.

Switch#config

Switch(config)#dynamic-vlan subnet-vlan prefer

7.2.3 mac-vlan

Command:

mac-vlan mac <mac-addrss> vlan <vlan-id> priority <priority-id>

no mac-vlan {mac <mac-addrss>|all}

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.

Advertising