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.
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:
|
|
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. |
VLAN Configuration Mode
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