IP subnetting labs

Share this post on:

Lab 1 Instructions

We need to split 192.168.1.0/24 to 4 subnets.

Since we’re dividing the ip address for a network we’ll use

2^2 = 4, so n =2.

Now we’ll “steal” 2 bits from our host and allocate it to our subnet

Network subnet host

192.168.1. 00 | 00. 0000/24

192.168.1. 01 | 00. 0000/24

192.168.1 10 | 00. 0000/24

192.168.1 11 | 00. 0000/24

Now all we need to do is to convert the binary values into numbers and update the subnet mask

Network 1

192.168.1.0/26

Network 2

192.168.1.64/26

Network 3

192.168.1.128/26

Network 4

192.168.1.192/26


Now that we have the ip addresses divided into 4 subnets we can figure out the broadcast address, last host, first host, and etc.

Network 1

Subnet: 192.168.1.0/26

Broadcast: 192.168.1.63/26

First host: 192.168.1.1/26

Second host: 192.168.1.2/26

Last host: 192.168.1.62/26

Network 2

Subnet: 192.168.1.64/26

Broadcast: 192.168.1.127/26

Firsthost: 192.168.1.65/26

Second host: 192.168.1.66/26

Last host: 192.168.1.126/26

Network 3

Subnet: 192.168.1.128/26

Broadcast: 192.168.1.191/26

First host: 192.168.1.129/26

Second host: 192.168.1.130/26

Last host: 192.168.1.190/26

Network 4

Subnet: 192.168.1.192/26

Broadcast: 192.168.1.255/26

First host: 192.168.1.193/26

Second host: 192.168.1.194/26

Last host: 192.168.1.254

So lets start with network 1.

Below is the CLI for router 1 on network 1.

R1#en
R1#conf t
R1(config)#int g0/0/0
R1(config-if) no shut  
R1(config-if)#ip address 192.168.1.62 255.255.255.192
R1(config-if)#

Here we can see the G 0/0/0 connection has the correct IP.

The switch and server are already configured for us so we do not need to worry about that.


Network 2

For this section of the network. We will need to configure the two serial connections.

Below we are assigning serial 1 an IP address and a subnet mask.

R1#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)#int s0/1/0
R1(config-if)#ip ad
R1(config-if)#ip address 192.168.1.65 255.255.255.192
R1(config-if)#end

Here we are assigning serial 2 an IP and subnet mask.

IntRouter>en
IntRouter#conf t
IntRouter(config)#int s0/1/0
IntRouter(config-if)#ip add
IntRouter(config-if)#ip address 192.168.1.126 255.255.255.192
IntRouter(config-if)#end

Just to ensure the connection between the IntRouter and R1 is established, we ping R1’s IP address from the IntRouter

Repeat these steps for the rest of the networks.

Note: the serial ports from R1 and R2 were off, which made pinging cisco.com or facebook.com impossible.

We had to go in the configuration terminal and turn on the serial ports for R1 and R2.

Note the green triangles between the routers mean a connection has been established.

IP subnetting Lab 2

The IP address from 192.168.1.64/26 – 192.168.1.64.128/64 needs to split up to host 8 hosts per subnet

so we’ll use 2^n-2, 2^4-2 = 14, fourteen is enough to support our 8 hosts per subnet

we now know n = 4.

Step 1: Break up 192.168.1.64 /26 to support as many subnets as possible with 8 hosts per subnet.


Network 1

192.168.1.64 / = 192.168.1.64 /28

Network 2

192.168.1.64 (+16) / = 192.168.1.80 /28

Network 3

192.168.1.79 (+16) / = 192.168.1.96 /28

Network 4

192.168.1.92 (+16) / = 192.168.1.112 /28


Step 2: Allocate the first subnet to site 3:

Lets break up 192.168.1.64/28

Broadcast : 192.168.1.79/28

Last host: 192.168.1.78/28

2nd last : 192.168.1.77/28

First host: 192.168.1.65/28


Step 3: Manually configure all devices on the subnet:

This part is self explanitory.

En > conf t > int g0/0/0…. > ip address 192.168.1.113 255.255.255.240


Step 4: Subnet the new subnet you got from 192.168.1.64/26 with /30 masks then allocate the subnets to the serial links.

192.168.1.112/30

network /subnet host

Subnet 1

192.168.1.0111| 00 | 00 = 192.168.1.112 / 30

First : 192.168.113 / 30

Last: 192.168.114 / 30

Subnet 2:

192.168.1.0111 | 01 | 00 = 192.168.1.116 /30

First : 192.168.1.117 / 30 1

Last : 192.168.1.118 / 30

192.168.1.0111 | 10 | 00 = 192.168.1.120 / 30

192.168.1.0111 | 11 | 00 = 192.168.1.124 /30

Now David assigned Subnet 1 and 2 to the serial ports connections on site 1 and site 3. I’m not sure why.

Now lets assign the PCs on site 3 with IPV4 addresses.

Step 2: Allocate the first subnet to site 3:

Lets break up 192.168.1.64/28

Broadcast : 192.168.1.79/28

Last host: 192.168.1.78/28

2nd last : 192.168.1.77/28

First host: 192.168.1.65/28

Using the info above we allocate IPV4 addresses to every host on site 3.

PC 6:

PC 7 and 8 get assigned the next IP address in sequence from PC 6.

PC 6 : 192.168.1.65/28

PC 7 192.168.1.66/28

PC 8: 192.168.1.67/28

Now you should be able to ping cisco.com

Share this post on:

Leave a Reply

Your email address will not be published. Required fields are marked *