Bitzu

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

Single choice

What is a default gateway?

  1. The DNS server a host asks for names
  2. The router address a host uses to reach other networks
  3. The host's own IP address
  4. 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.

Select all that apply

Which tasks are done by a router?

  1. Connects different IP networks
  2. Chooses a next hop using its routing table
  3. Builds a MAC address table to forward frames inside one VLAN
  4. Forwards packets between its interfaces
  5. 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.

True or false

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.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module