100-150 CCST ยท Network devices, routing and switching
Routing basics and default gateway
Local versus remote networks, the default gateway, what a router does, and how a host decides where to send a packet.
Key points
- A host compares the destination IP address with its own network (address and subnet mask).
- Same network: it sends directly to the destination.
- Different network: it sends the packet to its default gateway, which is a router interface on the local network.
- The router checks its routing table and forwards the packet toward the destination network.
Practice questions
What is a default gateway?
- The DNS server a host asks for names
- The router address a host uses to reach other networks
- The host's own IP address
- The switch port a host is plugged into
Show answer
Answer: B. The router address a host uses to reach other networks
The default gateway is the router address on the local network that a host uses for destinations outside its own network. It is not a DNS server or the host's own address.
Which tasks are done by a router?
- Connects different IP networks
- Chooses a next hop using its routing table
- Builds a MAC address table to forward frames inside one VLAN
- Forwards packets between its interfaces
- Configures each host's default gateway by itself
Show answer
Answer: A. Connects different IP networks, B. Chooses a next hop using its routing table, D. Forwards packets between its interfaces
A router connects different IP networks, picks a path using its routing table, and forwards packets between its interfaces. Learning MAC addresses within a VLAN is a switch job, and the router does not set each host's gateway.
A host with no default gateway configured can still communicate with other hosts on its own subnet.
Show answer
Answer: True
True. The gateway is only needed for destinations on other networks; same-subnet traffic is sent directly.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
