switchport hybrid allowed vlan
This topic explains the command that adds an interface to one or more VLANs as a tagged or untagged member.
|
Syntax |
switchport hybrid allowed vlan add vlan-list [tagged | untagged] switchport hybrid allowed vlan add vlan-list switchport hybrid allowed vlan remove vlan-list |
|
Parameter |
|
|
Default |
Each interface is an untagged member of VLAN 1. When you add an interface to a VLAN, by default it is a tagged member. |
|
Mode |
Interface Configuration |
|
Usage |
Use this command to add an interface to a VLAN. Use the switchport hybrid allow vlan remove port configuration command to remove vlan on interface. You can verify your setting in the output of the |
Switch (config)# interface 1/0/10
Switch (config-if)# switchport hybrid allowed vlan add 100-105
Switch (config-if)# switchport hybrid allowed vlan remove 105
Switch# show interfaces switchport 1/0/10
Port : 1/0/10
Port Mode : Hybrid
Gvrp Status : disabled
Ingress Filtering : disabled
Acceptable Frame Type : tagged-only
Ingress UnTagged VLAN ( NATIVE ) : 100
Trunking VLANs Enabled:
Port is member in:
Vlan Name Egress rule
------- ------------------------------- -----------------
1 default Untagged
100 VLAN-one-hundred Tagged
101 VLAN0101 Tagged
102 VLAN0102 Tagged
103 VLAN0103 Tagged
104 VLAN0104 Tagged
Forbidden VLANs:
Vlan Name
------- -----------------------