19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

switchport trunk encapsulation and switchport mode trunk Configuration<br />

- Below shows the configuration sequence of VLAN trunking on a Fast Ethernet interface.<br />

The VLAN trunking encapsulation must be configured (with the switchport trunk<br />

encapsulation interface subcommand) prior to configuring a trunking interface with the<br />

switchport mode trunk interface subcommand.<br />

Switch#sh run int fa0/1<br />

Building configuration...<br />

Current configuration : 68 bytes<br />

!<br />

interface FastEthernet0/1<br />

switchport mode dynamic desirable<br />

end<br />

Switch#<br />

Switch#sh int fa0/1 trunk<br />

Port Mode Encapsulation Status Native vlan<br />

Fa0/12 desirable negotiate other 1<br />

Port Vlans allowed on trunk<br />

Fa0/12 none<br />

Port Vlans allowed and active in management domain<br />

Fa0/12 none<br />

Port Vlans in spanning tree forwarding state and not pruned<br />

Fa0/12 none<br />

Switch#<br />

Switch#conf t<br />

Enter configuration commands, one per line. End with CNTL/Z.<br />

Switch(config)#int fa0/1<br />

Switch(config-if)#switchport mode trunk<br />

Command rejected: An interface whose trunk encapsulation is "Auto" can not<br />

be configured to "trunk" mode.<br />

Switch(config-if)#<br />

Switch(config-if)#switchport trunk encapsulation ?<br />

dot1q Interface uses only 802.1q trunking encapsulation when trunking<br />

isl Interface uses only ISL trunking encapsulation when trunking<br />

negotiate Device will negotiate trunking encapsulation with peer on<br />

interface<br />

Switch(config-if)#switchport trunk encapsulation dot1q<br />

Switch(config-if)#switchport mode trunk<br />

Switch(config-if)#^Z<br />

Switch#<br />

255<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!