6.2.2.8 Lab - Viewing Host Routing Tables
6.2.2.8 Lab - Viewing Host Routing Tables
6.2.2.8 Lab - Viewing Host Routing Tables
Topology
Objectives
Part 1: Access the Host Routing Table
Part 2: Examine IPv4 Host Routing Table Entries
Part 3: Examine IPv6 Host Routing Table Entries
Background / Scenario
To access a resource on a network, your host will determine the route to the destination host using its routing
table. The host routing table is similar to that of a router, but is specific to the local host and much less
complex. For a packet to reach a local destination, the local host routing table is required. To reach a remote
destination, both the local host routing table and the router routing table are required. The netstat r and
route print commands provide insight into how your local host routes packets to the destination.
In this lab, you will display and examine the information in the host routing table of your PC using the netstat
r and route print commands. You will determine how packets will be routed by your PC depending on the
destination address.
Note: This lab cannot be completed using Netlab. This lab assumes that you have Internet access.
Required Resources
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 1 of 6
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 2 of 6
The output is divided in five columns: Network Destination, Netmask, Gateway, Interface, and Metric.
The Network Destination column lists the reachable network. The Network Destination is used with
Netmask to match the destination IP address.
The Netmask lists the subnet mask that the host uses to determine the network and host portions of the
IP address.
The Gateway column lists the address that the host uses to send the packets to a remote network
destination. If a destination is directly connected, the gateway is listed as On-link in the output.
The Interface column lists the IP address that is configured on the local network adaptor. This is used to
forward a packet on the network.
The Metric column lists the cost of using a route. It is used to calculate the best route to a destination. A
preferred route has a lower metric number than other routes listed.
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 3 of 6
The local default route 0.0.0.0 is used when the packet does not match other specified addresses in the
routing table. The packet will be sent to the gateway from the PC for further processing. In this example,
the packet will be sent to 192.168.1.1 from 192.168.1.11.
The loopback addresses, 127.0.0.0 127.255.255.255, are related to direct connection and provide
services to the local host.
The addresses for the subnet, 192.168.1.0 192.168.1.255, are all related to the host and the local
network. If the final destination of the packet is in the local network, the packet will exit 192.168.1.11
interface.
-
The local route address 192.168.1.0 represents all devices on the 192.168.1.0/24 network.
The network broadcast address 192.168.1.255 is used to send messages to all the hosts on the local
network.
The special multicast class D addresses 224.0.0.0 are reserved for use through either the loopback
interface (127.0.0.1) or the host (192.168.1.11).
The local broadcast address 255.255.255.255 can be used through either the loopback interface
(127.0.0.1) or host (192.168.1.11).
Based on the contents of the IPv4 routing table, if the PC wanted to send a packet to 192.168.1.15, what
would it do and where would it send the packet?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
If the PC wanted to send a packet to a remote host located at 172.16.20.23, what would it do and where
would it send the packet?
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
_______________________________________________________________________________________
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 4 of 6
The output of the IPv6 Route Table differs in column headings and format because the IPv6 addresses are
128 bits versus only 32 bits for IPv4 addresses. The IPv6 Route Table section displays four columns:
The If column lists the interface numbers of the IPv6-enabled network interfaces from the Interface List
section of the netstat r command.
The Metric column lists the cost of each route to a destination. The lower cost is the preferred route, and
the metric is used to select between multiple routes with the same prefix.
The Network Destination column lists the address prefix for the route.
The Gateway lists the next-hop IPv6 address to reach the destination. On-link is listed as the next-hop
address if it is directly connected to the host.
In this example, the figure displays the IPv6 Route Table section generated by the netstat r command to
reveal the following network destinations:
::/0: This is the IPv6 equivalent of the local default route. The Gateway column provides the link-local
address of the default router.
::1/128: This is equivalent to the IPv4 loopback address and provides services to the local host.
2001:0:9d38:6ab8:1863:3bca:3f57:fef4/128: This is the global unicast IPv6 address of the local computer.
fe80::/64: This is the local link network route address and represents all computers on the local-link IPv6
network.
ff00::/8: These are special reserved multicast class D addresses equivalent to the IPv4 224.x.x.x
addresses.
The host routing table for IPv6 has similar information as the IPv4 routing table. What is the local default route
for IPv4 and what is it for IPv6?
_______________________________________________________________________________________
What is the loopback address and subnet mask for IPv4? What is the loopback IP address for IPv6?
_______________________________________________________________________________________
How many IPv6 addresses have been assigned to this PC?
_______________________________________________________________________________________
How many broadcast addresses does the IPv6 routing table contain?
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 5 of 6
Reflection
1. How is the number of bits for the network indicated for IPv4. How is it done for IPv6?
______________________________________________________________________________________
2. Why is there both IPv4 and IPv6 information in the host routing tables?
_______________________________________________________________________________________
_______________________________________________________________________________________
2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public.
Page 6 of 6