Command Reference VLAN Commands
4.9 switchport trunk native vlan
Use this command to configure the native VLAN for the trunk/uplink port. Use the no or default form
of this command to restore the default setting.
switchport trunk native vlan vlan-id
no switchport trunk native vlan
default switchport trunk native vlan
By default, the native VLAN for the trunk/uplink port is VLAN 1.
Interface configuration mode
After this function is enabled, packets not tagged with VLAN ID are taken as native VLAN packets.
Tags are removed from native VLAN packets going out on the trunk port.
The following example configures VLAN 10 as the native VLAN for trunk port GigabitEthernet 0/10.
Ruijie(config)#interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport mode trunk
Ruijie(config-if-GigabitEthernet 0/10)# switch trunk native vlan 10
The following example configures VLAN 10 as the native VLAN for unlink port GigabitEthernet 0/10.
Ruijie(config)#interface gigabitEthernet 0/10
Ruijie(config-if-GigabitEthernet 0/10)# switchport mode uplink
Ruijie(config-if-GigabitEthernet 0/10)# switch trunk native vlan
10
Use this command to enter the VLAN configuration mode. Use the no or default form of this
command to restore the default setting.
vlan { vlan-id | range vlan-range }
no vlan { vlan-id | range vlan-range }