You are on page 1of 2

1.WHAT IS NATIVE VLAN?

--it is used to support untagged traffic to the trunk port


--if a switch receives an untagged frame then it is forwarded to the native vlan
--switch does not tag frames which belong to native vlan
--support only dot1q
--by default VLAN1 is the native vlan
--on a single trunk port a single native vlan can be configured
--it is advised to configure native vlan id as any number which is not used in the
network
--no ports should be assigned to native vlan
--for cisco switches native vlan id must be same on both the trunk ports

2.NATIVE VLAN VERIFICATION COMMAND


i)#show interfaces trunk
ii)#show interfaces <port no.> switchport

3.CONFIGURE NATIVE VLAN BETWEEN TWO SWITCHES WITH A HUB


i)configure 3 vlans on both the switches
ii)assign ports to the respective vlans on both the switches
iii)configure trunk port on both the switches
iv)ping all pcs with each other
pc1----pc2---no reply(vlan is different)
pc1----pc3---no reply(vlan is different)
pc1----pc4---no reply(connected with hub)
pc1----pc5---no reply(connected with hub)
pc1----pc6---reply is coming
pc1----pc7---no reply(vlan is different)
pc1----pc8---no reply(vlan is different)

--repeat this thing with every pc


--we can see respective vlan pcs will communicate with each other but pcs connected
with the hub can not communicate with the vlan pc because hub can not understand
the tagged frame
--to establish the communication between the pcs belong to switch and huib we need
to configure native vlan because native vlan can establish the communication
between untagged frame

v)configure native vlan


sw1(config)=int <trunk port no.>--------syntax
sw1(config)#interface f0/1
Switch(config-if)#switchport trunk native vlan <vlan number>---------syntax
Switch(config-if)#switchport trunk native vlan 2

--once we configure native vlan on a trunk a message is displayed on other


switches"native vlan mismatch" because on a cisco switch native vlan number must be
same on both the trunk ports on bothe the switches
sw1=native vlan 2
sw2=native vlan 1

--if we run "show spanning-tree" command we can see the trunk port is in blocking
state due to the native vlan numbers mismatch

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1


(2), with sw2 FastEthernet0/1 (1).

sw1#show spanning-tree
f0/1 is in blocking state
vi)verify the native vlan
sw1#show interface trunk

vii)configure the same native vlan on the switch 2 also on trunk port
sw1(config)#interface f0/1
Switch(config-if)#switchport trunk native vlan 2
Switch(config-if)#^z
sw1#show interface trunk
--we can see trunk port is coming gradually to the unblocking state or forwarding
state because native vlan numbers become same on both the trunks port

%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0001. Port


consistency restored.

5.CONFIGURE NATIVE VLAN USING SWITCH AND ROUTER AND HUB

You might also like