209
6.5.2.2.12 switchport mac-vlan enable
Command: switchport mac-vlan enable
no switchport mac-vlan enable
Function:
Enable the MAC-based VLAN function on the port; the "no” form of this
command will disable the MAC-based VLAN function on the port
Parameter:
None
Command Mode:
Port Mode.
Default:
The MAC-base VLAN function is enabled on the port by default
Usage Guide:
After adding a MAC address to specified VLAN, the MAC-based VLAN
function will be globally enabled. This command can disable the MAC-based VLAN
function on specified port to meet special user applications.
Example:
Disable the MAC-based VLAN function on port1.
Switch#config
Switch(config)#interface ethernet 4/1
Switch(Config-If-Ethernet4/1)#no switchport mac-vlan enable
6.5.2.2.13 switchport subnet-vlan enable
Command: switchport subnet-vlan enable
no switchport subnet-vlan enable
Function:
Enable the IP-subnet-based VLAN on the port; the “no” form of this command
disables the IP-subnet-based VLAN function on the port
Parameter:
None
Command Mode:
Port Mode.
Default:
The IP-subnet-based VLAN is enabled on the port by default
Usage Guide:
After adding the IP subnet to specified VLAN, the IP-subnet-based
VLAN function will be globally enabled. This command can disable the IP-subnet-based
VLAN function on specified port to meet special user applications.
Example:
Disable the IP-subnet-based VLAN function on port1.
Switch#config
Switch(config)#interface ethernet 4/1
Switch(Config-If-Ethernet4/1)#no switchport subnet-vlan enable
6.5.3 Typical Application Of The Dynamic VLAN
Scenario
In the office network Department A belongs to VLAN100. Several members of this
department often have the need to move within the whole office network. It is also
required to ensure the resource for other members of the department to access VLAN