Switchport Trunk Allowed Vlan; Switchport Trunk Native Vlan - Digitalchina Networks DCS-3950 series Manual

Table of Contents

Advertisement

Switch(Config-ethernet0/0/5)#switchport mode trunk
Switch(Config-ethernet0/0/5)#exit
Switch(Config)#interface ethernet 0/0/8
Switch(Config-ethernet0/0/8)#switchport mode access
Switch(Config-ethernet0/0/8)#exit

9.2.2.6 switchport trunk allowed vlan

Command: switchport trunk allowed vlan {<vlan-list>|all}
no switchport trunk allowed vlan
Function: Configure VLAN lists that can go through the trunk port. If no is put in front of
the command, default values will be recovered.
Parameters: <vlan-list> is the list for VLANs of which the packets can go through the
trunk port. <all> configures the trunk port to allow any packets in any VLANs to go
through.
Command mode: Port Mode.
Default: It is configured by default that any VLAN can go through the trunk port.
Usage Guide: Packets from which VLAN can go through the trunk port can be configured
through this command. And for VLANs that are not configured, packets from the VLAN will
be dropped.
Example: Configure port 5 to be in trunk mode. And make packets from VLAN 1, 3, 5,20
can go through the port.
Switch(Config)#interface ethernet 0/0/5
Switch(Config-ethernet0/0/5)#switchport mode trunk
Switch(Config-ethernet0/0/5)#switchport trunk allowed vlan 1;3;5-20
Switch(Config-ethernet0/0/5)#exit

9.2.2.7 switchport trunk native vlan

Command: switchport trunk native vlan <vlan-id>
no switchport trunk native vlan
Function: Configure the PVID for the trunk port. If no is put in front of the command,
default values will be restored.
Parameters: <vlan-id> is the PVID for the trunk port.
Command mode: Port Mode.
Default: The default PVID for a trunk port is 1.
Usage Guide: PVID is defined in the 802.1Q standard. When a untagged frame is
received by the trunk port, The frame will be attached with the tag which is specified as the
native PVID in this command before the frame is forwarded.
Example: Configure the native PVID to be 100 for ethernet 0/0/5.
Switch(Config)#interface ethernet 0/0/5
Switch(Config-ethernet0/0/5)#switchport mode trunk
Switch(Config-ethernet0/0/5)#switchport trunk native vlan 100
Switch(Config-ethernet0/0/5)#exit
DCS-3950 series Ethernet switch manual
156

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents