Subnetting With Practice: Cisco CCNA R&S 200-301 Network Walks Academy

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 29

Lecture 11

Subnetting with practice

Cisco CCNA R&S 200-301 - Network Walks Academy Amoona H (CCIE)


IP Subnetting

1. Identify classes of IP

2. Decimal to Binary conversion

3. Binary to Decimal conversion

4. Calculate maximum no. of hosts

5. Calculate maximum no. of Subnets

6. Advanced Practice

www.networkwalks.com
IP Address Classes

Class Address Range Default Subnet Mask

Class A 1.0.0.1 – 126.255.255.254 255.0.0.0

Class B 128.1.0.1 – 191.255.255.254 255.255.0.0

Class C 192.0.1.1 – 223.255.254.254 255.255.255.0

www.networkwalks.com
IP Address Classes - Exercise

Exercise
Which class of IP address is this? Which class of IP address is this?

10.0.0.2 172.16.0.2

Which class of IP address is this?


Which class of IP address is this?
116.6.6.1
192.168.0.2

www.networkwalks.com
IP Subnetting

1. Identify classes of IP

2. Decimal to Binary conversion

3. Binary to Decimal conversion

4. Calculate maximum no. of hosts

5. Calculate maximum no. of Subnets

6. Advanced Practice

www.networkwalks.com
Decimal to Binary Conversion Examples

Question: Please convert 32 to binary

Solution:
2 32
2 16 0
2 8 0
2 4 0
2 2 0
1 0

Answer: 0010 0000


www.networkwalks.com
Decimal to Binary Conversion Examples

Question: Please convert 60 to binary

Solution:
2 60
2 30 0
2 15 0
2 7 1
2 3 1
1 1

Answer: 0011 1100


www.networkwalks.com
Decimal to Binary Conversion Exercises

Exercise
• Please convert 170 to binary • Please convert 153 to binary

• Please convert 53 to binary • Please convert 244 to binary

www.networkwalks.com
IP Subnetting

1. Identify classes of IP

2. Decimal to Binary conversion

3. Binary to Decimal conversion

4. Calculate maximum no. of hosts

5. Calculate maximum no. of Subnets

6. Advanced Practice

www.networkwalks.com
Binary to Decimal Conversion Examples

Question: Please convert 0000 0101 to Decimal

Solution:

0 0 0 0 0 1 0 1
0 + 0 + 0 + 0 + 0 + 4 + 0 + 1 =5

Answer: 5
www.networkwalks.com
Binary to Decimal Conversion Examples

Question: Please convert 0001 0000 to Decimal

Solution:

0 0 0 1 0 0 0 0
0 + 0 + 0 + 16 + 0 + 0 + 0 + 0 = 16

Answer: 16
www.networkwalks.com
Binary to Decimal Conversion Exercises

Exercise
• Please convert 0010 0100 to binary • Please convert 1111 1100 to binary

• Please convert 1101 0010 to binary • Please convert 1111 1111 to binary

www.networkwalks.com
IP Subnetting

1. Identify classes of IP

2. Decimal to Binary conversion

3. Binary to Decimal conversion

4. Calculate maximum no. of hosts

5. Calculate maximum no. of Subnets

6. Advanced Practice

www.networkwalks.com
4. Calculate maximum no. of Hosts - Example

Question: How many (max. no. of) hosts are in this? 192.168.2.0/29
Solution:

www.networkwalks.com
4. Calculate maximum no. of Hosts - Example

Question: How many (max. no. of) hosts are in this? 192.168.2.0/29
Solution:
Step 1: Identify which class the IP address belongs to: 192.168.2.0 CLASS C
Step 2: Write the subnet mask in decimal and then in binary:
255. 255. 255. 0
11111111 . 11111111 . 11111111 . 00000000
Step 3: Check how many network bits are added from the original subnet mask
/24 to /29 5 bits are added
Step 4: Add the no. of bits starting from where 1s are ending
11111111.11111111.11111111.11111000
5 bits are added
Step 5: Calculate max no. of hosts
2N where N represents how many hosts bits (0s) are left
23
www.networkwalks.com 2*2*2 8
4. Calculate maximum no. of Hosts - Example
Question: How many (max. no. of) hosts are in this? 200.200.200.0/28

www.networkwalks.com
4. Calculate maximum no. of Hosts - Example
Question: How many (max. no. of) hosts are in this? 200.200.200.0/28
Solution:
Step 1: Identify which class the IP address belongs to: 200.200.200.0 CLASS C
Step 2: Write the subnet mask in decimal and then in binary:
255. 255. 255. 0
11111111.11111111.11111111.00000000
Step 3: Check how many network bits are added from the original subnet mask
/24 to /28 4 bits are added
Step 4: Add the no. of bits starting from where 1s are ending
11111111.11111111.11111111.11110000
4 bits are added
Step 5: Calculate max no. of hosts
2N where N represents how many hosts bits (0s) are left
24 2*2*2*2 16
www.networkwalks.com
4. Calculate maximum no. of hosts - Exercises

Question: How many (max. no. of) hosts are in this subnet? 192.168.3.0 /28

Solution:

Answer:
www.networkwalks.com
4. Calculate maximum no. of hosts - Exercises

Question: How many (max. no. of) hosts are in this subnet? 200.200.100.0 /30

Solution:

Answer:
www.networkwalks.com
4. Calculate maximum no. of hosts - Exercises

Question: How many (max. no. of) hosts are in this subnet? 199.199.199.0 /25

Solution:

Answer:
www.networkwalks.com
IP Subnetting

1. Identify classes of IP

2. Decimal to Binary conversion

3. Binary to Decimal conversion

4. Calculate maximum no. of hosts

5. Calculate maximum no. of Subnets

6. Advanced Practice

www.networkwalks.com
4. Calculate maximum no. of Subnets - Example
Question: How many (max. no. of) subnets are in this? 192.168.2.0 /29

www.networkwalks.com
4. Calculate maximum no. of Subnets - Example
Question: How many (max. no. of) subnets are in this? 192.168.2.0 /29
Solution:
Step 1: Identify which class the IP address belongs to: 192.168.2.0/29 CLASS C
Step 2: Write the subnet mask in decimal and then in binary:
255. 255. 255. 0
11111111.11111111.11111111.00000000
Step 3: Check how many network bits are added from the original subnet mask
/24 to /29 5 bits are added
Step 4: Add the no. of bits starting from where 1s are ending
11111111.11111111.11111111.11111000
5 bits are added
Step 5: Calculate max no. of subnet
2N where N represents how many subnet bits (1s) are added
25 2*2*2*2*2 32
www.networkwalks.com
4. Calculate maximum no. of Subnets - Example

Question: How many (max. no. of) subnets are in this? 200.200.200.0 /28

www.networkwalks.com
4. Calculate maximum no. of Subnets - Example

Question: How many (max. no. of) subnets are in this? 200.200.200.0 /28
Solution:
Step 1: Identify which class the IP address belongs to: 200.200.200.0/28 CLASS C
Step 2: Write the subnet mask in decimal and then in binary:
255. 255. 255. 0
11111111.11111111.11111111.00000000
Step 3: Check how many network bits are added from the original subnet mask
/24 to /28 4 bits are added
Step 4: Add the no. of bits starting from where 1s are ending
11111111.11111111.11111111.11110000
4 bits are added
Step 5: Calculate max no. of subnet
2N where N represents how many subnet bits (1s) are added
24 2*2*2*2 16
www.networkwalks.com
4. Calculate maximum no. of Subnets - Exercises

Question: How many (max. no. of) subnets are in this? 192.168.3.0 /27

Solution:

Answer:
www.networkwalks.com
4. Calculate maximum no. of Subnets - Exercises

Question: How many (max. no. of) subnets are in this? 200.200.100.0 /30

Solution:

Answer:
www.networkwalks.com
4. Calculate maximum no. of Subnets - Exercises

Question: How many (max. no. of) subnets are in this? 199.199.199.0 /25

Solution:

Answer:
www.networkwalks.com
Thank You

You might also like