[go: up one dir, main page]

0% found this document useful (0 votes)
40 views7 pages

Solution of Subnetting Problem 01

The document outlines a subnetting tutorial for an ISP company, detailing the allocation of IP addresses for various departments and point-to-point links. It provides a structured approach to subnetting based on the number of required hosts for each department. Additionally, it includes configuration commands and a connectivity testing plan for the network setup.

Uploaded by

rakibulh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views7 pages

Solution of Subnetting Problem 01

The document outlines a subnetting tutorial for an ISP company, detailing the allocation of IP addresses for various departments and point-to-point links. It provides a structured approach to subnetting based on the number of required hosts for each department. Additionally, it includes configuration commands and a connectivity testing plan for the network setup.

Uploaded by

rakibulh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Subnetting Tutorial

Problem Statement: Suppose you are working an ISP company as a network engineer. You have been given an IP
address block of 192.168.128.0/22. You must provide for the following subnets arrangement for the company:

(a) 1st subnet, CSE Department LAN, up to 220 hosts


(b) 2nd subnet, EEE Department LAN, up to 160 hosts
(c) 3rd subnet, ETE Department LAN, up to 80 hosts;
(d) Point to point link between CSE and ETE,
(e) Point to point link between CSE and EEE
(f) Point to point to point link between EEE and ETE.

Fill up the following table, configure the exhibit and test the connectivity of the following cases:

(i) Ping from PC0 to PC5 (ii) PC1 to PC3 and (iii) PC2 to PC5

Subnet Needed Allocated Network Mask Assignable Broadcast


Name Size Size Address Range Address
CSE
EEE
ETE
CSE-ETE
CSE-EEE
EEE-ETE
Solution of the problem: 192.168.128.0/22

Step 1: Sort (Decending order) the number of subnets according to their requirement

(a) 1st subnet, CSE Department LAN = 220 + 2 = 222


(b) 2nd subnet, EEE Department LAN = 160 + 2= 162
(c) 3rd subnet, ETE Department LAN = 80 + 2 = 82
(d) Point to point link between CSE and ETE = 2 + 2 =4
(e) Point to point link between CSE and EEE = 2 + 2 =4
(f) Point to point to point link between EEE and ETE =2+2 =4

Step 2: Step 3: 222 <= 2N

128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1 128 64 32 16 8 4 2 1


1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Network CSE 192.168.128.0/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1st Host of CSE 192.168.128.1/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 Last Host of CSE 192.168.128.254/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 Broadcust CSE 192.168.128.255/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 Network EEE 192.168.129.0/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 1st Host of EEE 192.168.129.1/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 Last Host of EEE 192.168.129.254/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 Broadcust EEE 192.168.129.255/24
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 Network ETE 192.168.130.0/25
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 1st Host of ETE 192.168.130.1/25
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 1 1 1 1 0 Last Host of ETE 192.168.130.126/25
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 0 1 1 1 1 1 1 1 Broadcust ETE 192.168.130.127/25
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 Network CSE-ETE 192.168.130.128/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 1st Host CSE-ETE 192.168.130.129/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 0 Last Host CSE-ETE 192.168.130.130/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 Broadcust CSE-ETE 192.168.130.131/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 0 Network CSE-EEE 192.168.130.132/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 0 1 1st Host CSE-EEE 192.168.130.133/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 1 0 Last Host CSE-EEE 192.168.130.134/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 1 1 1 Broadcust CSE-EEE 192.168.130.135/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 0 Network EEE-ETE 192.168.130.136/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 0 1 1st Host EEE-ETE 192.168.130.137/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 1 0 Last Host EEE-ETE 192.168.130.138/30
1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 1 0 1 1 Broadcust EEE-ETE 192.168.130.139/30
Subnet Needed Allocated Network Address Mask Assignable Range Broadcast
Name Size Size Address
CSE 220 254 192.168.128.0/24 255.255.255.0 192.168.128.1-192.168.128.254 192.168.128.255
EEE 160 254 192.168.129.0/24 255.255.255.0 192.168.129.1-192.168.129.254 192.168.129.255
ETE 80 126 192.168.130.0/25 255.255.255.128 192.168.130.1-192.168.130.126 192.168.130.127
CSE-ETE 2 2 192.168.130.128/30 255.255.255.252 192.168.130.129-192.168.130.130 192.168.130.131
CSE-EEE 2 2 192.168.130.132/30 255.255.255.252 192.168.130.133-192.168.130.134 192.168.130.135
EEE-ETE 2 2 192.168.130.136/30 255.255.255.252 192.168.130.137-192.168.130.138 192.168.130.139
Note: Another online tool can be used such as https://vlsmcalc.vercel.app/
Configuration Commands:

Configure the PCs:

Configure the PCs according to the address table.

Configure the Routers:

Router (CSE) Configuration:


To configure the Fast Ethernet interface:
Router>
Router>enable
Router#
Router#configure terminal
Router(config)#
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.128.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#exit
Router#exit
Router>

To configure the Serial interface:


Router(config)#interface ser3/0
Router(config-if)#ip address 192.168.130.129 255.255.255.252
Router(config-if)#no shutdown

Router(config)#interface ser2/0
Router(config-if)#ip address 192.168.130.134 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown

To configure the routing table of the router:


Router(config)#ip route 192.168.129.0 255.255.255.0 ser3/0
Router(config)#ip route 192.168.130.0 255.255.255.128 ser2/0
Router (EEE) Configuration:
To configure the Fast Ethernet interface:
Router>enable
Router#configure terminal
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.129.1 255.255.255.0
Router(config-if)#no shutdown

To configure the Serial interface:


Router(config)#interface ser2/0
Router(config-if)#ip address 192.168.130.130 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown

Router(config)#interface ser3/0
Router(config-if)#ip address 192.168.130.138 255.255.255.252
Router(config-if)#no shutdown

To configure the routing table of the router:


Router(config)#ip route 192.168.128.0 255.255.255.0 ser2/0
Router(config)#ip route 192.168.130.0 255.255.255.128 ser3/0

Router (ETE) Configuration:


To configure the Fast Ethernet interface:
Router>enable
Router#configure terminl
Router(config)#interface fa0/0
Router(config-if)#ip address 192.168.130.1 255.255.255.128
Router(config-if)#no shutdown

To configure the Serial interface:


Router(config)#interface ser2/0
Router(config-if)#ip address 192.168.130.137 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown

Router(config)#interface ser3/0
Router(config-if)#ip address 192.168.130.133 255.255.255.252
Router(config-if)#no shutdown

To configure the routing table of the router:


Router(config)#ip route 192.168.128.0 255.255.255.0 ser3/0
Router(config)#ip route 192.168.129.0 255.255.255.0 ser2/0

You might also like