default vlan id and native vlan difference

Cisco switches always have VLAN 1 as the default VLAN, which is needed for many protocol communication between switches like spanning-tree protocol for instance.
You can’t change or even delete the default VLAN, it is mandatory.
The native VLAN is the only VLAN which is not tagged in a trunk, in other words, native VLAN frames are transmitted unchanged.
Per default the native VLAN is VLAN 1 but you can change that:
#show interface Fa0/8 trunk
Port        Mode             Encapsulation  Status        Native vlan
Fa0/8       on               802.1q         other         1
(config-if)#switchport trunk native vlan 2
(config-if)#do show interface f0/8 trunk
Port        Mode             Encapsulation  Status        Native vlan
Fa0/8       on               802.1q         other         2
The default VLAN is still VLAN 1.
#show vlan id 1
VLAN Name Status    Ports
—- ——————————– ——— ——————————-
1    default active    Fa0/8, Gi0/1
by default vlan id in cisco and juniper is 1
#sh vlan
VLAN Name                             Status    Ports
—- ——————————– ——— ——————————-
1    default                          active    Fa0/2, Fa0/3, Fa0/4, Fa0/5
# run show vlans
Name           Tag     Interfaces
default        1
vlan-trust     3
fe-0/0/1.0, fe-0/0/2.0, fe-0/0/3.0, fe-0/0/4.0,
fe-0/0/5.0, fe-0/0/6.0, fe-0/0/7.0
-to set ip in vlan
# set interface vlan unit 1 family inet address
-to change native vlan
#set interfaces ge-0/0/0.0 family ethernet-switching native-vlan-id 10

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s