Discovering computer networks: hands on in the Open Networking Lab
Discovering computer networks: hands on in the Open Networking Lab

Start this free course now. Just create an account and sign in. Enrol and complete the course for a free statement of participation or digital badge if available.

Free course

Discovering computer networks: hands on in the Open Networking Lab

11.2 Routers and IP addresses

You’ve learned about IP addressing and subnet masks in earlier sessions. This section serves as a brief reminder of your earlier work and provides an opportunity to practise and test your understanding of subnetting.

Watch the video below, which is about 1.5 minutes long.

Routers and IP addresses

Download this video clip.Video player: 64_routers_and_ip_addresses.mp4
Skip transcript

Transcript

Routers use IP addresses to direct packets. IP addressing has been covered very thoroughly in earlier sessions so you are already familiar with the host portion, network portion and subnet masks.

An IP address can identify an individual computer device (known as a host) or it can identify a network. The network address is always the lowest address in the network, which in binary will end in a zero, though it may not in dotted decimal. I’ll demonstrate this by using the IP address 192.168.1.0 with a /28 subnet mask. This means that the last four bits are the host part.

The first subnet would have addresses from 192.168.1.0 to 192.168.1.15, and the network address is 192.168.1.0, as expected. The second subnet goes from 192.168.1.16 to 192.168.1.31. The network address is now 192.168.1.16.

This looks anomalous until we look at the binary rendering of the last octet, which is 0001 0000. Here the host part (i.e. the last four bits) is all zeros, as befits a network address; but this is obscured in the decimal representation, which is 16, because this represents the entire octet, not just the host part.

End transcript
 
Interactive feature not available in single page view (see it in standard view).

Activity 3 Test yourself

5 minutes

1. How many IP addresses can be assigned to hosts on a subnet with a subnet mask of 255.255.255.240?

a. 

13


b. 

14


c. 

15


d. 

16


The correct answer is b.

Answer

Addresses with a subnet mask of 255.255.255.240 will run from XXX.XXX.XXX.240 to XXX.XXX.XXX.255. This provides 16 possible addresses. The lowest of these (XXX.XXX.XXX.240) will be assigned to the network address and the highest (XXX.XXX.XXX.255) is the broadcast address, leaving 14 addresses for the hosts.

2. Which of the following correctly describes the IP address 192.168.2.32/27?

a. 

It is a subnet network address.


b. 

It is a subnet host address.


c. 

It is a subnet broadcast address.


The correct answer is a.

Answer

With a subnet mask of /27 the last five bits are the host part. The binary equivalent of 32 is 100000 so this subnet has the addresses from 192.168.2.32 to 192.168.2.63. Therefore 192.168.2.32, being the lowest address, is the network address of this subnet.

OPNL_1

Take your learning further

Making the decision to study can be a big step, which is why you'll want a trusted University. The Open University has 50 years’ experience delivering flexible learning and 170,000 students are studying with us right now. Take a look at all Open University courses.

If you are new to university level study, find out more about the types of qualifications we offer, including our entry level Access courses and Certificates.

Not ready for University study then browse over 900 free courses on OpenLearn and sign up to our newsletter to hear about new free courses as they are released.

Every year, thousands of students decide to study with The Open University. With over 120 qualifications, we’ve got the right course for you.

Request an Open University prospectus