Configure Switch Native VLAN

Switch>en

Password:

Switch#config t

Switch(config)#vlan 80

Switch(config-vlan)#name native

Switch(config-vlan)#end

Switch#conf t

Switch(config)#

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (1), with Switch FastEthernet0/1 (80).

int fa0/1

Switch(config-if)#switchport trunk native vlan 80

Switch(config-if)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0080. Port consistency restored.

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

Switch(config-vlan)#end

Switch#conf t

Switch(config)#

%CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/1 (1), with Switch FastEthernet0/1 (80).

int fa0/1

Switch(config-if)#switchport trunk native vlan 80

Switch(config-if)#%SPANTREE-2-UNBLOCK_CONSIST_PORT: Unblocking FastEthernet0/1 on VLAN0080. Port consistency restored.

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

Switch(config-if)#end

Switch#show interfaces trunk

Port        Mode         Encapsulation  Status        Native vlan

Fa0/1       on           802.1q         trunking      80

 

Port        Vlans allowed on trunk

Fa0/1       1-99

 

Port        Vlans allowed and active in management domain

Fa0/1       1,50,80,99

 

Port        Vlans in spanning tree forwarding state and not pruned

Fa0/1

Switch#conf t

Switch(config)#vlan 150

Switch(config-vlan)#name voice

Switch(config-vlan)#end

Switch#conf t

Switch(config)#int fa0/20

Switch(config-if)#switchport mode access

Switch(config-if)#switchport access vlan 150

Switch(config-if)#end

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s