Lab - Troubleshooting Inter-VLAN Routing (Instructor)
Lab - Troubleshooting Inter-VLAN Routing (Instructor)
Instructor Note: Red font color or Gray highlights indicate text that appears in the instructor copy only.
Topology
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 21
Lab – Troubleshooting Inter-VLAN Routing
Addressing Table
Objectives
Part 1: Build the Network and Load Device Configurations
Part 2: Troubleshoot the Inter-VLAN Routing Configuration
Part 3: Verify VLAN Configuration, Port Assignment, and Trunking
Part 4: Test Layer 3 Connectivity
Background / Scenario
The network has been designed and configured to support three VLANs. Inter-VLAN routing is provided by an
external router using an 802.1Q trunk, also known as router-on-a-stick. Routing to a remote web server,
which is simulated by Lo0, is also provided by R1. However, it is not working as designed, and user
complaints have not given much insight into the source of the problems.
In this lab, you must first define what is not working as expected, and then analyze the existing configurations
to determine and correct the source of the problems. This lab is complete when you can demonstrate IP
connectivity between each of the user VLANs and the external web server network, and between the switch
management VLAN and the web server network.
Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with
Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco
IOS Release 15.0(2) (lanbasek9 image). Other routers, switches, and Cisco IOS versions can be used.
Depending on the model and Cisco IOS version, the commands available and output produced might vary
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 21
Lab – Troubleshooting Inter-VLAN Routing
from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the
correct interface identifiers.
Note: Make sure that the routers and switches have been erased and have no startup configurations. If you
are unsure, contact your instructor.
Instructor Note: Refer to the Instructor Lab Manual for the procedures to initialize and reload devices.
Required Resources
1 Router (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
2 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
2 PCs (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 21
Lab – Troubleshooting Inter-VLAN Routing
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 21
Lab – Troubleshooting Inter-VLAN Routing
login
logging synchronous
line vty 0 15
password cisco
login
!vlan 10
! name R&D
! exit
vlan 20
name Engineering
exit
interface fastethernet0/1
switchport mode trunk
interface fastethernet0/18
switchport access vlan 10
switchport mode access
! switchport access vlan 20
interface vlan1
ip address 192.168.1.12 255.255.255.0
ip default-gateway 192.168.1.1
end
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 21
Lab – Troubleshooting Inter-VLAN Routing
Are there any networks missing in the routing table? If so, which networks?
____________________________________________________________________________________
192.168.1.0, 192.168.10.0, 192.168.20.0
What is one possible reason that a route would be missing from the routing table?
____________________________________________________________________________________
Interface administratively down, no ip address
b. On R1, issue the show ip interface brief command.
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
Embedded-Service-Engine0/0 unassigned YES unset administratively down down
GigabitEthernet0/0 unassigned YES unset administratively down down
GigabitEthernet0/1 unassigned YES unset administratively down down
GigabitEthernet0/1.1 192.168.1.1 YES manual administratively down down
GigabitEthernet0/1.10 192.168.11.1 YES manual administratively down down
GigabitEthernet0/1.20 192.168.20.1 YES manual administratively down down
Serial0/0/0 unassigned YES unset administratively down down
Serial0/0/1 unassigned YES unset administratively down down
Loopback0 209.165.200.225 YES manual up up
Based on the output, are there any interface issues on the router? If so, what commands would resolve
the issues?
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
R1(config)# interface g0/1
R1(config-if)# no shutdown
R1(config-if)# interface g0/1.10
R1(configs-if) ip address 192.168.10.1 255.255.255.0
c. On R1, re-issue the show ip route command.
R1# show ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 21
Lab – Troubleshooting Inter-VLAN Routing
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 21
Lab – Troubleshooting Inter-VLAN Routing
____________________________________________________________________________________
____________________________________________________________________________________
S1(config)# vlan 20
S1(config-vlan)# name Engineering
S1(config-vlan)# exit
S1(config)# interface fa0/6
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 10
b. On S1, re-issue the show vlan brief command to verify configuration.
S1# show vlan brief
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 21
Lab – Troubleshooting Inter-VLAN Routing
Are there any VLANs numbers or names missing in the output? If so, list them.
____________________________________________________________________________________
VLAN 10 missing name R&D
Are the access ports assigned to the correct VLANs? If not, list the missing or incorrect assignments.
____________________________________________________________________________________
F0/18 needs to be assigned to the VLAN 20 instead of 10
If required, what commands would resolve the VLAN issues?
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
S2(config)# vlan 10
S2(config-vlan)# name R&D
S2(config-vlan)# exit
S2(config)# interface fa0/18
S2(config-if)# switchport access vlan 20
d. On S2, re-issue the show vlan brief command to verify any configuration changes.
S2# show vlan brief
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 21
Lab – Troubleshooting Inter-VLAN Routing
Fa0/5 1,10,20
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 21
Lab – Troubleshooting Inter-VLAN Routing
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 21
Lab – Troubleshooting Inter-VLAN Routing
____________________________________________________________________________________
Interface g0/1.1 is assigned to VLAN 11 instead of VLAN 1
R1# show run | section interface
interface Loopback0
ip address 209.165.200.225 255.255.255.224
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
interface GigabitEthernet0/1.1
encapsulation dot1Q 11
ip address 192.168.1.1 255.255.255.0
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
interface Serial0/0/1
no ip address
shutdown
What commands would resolve any issues found?
____________________________________________________________________________________
____________________________________________________________________________________
____________________________________________________________________________________
R1(config)# interface g0/1.1
R1(config-if)# encapsulation dot1q 1
d. Verify that that pings from PC-A now reach both S1 and S2.
From PC-A, is it possible to ping S1? _____ Yes.
From PC-A, is it possible to ping S2? _____ Yes.
Reflection
What are the advantages of viewing the routing table for troubleshooting purposes?
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 12 of 21
Lab – Troubleshooting Inter-VLAN Routing
_______________________________________________________________________________________
_______________________________________________________________________________________
All configured interfaces and subinterfaces are listed and can be easily examined for errors.
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router
class. This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device.
The table does not include any other type of interface, even though a specific router may contain one. An
example of this might be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be
used in Cisco IOS commands to represent the interface.
Device Configs
Instructor Note: The VLANs configured do not display in the switch running configuration but are stored in the
vlan.dat file.
Router R1
R1# show run
Building configuration...
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 21
Lab – Troubleshooting Inter-VLAN Routing
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
ip cef
!
!
!
!
!
!
no ip domain lookup
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 209.165.200.225 255.255.255.224
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/1.1
encapsulation dot1Q 1
ip address 192.168.1.1 255.255.255.0
!
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 21
Lab – Troubleshooting Inter-VLAN Routing
interface GigabitEthernet0/1.10
encapsulation dot1Q 10
ip address 192.168.10.1 255.255.255.0
!
interface GigabitEthernet0/1.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
!
interface Serial0/0/0
no ip address
shutdown
clock rate 2000000
!
interface Serial0/0/1
no ip address
shutdown
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
line con 0
password cisco
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
password cisco
login
transport input all
!
scheduler allocate 20000 1000
!
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 21
Lab – Troubleshooting Inter-VLAN Routing
end
Switch S1
S1# show vlan brief
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 21
Lab – Troubleshooting Inter-VLAN Routing
!
!
!
spanning-tree mode pvst
spanning-tree extend system-id
!
vlan internal allocation policy ascending
!
!
!
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
switchport mode trunk
!
interface FastEthernet0/6
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 17 of 21
Lab – Troubleshooting Inter-VLAN Routing
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.11 255.255.255.0
!
ip default-gateway 192.168.1.1
ip http server
ip http secure-server
!
!
!
line con 0
password cisco
logging synchronous
login
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
end
Switch S2
S2# show vlan brief
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 18 of 21
Lab – Troubleshooting Inter-VLAN Routing
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 19 of 21
Lab – Troubleshooting Inter-VLAN Routing
!
!
!
!
interface FastEthernet0/1
switchport mode trunk
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
switchport access vlan 20
switchport mode access
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 20 of 21
Lab – Troubleshooting Inter-VLAN Routing
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
!
interface Vlan1
ip address 192.168.1.12 255.255.255.0
!
ip default-gateway 192.168.1.1
ip http server
ip http secure-server
!
!
line con 0
password cisco
logging synchronous
login
line vty 0 4
password cisco
login
line vty 5 15
password cisco
login
!
end
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 21 of 21