vlan

To activate a VLAN in the switch, set the VLAN egress Ethertype, set the loopback-related configuration, and unicast-mac learning limit for a Dynamic VLAN, use the command vlan in VLAN Configuration Mode. The no form of this command resets the VLAN egress Ethertype and the unicast- MAC learning limit for the VLAN to the default values.

vlan

vlan { {active }
{ | egress } { ether-type } { | QINQ } { | STAG } { | QINQ } { | user-defined} }
{ | loopback } { {enable } { | disable} }
{ | unicast-mac } { learning } { limit } { <limit value(0-4294967295)>} }

Parameters

Parameter Type Description
active   Enter activate a VLAN in the switch.
Note:

Only default VLAN (VLAN 1) is activated once the switch is started.

egress   Enter to set the VLAN Egress Ethertype.
ether-type   Enter to set the VLAN Egress Ethertype.
CTAG   Enter to configure the secondary Ethertype as 0x8100. This is the default option of CTAG (C-tag) (0x8100).
STAG   Enter to configure the secondary Ethertype as 0x9100.
QINQ   Enter to configure the secondary Ethertype as
user-defined   Enter to configure the user-defined TPID as VLAN Egress Ethertype.
Note:

This value can be set only if user-defined TPID is configured.

loopback   Enter to sets the loopback status for the VLAN interface
enable   Enter to enable loopback feature for the VLAN interface. When loopback is enabled, all data packets received in the vlan will be sent back in the same port from which the packets are received
disable   Enter to disable loopback feature for the VLAN interface. This is default.
unicast-mac   Enter to select unicast MAC.
learning   Enter to select unicast MAC learning. Note that:
  • VLAN unicast MAC learning limit configuration is allowed only in case of independent VLAN learning mode.
  • VLAN unicast-MAC learning limit cannot be configured for the VLAN, if the base bridge mode is set as transparent bridging.
  • The unicast-MAC learning limit set for the VLAN should not exceed the unicast MAC learning limit configured for the switch.
  • VLAN unicast-MAC learning limit can be configured only in the VLANs that are activated.
limit   Enter to configure the unicast-MAC learning limit for a switch. The limit represents the maximum number of distinct unicast MAC addresses that can be learnt in the switch.
Note:

The limiting value should not be less than the unicast MAC learning limit set for any of the VLAN

Note:

Unicast-MAC learning limit cannot be configured in the switch, if the VLAN switching feature is shutdown in the switch.

<limit value(0-4294967295)> Integer Enter a value for the learning limit. The limit represents the maximum number of distinct unicast MAC addresses that can be learnt in the switch. This value ranges from 0 to 4294967295. he maximum number of unicast MAC addresses that can be learnt is 950. The maximum limit that can be configured for a VLAN is dependent on the total size available for dynamic unicast entries in the forwarding table and on the maximum number of VLANs that can be supported.

Mode

VLAN Configuration Mode

Examples

iS5Comm(config-vlan)# vlan active

iS5Comm(config-vlan)# unicast-mac learning limit 300

iS5Comm(config-vlan)# vlan egress ether-type CTAG

iS5Comm(config-vlan) # vlan loopback enable