Welcome To Network For You DTP: Networkforyou
Welcome To Network For You DTP: Networkforyou
Welcome
To
Network for you
DTP
VLAN Trunking creates one link between switches that supports as many VLANs as we need.
ISL 802.1Q
Encapsulated (ISL Header 26 Bytes and CRC 4 Tagged (it uses 4 Bytes) it modifies the original frame
Bytes so total is 30 Bytes) CRC stand for
cyclic redundancy check
Encapsulates the old frame in a new frame Add a field to the frame header
DTP Configuration:
• Switch will form a trunk if the neighbor switch port is set to trunk or desirable.
• Trunk will not be formed if both sides are set to auto.
• In newer switches default we have auto.
• Switch will form a trunk if the neighbor switch port is set trunk, desirable or auto.
• Disable DTP
For Layer 3 Switch we use below given command to make trunk Port:
Int f0/1
Switchport trunk encapsulation dot1q
Switchport mode trunk
End
Command Description
Sh int f0/1 switchport This command is for checking status of interface.
Int f0/1 This command is for setting interface as dynamic
Switchport mode dynamic auto Auto.
Command Description
Access Always act as an access (nontrunk) port.
Trunk Always act as trunk port.
Dynamic desirable Initiates negotiation message and responds to
negotiation message to dynamically choose
whether to start using trunking.
Dynamic auto Passively waits to receive trunk negotiation
messages, at which point the switch will respond
and negotiate whether to use trunking.
For Switch 1 we done Static configuration see Mode is “ON” That mean we done Trunk with Static or
Manual method.
For Switch 2 we done Auto (that is Dynamic) when one site we do Trunk other side automatically become
trunk by using DTP protocol and it is called Dynamic trunk method. If you see in above pic it show Mode
auto.
To turn off DTP on a switch port apply the following command under the interface commands
S1(config)#interface g0/0
S1(config-if)#switchport nonegotiate
Troubleshooting Lab1:
PC1 is unable to ping PC2. There are no issues with the PCs; the problem is related to the switch. Let’s see
what happens when we try a ping:
The two computers are unable to ping each other. Let’s do a quick check if there are any interface errors:
The interfaces are looking good, no errors here. Let’s check the VLAN assignments:
At this moment it’s a good idea to check the VLAN information. You can use the show vlan command to
quickly verify to which VLAN the interfaces belong.
As you can see our interfaces are not in the same VLAN. Let’s fix this:
Sw SW1(config)#int g0/1
Sw I SW1(config-if)#switchport access vlan 1001
We’ll move interface g0/1 back to VLAN 1001, both PCs are now in VLAN 1001. Let’s try that ping again:
Troubleshooting Lab2:
PC1 is unable to ping PC2. There are no issues with the PCs; the problem is related to the switch. Let’s see
what happens when we try a ping:
The two computers are unable to ping each other. Let’s do a quick check if there are any interface errors:
The interfaces are looking good, no errors here. Let’s check the VLAN assignments:
At this moment it’s a good idea to check the VLAN information. You can use the show vlan command to
quickly verify to which VLAN the interfaces belong.
So we don’t have trunk that is issues. Try to create trunk between this two switch and verify.
SW1(config)#int g0/1
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk