port

To enable MAC-based VLAN, protocol- VLAN based, and subnet-based VLAN membership classification in a port, use the command port in Interface Configuration Mode. The no form of the command disables all types of VLAN membership classification or a specified VLAN membership classification in the port.

port

port { {mac-vlan } { | protocol-vlan } { | subnet-vlan} } { }

no port

no port { [mac-vlan] } { [protocol-vlan] } { [subnet-vlan] } { }

Parameters

Parameter Type Description
mac-vlan   Enter to enable MAC-based VLAN membership classification in a port. VLAN membership classification is done based on the MAC address of the source of the received packets. By default, MAC based VLAN classification is disabled on all ports.
Note:

MAC based VLAN membership classification can be enabled or disabled in the ports without depending on the global status of the MAC based VLAN membership classification.

Note:

The change in global MAC based VLAN membership classification overrides the port membership classification. For example, If the classification in the port is set as enabled while global classification is disabled, and if global classification is changed as enabled and once again to disabled, the classification in the port will be automatically set as disabled.

Note:

MAC based VLAN membership classification can be enabled / disabled in the switch, only if the VLAN switching feature is started and enabled in the switch

subnet-vlan   Enter to enable subnet-based VLAN membership classification in a port. The source IP address in received packet is matched to a VLAN ID using an administrator configured table to perform VLAN membership classification.
protocol-vlan   Enter to enable protocol-based VLAN membership classification in a port. VLAN membership classification is done for all untagged and priority-tagged frames based on the port-protocol group / higher layer protocol for the port.

Mode

Interface Configuration Mode

Prerequisites

  • All types of VLAN based membership classification can be enabled or disabled in the ports without depending on the global status of the protocol-VLAN based membership classification.
  • The change in all types global VLAN based membership classification overrides the port membership classification. For example, If the classification in the port is set as enabled while global classification is disabled, and if global classification is changed as enabled and once again to disabled, the classification in the port will be automatically set as disabled.All types of VLAN based membership classification can be enabled / disabled in the switch, only if the VLAN switching feature is started and enabled in the switch.

Examples

iS5Comm(config-if)# port mac-vlan

iS5Comm(config-if)# port subnet-vlan

iS5Comm(config-if)# port protocol-vlan

iS5Comm(config-if)# no port protocol-vlan

iS5Comm(config-if)# no ports