Command
Function
Switch(config-if-GigabitEthernet-0/1)#
switch mode trunk
Identify the port type to be 2 layers
Trunk port
Switch(config-if-GigabitEthernet-0/1)#
switch trunk native vlan
vlan-id
Specify a Native VLAN for this interface
Native VLAN
You can set a common Ethernet port or a link-aggregation port as a Trunk port.
(
Please refer to
link-aggregation port for link-aggregation port deatils.
Use switch mode Command to switch a port between access mode and truck mode.
Command
Function
S
t
e
p
1
Switch(config-if-GigabitEthernet-0/1)#
switch mode access
Set a port to be Access mode.
S
t
e
p
2
Switch(config-if-GigabitEthernet-0/1#
switch mode trunk
Set a port to be Trunk mode.
Must assigned a Native VLAN for Trunk port. So called Native VLAN is received and sent by this port.
UNTAG packets are belonged to this VLAN.
。
Obvious
,
the default VLAN ID of this port
这 个(
PVID
of IEEE
802.1Q is Native VLAN
’s VLAN ID
,
transmit frame belonged to Native VLAN on the trunk must take
UNTAG method. Each Trunk’s default Native VLAN is VLAN1.
,
When configure the Trunk link, please
confirm the ports on the link two sides are using the same native vlan.
6.3.2.
Configure a Trunkport
In the interface configuration mode,you can configure a port to be a Trunk port.
Step 1
Step 2