web analytics

IPv4 Host Routing

Hosts actually use some simple routing logic when choosing where to send a packet. If you
assume that the design uses subnets (which is typical), this two-step logic is as follows:
Step 1. If the destination IP address is in the same IP subnet as I am, send the packet
directly to that destination host.
Step 2. Otherwise, send the packet to my default gateway, also known as a default
router. (This router has an interface on the same subnet as the host.)

For example, consider Figure 4-10 and focus on the Ethernet LAN on the left. When PC1
sends an IP packet to PC11 (150.9.1.11), PC1 first considers some match related to subnetting.
PC1 concludes that PC11’s IP address is in the same subnet as PC1, so PC1 ignores its default
router (Core, 150.9.1.1), sending the packet directly to PC11, as shown in Step 1 of the figure.
Free CISCO CCNA Routing and Switching ICND1 Study Guide
Figure 4-10 Host Routing: Forwarding to a Host on the Same Subnet

Alternatively, when PC1 sends a packet to PC2 (150.9.4.10), PC1 does the same kind of
subnetting math, and realizes that PC2 is not on the same subnet as PC1. So, PC1 forwards
the packet (Step 2) to its default gateway, 150.9.1.1, which then routes the packet to PC2.

Subscribe To Get

Latest IT certification News 

Help You Pass Any IT Exam