Networking Basics: 12 Practice Questions with Answers

Test yourself on the basics every network engineer needs. Answer first, then click to check.

These questions cover the basics you'll meet in CCNA, MikroTik MTCNA and most IT support interviews. Try to answer each one before you open it.

1. What is the main job of a switch?

A switch connects devices in the same local network and forwards frames based on MAC addresses. A router, by contrast, connects different networks using IP addresses.

2. At which OSI layer does a router mainly work?

Layer 3, the Network layer, because it makes decisions based on IP addresses.

3. What is the difference between TCP and UDP?

TCP is connection-oriented and reliable: it confirms delivery and resends lost data. It's used for web pages, email and file transfer. UDP is connectionless and faster but doesn't guarantee delivery. It's used for voice and video calls, streaming and DNS queries.

4. Which port numbers do HTTP, HTTPS, SSH and DNS use?

HTTP 80, HTTPS 443, SSH 22, DNS 53.

5. What does DHCP do?

It automatically gives devices an IP address, subnet mask, default gateway and DNS server. The process is Discover, Offer, Request, Acknowledge (DORA).

6. What does DNS do?

It translates names like google.com into IP addresses, like a phone book for the internet.

7. What is a default gateway?

The router address a device sends traffic to when the destination is outside its own network.

8. Which of these are private IP addresses: 10.5.1.1, 172.20.0.10, 192.168.1.1, 8.8.8.8?

The first three are private. 8.8.8.8 is a public address (Google's DNS server). The private ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.

9. What is NAT used for?

It lets many devices with private addresses share one public address to reach the internet.

10. A PC has the address 169.254.10.20. What does that tell you?

It didn't get an address from a DHCP server and gave itself a temporary APIPA address. See how to fix DHCP problems.

11. What is a VLAN?

A way to split one physical switch into several separate logical networks (broadcast domains), for example staff and guests. See Cisco VLAN basics.

12. How many usable hosts are in 192.168.1.0/25?

126. A /25 has 128 addresses, minus the network and broadcast addresses. See the subnetting cheat sheet.

How did you do?

10 to 12 correct: you have a solid foundation. 6 to 9: review the topics you missed. Under 6: start with the subnetting cheat sheet and the troubleshooting guides on our resources page, then try again.