Discovery 3: Troubleshoot VLAN and Trunk Issues: Activity
Discovery 3: Troubleshoot VLAN and Trunk Issues: Activity
com/content/xtrac/2
To troubleshoot VLAN issues when you have no connection between PCs that belong to the same VLAN, follow these high-level steps:
Use the show vlan command to check whether the port belongs to the expected VLAN. If the port is assigned to the wrong VLAN, use the switchport access vlan command to correct the VLAN
membership. Use the show mac address-table command to check which addresses were learned on a particular port of the switch and to which VLAN that port is assigned.
If the VLAN to which the port is assigned is deleted, the port becomes inactive. Use the show vlan or show interfaces switchport command to verify that the VLAN is present in the VLAN
database.
Also note that you can shut the VLAN using shutdown command, so you may need to verify that the VLAN is not disabled using the show vlan command.
Activity
Your task in this discovery is to find the system using the IP address 10.10.10.182 and to disconnect it from the network. You might assume that VLANs are configured by a logical pattern.
Complete the following steps:
Step 1: Access the console of SW1 and display the VLAN configuration to show how incorrect that assumption is.
On the SW1 switch, enter the following command:
SW1# show vlan
Step 7: Using ping from PC3, verify that the offending system, PC3, has access to the network. Attempt to ping R1 (10.10.10.1) from PC3. Ping should be successful.
On PC3, enter the following command:
PC3# ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/1 ms
Step 8: Disable interface Ethernet0/2 on SW1.
On the SW1 switch, enter the following commands:
SW1# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)# interface Ethernet0/2
SW1(config-if)# shutdown
SW1(config-if)#
*Sep 17 07:22:54.192: %LINK-5-CHANGED: Interface Ethernet0/2, changed state to administratively down
*Sep 17 07:22:55.196: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0/2, changed state to down
SW1(config-if)# end
SW1#
*Sep 17 07:22:57.180: %SYS-5-CONFIG_I: Configured from console by console
SW1#
Step 9: The offending system is PC3. Access the console of PC3 and verify that it has been isolated from the network. Attempt to ping R1 (10.10.10.1). The attempt should fail.
On PC3, enter the following command:
PC3# ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
To troubleshoot trunk issues when the trunk is not established, follow these high-level steps:
Use the show interfaces trunk command to check whether the local and peer native VLANs match. If the native VLAN does not match on both sides, VLAN leaking occurs.
Use the show interfaces trunk command to check whether a trunk has been established between switches. You should statically configure trunk links whenever possible. However, Cisco
Catalyst switch ports by default run DTP, which tries to negotiate a trunk link.
Use the show interface trunk command to check whether the desired VLANs have been allowed on both the sides of the trunk link.
<...output omitted...>
Cisco Discovery Protocol notifies you of a native VLAN mismatch on a trunk link with this message:
Aug 31 08:34:48.714: %CDP-4-NATIVE_VLAN_MISMATCH: Native VLAN mismatch discovered on FastEthernet0/3 (2),
with SW2 FastEthernet0/3 (1).
You should statically configure trunk links whenever possible. Cisco Catalyst switch ports by default run DTP. DTP can determine the operational trunking mode and protocol on a switch port
when it is connected to another device that is also capable of dynamic trunk negotiation. Remember that if both ends of a trunk are set to dynamic auto trunk mode, a trunk will not be established.
The example shows the status of the link as "not-trunking."
Complete the following steps:
Step 1: User that is using PC1 is reporting that PC1 can reach PC2 (10.10.10.20), but cannot reach PC4 (10.10.10.40). Help the user find the issue and resolve it. Using the ping command,
access PC1 and verify IP connectivity to PC2 and PC4 to exclude an IP connectivity issue.
On PC1, enter the following commands:
PC1# ping 10.10.10.20
Using the show interface command, check which VLAN is used as native on Ethernet0/1 on SW1 and SW2:
On the SW1 and SW2 switch, enter the following commands:
SW1# show interfaces trunk
Step 6: Using the ping command, verify if native VLAN was the reason for broken connectivity between PC1 and PC4. Access PC1 and verify IP connectivity to PC4.
On PC1, enter the following command:
PC1# ping 10.10.10.40
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.40, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
PC1 still has no connectivity to PC4, so you need to investigate further.
Step 7: You have determined that PC1 and PC4 are both in VLAN 62. Now, you will verify trunk link between SW1 and SW2. Use the show interfaces command on SW1 and SW2 to perform
this verification.
On the SW1 and SW2 switches, enter the following commands:
SW2# show interfaces trunk