Nondefault Native VLAN
Nondefault Native VLAN
Lab Summary
Change the native VLAN on a trunk interface from the default 1 to 999 and allow
VLAN 10, 11 and 100.
Lab Configuration
Switch-1:
Click on switch-1 icon and select CLI folder. Hit <enter> key for user mode prompt.
Step 1: Enter global configuration mode.
switch-1> enable
Password: cisconet
switch-1# configure terminal
Step 2: Enable static trunking on switch-1 interface Fa3/1 and turn off DTP frames.
switch-1(config)# interface fastethernet3/1
switch-1(config-if)# switchport mode trunk
switch-1(config-if)# switchport nonegotiate
Step 3: Change the default native VLAN 1 to nondefault native VLAN 999.
switch-1(config-if)# switchport trunk native vlan 999
Step 4: Allow only VLAN 10, VLAN 11 and VLAN 100 across the trunk interface.
switch-1(config-if)# switchport trunk allowed vlan 10-11,100
switch-1(config-if)# end
switch-1# copy running-config startup-config
Switch-2:
Click on switch-2 icon and select CLI folder. Hit <enter> key for user mode prompt.
Step 6: Enable static trunking on switch-2 interface Fa3/1 and turn off DTP frames.
switch-2(config)# interface fastethernet3/1
switch-2(config-if)# switchport mode trunk
switch-2(config-if)# switchport nonegotiate
Step 7: Change the default native VLAN 1 to nondefault native VLAN 999.
switch-2(config-if)# switchport trunk native vlan 999
Step 8: Allow only VLAN 10, VLAN 11 and VLAN 100 across the trunk interface.
switch-2(config-if)# switchport trunk allowed vlan 10-11,100
switch-2(config-if)# end
switch-2# copy running-config startup-config
Lab Notes
The native VLAN is assigned to the default VLAN 1 by default. Cisco recommends
you assign the native VLAN to any other available VLAN for security purposes. The
native VLAN number must match between neighbor switch interfaces to prevent
VLAN hopping.