30 switchport hybrid native vlan, 30 switchport hybrid native vlan -50 – PLANET WGSW-52040 User Manual

Page 281

Advertising
background image

17-50

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

17.1.30 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

Advertising