Professional Documents
Culture Documents
IP Routing-HOST Logic
1. When sending a packet, compare the destination IP address of the packet to the sending host’s perception
of the range of addresses in the connected subnet, based on the host’s IP address and subnet mask.
a. If the destination is in the same subnet as the host, send the packet directly to the destination host.
Address Resolution Protocol (ARP) is needed to find the destination host’s MAC address.
b. If the destination is not in the same subnet as the host, send the packet directly to the host’s default
gateway (default router). ARP is needed to find the default gateway’s MAC address.
Page 1 of 4
ICND2 Chapter 4 Summary
DHCP IP Parameters
■ The host’s IP address
■ The associated subnet mask
■ The IP address of the default gateway (router)
■ The IP address(s) of the DNS server(s)
PING Command
■ The Cisco ping command uses, by default, the output interface’s IP address as the packet’s source
address, unless otherwise specified in an extended ping. The first ping in Example 4-7 uses a source of
10.1.128.251, because the route used to send the packet to 10.1.2.252 sends packets out Albuquerque’s
Serial0 interface, whose IP address is 10.1.128.251.
■ Ping response packets (ICMP Echo Replies) reverse the IP addresses used in the received ping request to
which they are responding. So, in this example, Yosemite’s Echo Reply, in response to the first ping in
Example 4-7, uses 10.1.128.251 as the destination address and 10.1.2.252 as the source IP address.
Table 4-2 Comparing the Use of the Terms Classless and Classful
As Applied To Classful Classless
Addresse Addresses have three parts: network, Addresses have two parts: subnet or prefix,
subnet, and host. and host.
Routing protocols Routing protocol does not advertise masks Routing protocol does advertise masks and
nor support VLSM; RIP-1 and IGRP. support VLSM; RIP-2, EIGRP, OSPF.
Routing (forwarding) IP forwarding process is restricted in how it IP forwarding process has no restrictions on
uses the default route. using the default route.
Page 2 of 4
ICND2 Chapter 4 Summary
Page 3 of 4
ICND2 Chapter 4 Summary
Command Reference
Command Description
encapsulation dot1q vlan-id A subinterface subcommand that tells the router to use 802.1Q trunking, for a
[native] particular VLAN, and with the native keyword, to not encapsulate in a trunking
header
encapsulation isl vlan-identifier A subinterface subcommand that tells the router to use ISL trunking, for a
particular VLAN
[no] ip classless Global command that enables (ip classless) or disables (no ip classless)
classless routing
[no] ip subnet-zero Global command that allows (ip subnet-zero) or disallows (no ip subnet-zero)
the configuration of an interface IP address in a zero subnet
ip address ip-address mask Interface subcommand that assigns the interface’s IP address, and optionally
[secondary] makes the address a secondary address
ip route prefix mask {ip-address | Global configuration command that creates a static route
interface-type interface-number}
[distance] [permanent]
ip default-network network- Global command that creates a default route based on the router’s route to reach
number the classful network listed in the command
show ip route Lists the router’s entire routing table
show ip route ip-address Lists detailed information about the route that a router matches for the listed IP
address
ping {host-name | ip-address} Tests IP routes by sending an ICMP packet to the destination host
traceroute {host-name | ip- Tests IP routes by discovering the IP addresses of the routes between a router
address} and the listed destination
Page 4 of 4