Two-host gateway topology
A network you can draw
A router connects separate IP networks. In our fictional lab, host A is a client and host B is a server. Router R has one interface on each Ethernet link. No Internet connection, NAT or extra routes are needed. Start by drawing the diagram and writing each interface address beside its link. The following documentation addresses are for paper reasoning only, not public destinations.
A eth0 R left R right B eth0192.0.2.10/27 ---- 192.0.2.1/27 | 198.51.100.1/28 ---- 198.51.100.10/28A gateway: 192.0.2.1 B gateway: 198.51.100.1Check the address plan
The left network is 192.0.2.0/27: mask 255.255.255.224, usable addresses .1 through .30 and broadcast .31. The right network is 198.51.100.0/28: mask 255.255.255.240, usable addresses .1 through .14 and broadcast .15. These are ordinary IPv4 LAN subnets. Both hosts and their respective router interfaces are inside their own usable range and have unique addresses. Each host’s gateway must be reachable on its own link in this simple model.
Follow the packet in both directions
Assume both links are up, R forwards IPv4 packets, each host uses the shown default gateway, and policy permits the traffic. A compares B’s IP with its own connected prefix and decides B is remote. A resolves the left router interface’s MAC address with ARP and sends a frame to R. R chooses its connected right subnet and resolves B’s MAC there. The IP source and destination remain A and B in this no-NAT example; the Ethernet header changes and IPv4 TTL decreases at R. B uses its own gateway for the reply. R already has both connected networks, so no default route on R is required for this exchange.
Forward: A -> R left -> R right -> BReturn: B -> R right -> R left -> AA common wiring or configuration mistake
If B has no route to A’s subnet and no default gateway, A’s request may reach B but B cannot send the reply to A. This is different from a broken cable. If A is incorrectly configured with /24 instead of /27, some nearby-looking addresses will be treated as local even though they are not on the same link. Do not repair either symptom by changing every network setting. Compare the intended plan with the observed addresses and routes first.
Practice before touching hardware
On paper, change the left network to 192.0.2.32/27. Assign A .42 and R-left .33; leave the right side unchanged. The new broadcast is .63, and A’s gateway is .33. Draw both directions again. A real follow-up requires an approved isolated VM or simulator with its own private address plan, reset point and no external links. Do not copy documentation addresses into a live network.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Two-host gateway topology — knowledge check
Interpret a fictional network and select evidence-based checks.
What is A’s next-hop IP when sending to B in the original diagram?
What is the broadcast address on the right /28 network?
Which destination MAC is used in the initial frame sent by A to remote B?
What happens if B lacks a route to A, with no default route?
If the left network becomes 192.0.2.64/27, which is a valid gateway on it?