20 switchport trunk native vlan – PLANET WGSW-50040 User Manual

Page 132

Advertising
background image

default setting.

Parameter:

WORD: specified VIDs; keyword;

all: all VIDs, the range from 1 to 4094;

add: add assigned VIDs behind allow vlan;

except: all VID add to allow vlan except assigned VIDs;

remove: delete assigned allow vlan from allow vlan list.

Command mode:

Port Mode.

Default:

Trunk port allows all VLAN traffic by default.

Usage Guide:

The user can use this command to set the VLAN traffic allowed to passthrough the Trunk port; traffic

of VLANs not included are prohibited.

Example:

Set Trunk port to allow traffic of VLAN1, 3, 5-20.

Switch(config)#interface ethernet 1/5

Switch(Config-If-Ethernet1/5)#switchport mode trunk

Switch(Config-If-Ethernet1/5)#switchport trunk allowed vlan 1;3;5-20

Switch(Config-If-Ethernet1/5)#exit

7.1.20 switchport trunk native vlan

Command:

switchport trunk native vlan <vlan-id>

no switchport trunk native vlan

Function:

Set the PVID for Trunk port; the “no switchport trunk native vlan” command restores the default

setting.

Parameter:

<vlan-id> is the PVID for Trunk port.

Command mode:

Port Mode.

Default:

The default PVID of Trunk port is 1.

Usage Guide:

PVID concept is defined in 802.1Q. PVID in Trunk port is used to tag untagged frames. When a

Advertising