Static IP address

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

Static IP address

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. A static IP address changes every time the device connects to the network.
A True
B False
2. Which describes how a static IP address is usually set?
A Set manually by a person
B Handed out by the network each time
3. Which device is most likely to need a static IP address?
A A web server that must always be found at the same address
B A visitor's phone joining the school Wi-Fi for an hour
4. A printer has the static IP address 192.168.1.50. After a restart, what is its address?
A 192.168.1.50
B A new, different address
5. Which is a benefit of a static IP address?
A The address is different each day
B The address is predictable

Match the Pairs

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

Left columnRight column
1static IP address ANetwork settings: Manual, IP = 192.168.1.50
2IP address: 192.168.1.50 (set manually) BA static IP address that was typed in by hand and gives the device a predictable address
3A static IP address does not change when the device disconnects and reconnects CMonday: 192.168.1.50, Tuesday: 192.168.1.50
4A static IP address is set manually by a person, not given out automatically DA static IP address is usually set manually and then kept. Automatic allocation that can change each time is a dynamic IP address.
5A static IP address changes each time the device connects EThis describes a dynamic IP address. A static IP address stays the same every time the device connects.
6A static IP address is given out automatically by the network each time FAn IP address that is set once, usually by hand, and stays the same every time the device connects

Definitions

static IP address

Fill in the Blanks

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

1.
_____ ipAddress
2.
IF ipMode = "static" ____
3.
ipAddress ← "192.168.1.20" OUTPUT _________
4.
ipMode ← "static" IF ipMode _ "static" THEN OUTPUT "Address never changes"
5.
IF ipMode = "static" THEN OUTPUT "Same address" _____

Spot the Error

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

Question 1
A device ← "Printer"
B ip ← "192.168.1.50"
C type ← "static"
D setBy ← "automatic"
Question 2
A ip ← "10.0.0.20"
B type ← "dynamic"
C OUTPUT ip
Question 3
A ip ← "192.168.0.5"
B FOR day ← 1 TO 3
C CONNECT(server)
D ip ← GET_NEW_ADDRESS()
E NEXT day
Question 4
A ip ← "172.16.0.9"
B CONNECT(camera)
C OUTPUT "New address: ", ip
Question 5
A ip ← "192.168.1.10"
B type ← "static"
C predictable ← FALSE

Answer Key

Static IP address
Section A: Quick Questions
Q1
B — False
Q2
A — Set manually by a person
Q3
A — A web server that must always be found at the same address
Q4
A — 192.168.1.50
Q5
B — The address is predictable
Section B: Match the Pairs
Q1
static IP address → An IP address that is set once, usually by hand, and stays the same every time the device connects
Q2
IP address: 192.168.1.50 (set manually) → A static IP address that was typed in by hand and gives the device a predictable address
Q3
A static IP address does not change when the device disconnects and reconnects → Monday: 192.168.1.50, Tuesday: 192.168.1.50
Q4
A static IP address is set manually by a person, not given out automatically → Network settings: Manual, IP = 192.168.1.50
Q5
A static IP address changes each time the device connects → This describes a dynamic IP address. A static IP address stays the same every time the device connects.
Q6
A static IP address is given out automatically by the network each time → A static IP address is usually set manually and then kept. Automatic allocation that can change each time is a dynamic IP address.
Section C: Definitions
Q1
static IP address — An IP address that is set once, usually by hand, and stays the same every time the device connects, so the device always has a predictable address.
Section D: Fill in the Blanks
Q1
INPUT ipAddress
Q2
IF ipMode = "static" THEN
Q3
ipAddress ← "192.168.1.20" OUTPUT ipAddress
Q4
ipMode ← "static" IF ipMode = "static" THEN OUTPUT "Address never changes"
Q5
IF ipMode = "static" THEN OUTPUT "Same address" ENDIF
Section E: Spot the Error
Q1
D — A static IP address is set manually by a person, not automatically by the network. Line 4 should be setBy ← "manual".
Q2
B — An address that is set once and kept is a static IP address, not a dynamic one. Line 2 should be type ← "static".
Q3
D — A static IP address does not change when the device connects again. The loop should keep using the same ip, so line 4 should be OUTPUT ip.
Q4
C — A static IP address stays the same every time the device connects, so the output should say the address is the same, not new.
Q5
C — A static IP address is predictable because it never changes, so other devices always know where to find it. Line 3 should be predictable ← TRUE.