
About Lesson
How a Host Routes
Explain how network devices use routing tables to direct packets to a destination network.
Host Forwarding Decision
- Packets are always created at the source.
- Each host devices creates their own routing table.
- A host can send packets to the following:
-
- Itself – 127.0.0.1 (IPv4), ::1 (IPv6)
- Local Hosts – destination is on the same LAN
- Remote Hosts – devices are not on the same LAN
- The Source device determines whether the destination is local or remote
- Method of determination:
-
- IPv4 – Source uses its own IP address and Subnet mask, along with the destination IP address
- IPv6 – Source uses the network address and prefix advertised by the local router
- Local traffic is dumped out the host interface to be handled by an intermediary device.
- Remote traffic is forwarded directly to the default gateway on the LAN.
Default Gateway
- A router or layer 3 switch can be a default-gateway.
- Features of a default gateway (DGW):
-
- It must have an IP address in the same range as the rest of the LAN.
- It can accept data from the LAN and is capable of forwarding traffic off of the LAN.
- It can route to other networks.
- If a device has no default gateway or a bad default gateway, its traffic will not be able to leave the LAN.
A Host Routes to the Default Gateway
- The host will know the default gateway (DGW) either statically or through DHCP in IPv4.
- IPv6 sends the DGW through a router solicitation (RS) or can be configured manually.
- A DGW is static route which will be a last resort route in the routing table.
- All device on the LAN will need the DGW of the router if they intend to send traffic remotely.
Host Routing Tables
- On Windows, route print or netstat -r to display the PC routing table
- Three sections displayed by these two commands:
-
- Interface List – all potential interfaces and MAC addressing
- IPv4 Routing Table
- IPv6 Routing Table
Other related topics
Topic Title | Topic Objective |
---|---|
Network Layer Characteristics | Explain how the network layer uses IP protocols for reliable communications. |
IPv4 Packet | Explain the role of the major header fields in the IPv4 packet. |
IPv6 Packet | Explain the role of the major header fields in the IPv6 packet. |
How a Host Routes | Explain how network devices use routing tables to direct packets to a destination network. |
Router Routing Tables | Explain the function of fields in the routing table of a router. |
Other useful information
Join the conversation