Ch. 9 - Basic Router Troubleshooting
Ch. 9 - Basic Router Troubleshooting
Note
1
6/16/2013
Overview
Students completing this module should be able to:
• Use the show ip route command to gather detailed information about the
routes installed on the router
• Configure a default route or default network
• Understand how a router uses both Layer 2 and Layer 3 addressing to move
data through the network
• Use the ping command to perform basic network connectivity tests
• Use the telnet command to verify the application layer software between
source and destination stations
• Troubleshoot by sequential testing of OSI layers
• Use the show interfaces command to confirm Layer 1 and Layer 2
problems
• Use the show ip route and show ip protocol commands to identify
routing issues
• Use the show cdp command to verify Layer 2 connectivity
• Use the traceroute command to identify the path packets take between
networks
• Use the show controllers serial command to ensure the proper cable
is attached
• Use basic debug commands to monitor router activity
2
6/16/2013
Static Routing
Dynamic Routing
3
6/16/2013
Default Routes
4
6/16/2013
With IGRP:
• Use ip default-network
• Need specific or default route, so once packets arrive at
Cisco A it can forward those packets toward public
network.
With RIP:
• Use 0.0.0.0/0 static route
• Use default-information originate (IOS 12.0 and later)
5
6/16/2013
X
192.168.1.0/24
.1
RTA 192.168.2.0/24
.1 .2
RTB
.1
192.168.3.0/24
.2
RTC 192.168.4.0/24
.1
Y
e0 s0 s0 s1 s0 e0
192.168.1.10/24 192.168.4.10/24
• Let’s go through all of the stages these routers use to route and switch this
packet.
• See if you can identify these two functions at each router.
• Note: Data link addresses have been abbreviated.
6
6/16/2013
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
1
3
RTA Routing Table
RTA ARP Cache Network Hops Next-hop-ip Exit-interface
IP Address MAC Address 192.168.1.0/24 0 Dir.Conn. e0
192.168.2.2 0B-31 192.168.2.0/24 0 Dir.Conn e1
2 192.168.3.0/24 1 192.168.2.2 e1
192.168.4.0/24 2 192.168.2.2 e1
RTA to RTB
1. RTA looks up the IP destination address in its routing table.
• 192.168.4.0/24 has next-hop-ip address of 192.168.2.2 and an exit-interface of
e1.
• Since the exit interface is on an Ethernet network, RTA must resolve the next-
hop-ip address with a destination MAC address.
2. RTA looks up the next-hop-ip address of 192.168.2.2 in its ARP cache.
• If the entry was not in the ARP cache, the RTA would need to send an ARP
request out e1. RTB would send back an ARP reply, so RTA can update its
ARP cache with an entry for 192.168.2.2.
7
6/16/2013
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
1
3
RTA Routing Table
RTA ARP Cache Network Hops Next-hop-ip Exit-interface
IP Address MAC Address 192.168.1.0/24 0 Dir.Conn. e0
192.168.2.2 0B-31 192.168.2.0/24 0 Dir.Conn e1
2 192.168.3.0/24 1 192.168.2.2 e1
192.168.4.0/24 2 192.168.2.2 e1
The frame is now forwarded out Ethernet 1 (as specified in RTA’s routing table.
• Notice, that the IP Addresses did not change.
• Also notice that the Routing table was used to find the next-hop ip address,
used for the data link address and exit interface, to forward the packet in a new
data link frame.
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
1
2 RTB Routing Table
Network Hops Next-hop-ip Exit-interface
192.168.1.0/24 1 192.168.2.1 e0
192.168.2.0/24 0 Dir.Conn e0
192.168.3.0/24 0 Dir.Conn s0
192.168.4.0/24 1 192.168.3.2 s0
RTB to RTC
1. RTB looks up the IP destination address in its routing table.
• 192.168.4.0/24 has next-hop-ip address of 192.168.3.2 and an exit-interface of
s0 (serial 0).
• Since the exit interface not on an Ethernet network, RTA does not need to
resolve the next-hop-ip address with a destination MAC address.
• Remember, serial interfaces do not have MAC addresses.
8
6/16/2013
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
1
2 RTB Routing Table
Network Hops Next-hop-ip Exit-interface
192.168.1.0/24 1 192.168.2.1 e0
192.168.2.0/24 0 Dir.Conn e0
192.168.3.0/24 0 Dir.Conn s0
192.168.4.0/24 1 192.168.3.2 s0
RTB to RTC
2. Data link destination address and frame encapsulation.
• When the interface is a point-to-point serial connection, the Routing
Table process does not even look at the next-hop IP address.
• Remember, a serial link is like a pipe - only one way in and only one way
out.
• RTA now encapsulates the IP packet into the proper data link frame,
using the proper serial encapsulation (HDLC, PPP, etc.).
• The data link destination address is set to a broadcast, since there is only
one other end of the pipe and the frame is now forwarded out serial 0.
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
3 1
RTC Routing Table
RTC ARP Cache Network Hops Next-hop-ip Exit-interface
IP Address MAC Address 192.168.1.0/24 2 192.168.3.1 s0
192.168.2.0/24 1 192.168.3.1 s0
192.168.4.10 0B-20 2 192.168.3.0/24 0 Dir.Conn s0
192.168.4.0/24 0 Dir.Conn e0
RTC to Host Y
1. RTC looks up the IP destination address in its routing table.
• 192.168.4.0/24 is a directly connected network with an exit-interface of e0.
• RTC realizes that this destination ip address is on the same network as one of its
interfaces and it can sent the packet directly to the destination and not another
router.
• Since the exit interface is on an directly connected Ethernet network, RTC must
resolve the destination ip address with a destination MAC address.
2. RTC looks up the destination ip address of 192.168.4.10 in its ARP cache.
• If the entry was not in the ARP cache, the RTC would need to send an ARP
request out e0. Host Y would send back an ARP reply, so RTC can update its
ARP cache with an entry for 192.168.4.10.
9
6/16/2013
Data link destination address Data link source address Other data link fields IP Destination Address IP Source Address Other IP fields and data
3 1
RTC Routing Table
RTC ARP Cache Network Hops Next-hop-ip Exit-interface
IP Address MAC Address 192.168.1.0/24 2 192.168.3.1 s0
192.168.2.0/24 1 192.168.3.1 s0
192.168.4.10 0B-20 2 192.168.3.0/24 0 Dir.Conn s0
192.168.4.0/24 0 Dir.Conn e0
The frame is now forwarded out Ethernet 0 (as specified in RTA’s routing table.
• Not the best path, but the best source of routing information.
• “The administrative distance of the route is the key information that the
router uses in deciding (which is the best path to a particular
destination) –> what is the best source of routing information to a
particular destination.”
10
6/16/2013
11
6/16/2013
Network Testing
12
6/16/2013
Different Models
13
6/16/2013
14
6/16/2013
Various commands
15