Default gateway

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

Default gateway

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A laptop wants to reach a website that is not on its own network. Where does it send the data first?
A Straight to the website's server
B To the default gateway
2. Which address is usually used as the default gateway on a home network?
A The laptop's own MAC address
B The router's LAN address, e.g. 192.168.1.1
3. A phone at 192.168.1.20 sends data to a printer at 192.168.1.30 on the same network. Is the default gateway needed?
A No, the destination is on the local network
B Yes, all data must go via the gateway
4. A student's computer has no default gateway set. What happens when they try to open a website?
A The device cannot reach the internet
B The device finds the website another way
5. Which statement about the default gateway is correct?
A It is the exit point from the local network
B It turns domain names into IP addresses

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1Default Gateway: 192.168.1.1 AWith no default gateway set, a device cannot send data outside its own network, so it cannot reach the internet. It could still talk to local devices.
2ipconfig BA Windows command that shows a device's IP address, subnet mask and default gateway
3The default gateway is usually the router's LAN address, so it sits in the same network as the device Cdestination not local -> send to gateway
4Data for a destination on another network, such as a website, is sent to the gateway first DThe gateway is on a different network from the device. A gateway must be a router address on the device's own network, such as 192.168.1.1.
5IP: 192.168.1.25 Gateway: 10.0.0.1 EThe router address this device sends data to when the destination is outside its own network
6Gateway: (blank) - the internet works fine FIP: 192.168.1.25 Gateway: 192.168.1.1

Definitions

default gateway

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
Default _______ . . . . . : 192.168.1.1
2.
IF gateway = NONE THEN internet = _____
3.
IF ___ same_network(dest, my_ip) THEN send_to(gateway)
4.
IF destination is on my network THEN send directly to the destination ____ send to the default gateway
5.
Router LAN address: 192.168.1.1 Default gateway: ___________

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A IP address: 192.168.1.20
B Subnet mask: 255.255.255.0
C Default gateway: 192.168.2.1
Question 2
A IP address: 10.0.0.15
B Subnet mask: 255.255.255.0
C Router LAN address: 10.0.0.1
D Default gateway: 8.8.8.8
Question 3
A destination = 8.8.8.8
B IF destination on my network
C send directly
D ELSE send to DHCP server
Question 4
A IF destination is remote
B discard the packet
C ELSE
D send directly
Question 5
A gateway = web server address
B IF gateway is empty
C no internet access

Answer Key

Default gateway
Section A: Quick Questions
Q1
B — To the default gateway
Q2
B — The router's LAN address, e.g. 192.168.1.1
Q3
A — No, the destination is on the local network
Q4
A — The device cannot reach the internet
Q5
A — It is the exit point from the local network
Section B: Match the Pairs
Q1
Default Gateway: 192.168.1.1 → The router address this device sends data to when the destination is outside its own network
Q2
ipconfig → A Windows command that shows a device's IP address, subnet mask and default gateway
Q3
The default gateway is usually the router's LAN address, so it sits in the same network as the device → IP: 192.168.1.25 Gateway: 192.168.1.1
Q4
Data for a destination on another network, such as a website, is sent to the gateway first → destination not local -> send to gateway
Q5
IP: 192.168.1.25 Gateway: 10.0.0.1 → The gateway is on a different network from the device. A gateway must be a router address on the device's own network, such as 192.168.1.1.
Q6
Gateway: (blank) - the internet works fine → With no default gateway set, a device cannot send data outside its own network, so it cannot reach the internet. It could still talk to local devices.
Section C: Definitions
Q1
default gateway — The router address a device sends data to when the destination is not on its own network. It is usually the router's LAN address. With no gateway set, a device cannot reach the internet.
Section D: Fill in the Blanks
Q1
Default Gateway . . . . . : 192.168.1.1
Q2
IF gateway = NONE THEN internet = FALSE
Q3
IF NOT same_network(dest, my_ip) THEN send_to(gateway)
Q4
IF destination is on my network THEN send directly to the destination ELSE send to the default gateway
Q5
Router LAN address: 192.168.1.1 Default gateway: 192.168.1.1
Section E: Spot the Error
Q1
C — The default gateway is the router's LAN address, so it must be on the same network as the device. With mask 255.255.255.0 and IP 192.168.1.20, the gateway should be 192.168.1.1, not 192.168.2.1.
Q2
D — The default gateway is usually the router's LAN address (10.0.0.1 here). 8.8.8.8 is a public server on another network, so it is not the gateway.
Q3
D — When the destination is not on the device's own network, the data goes to the default gateway (the router). A DHCP server only hands out addresses; it does not forward data.
Q4
B — If the destination is outside the local network, the device sends the data to the default gateway so the router can pass it on. It should not discard the packet.
Q5
A — The default gateway is the router's LAN address, not the address of a web server. The device sends data to the router, which passes it on.