beautypg.com

19 switchport hybrid native vlan, 20 switchport interface – PLANET XGS3-24040 User Manual

Page 165

background image

11-31

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

11.1.19 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

11.1.20 switchport interface

Command: