mac
160
Usage Guide: The user can use this command to set the VLANs whose traffic allowed to
pass through the Hybrid port, traffic of VLANs not included are prohibited. The difference
between tag and untag mode by setting allowed vlan: set VLAN to untag mode, the frame
sent via hybrid port without VLAN tag; set VLAN to tag mode, the frame sent via hybrid
port with corresponding VLAN tag. The same VLAN can not be allowed with tag and untag
mode by a Hybrid port at the same time. If configure the tag (or untag) allowed VLAN to
untag (or tag) allowed VLAN, the last configuration will cover the previous.
Example: Set hybrid port allowed vlan 1, 3, 5-20 with untag mode and allow vlan 100; 300;
500-2000 with tag mode.
Switch(config)#interface ethernet 1/5
Switch(Config-If-Ethernet1/5)#switchport mode hybrid
Switch(Config-If-Ethernet1/5)#switchport hybrid allowed vlan 1;3;5-20 untag
Switch(Config-If-Ethernet1/5)#switchport hybrid allowed vlan 100; 300; 500-2000 tag
Switch(Config-If-Ethernet1/5)#exit
4.1.31 switchport hybrid native vlan
Command: switchport hybrid native vlan <vlan-id>
no switchport hybrid native vlan
Function: Set the PVID for Hybrid port; the ―no switchport hybrid native vlan‖
command restores the default setting.
Parameter: <vlan-id> is the PVID of Hybrid port.
Command mode: Port Mode.
Default: The default PVID of Hybrid port is 1.
Usage Guide: When an untagged frame enters a Hybrid port, it will be added a tag of the
native PVID which is set by this command, and is forwarded to the native VLAN.
Example: Set the native vlan to 100 for a Hybrid port.
Switch(config)#interface ethernet 1/5
Switch(Config-If-Ethernet1/5)#switchport mode hybrid
Switch(Config-If-Ethernet1/5)#switchport hybrid native vlan 100
Switch(Config-If-Ethernet1/5)#exit
4.1.32 switchport interface
Command: switchport interface [ethernet | portchannel] [<interface-name |
interface-list>]
no switchport interface [ethernet | portchannel] [<interface-name |
interface-list>]










