Skip to main content

Command Palette

Search for a command to run...

Hands on Lab: Real Networking and Subnetting, Configuring DHCP, DNS and Web Servers, Switches and Routers.

DHCP, DNS, Router, Switches, PCs, Web Server.

Updated
2 min read
Hands on Lab: Real Networking and Subnetting, Configuring DHCP, DNS and Web Servers, Switches and Routers.
A

"I'm Abdul Samad Mahmoodi, and I have more than six years experience in IT Area specially in IT- Administration and IT-Support and my Tasks were DHCP, DNS, Mail server configuration, creating LAN, WAN also working with Active Directory and monitoring, also configuration of Switches, Routers, Firewalls and Monitoring the network finally I was the first contact person for network problems also I am an AWS Certified Solutions Architect passionate about IT- Administrator, IT-Support, DevOps, Cloud Engineering, and CI/CD automation. I love building Robust, scalable, highly available Infrastrukturen in on-premises, Hybrid or cloud solutions AWS and Azure, Terraform, Kubernetes, and Docker."

I have created a new project in Packet tracer which is subnetting the IP Address and creation of 2 networks, each network with 3 Pcs, 1 DHCP Server one Switch and one Router finally one internet router to connect the networks to the Web and DNS Servers as below:

Youtube Link for the project: https://youtu.be/osmvw9zUaNw

The given IP: 192.168.1.0/24 255.255.255.0

Configure the network as follows:

1- We have been allocated subnet 192.168.1.0/24 to subnet this into 5 subnets each subnet at least 6 useable hosts as below:

2- Subnet 1 for Network 1.

3- Subnet 2 for the link between Router 1 and the internet Router.

4- Subnet 3 for Network 2.

5- Subnet 4 for the link between R2 and internet router.

6- Subnet 5 for the DNS and Web Servers.

7- Configuring the Routers and switches.

8- Configuring the Servers as Internet server for hosting websites.

9- Configuring the DHCP servers for allocating the IP for clients.

10-Verifying the accessibility of servers and other network devices.192.168.1.0/24 255.255.255.0 to 5 subnets and each subnets include at least 6 useable hosts. so I calculated the subnet for finding a new CIDR to not waste the IPs in /24

Then I calculate based the formula of 2^h-2= to our required hosts as below:

2³=8-2=6 which was 6 use able IP and i needed only 3 host bits for our host portion so I added the other 5 bits from 24-29 to the network portion and our new CIDR was /29

I found the new subnet mask and our block size of the subnets as below:

32-3= 29

in binary calculation the 29 CIDR is equal to Subnet Mask of 248 I subtracted it as below:

256-248= 8

our block size is 8 it means we have 8 ips in our subnet that two of them are Network and broadcast id then I have 6 useable ips in each subnet.

Subnet 1: 192.168.1.0/29 255.255.255.248

Subnet 2: 192.168.1.8/29 255.255.255.248

Subnet 3: 192.168.1.16/29 255.255.255.248

Subnet 4: 192.168.1.24/29 255.255.255.248

Subnet 5: 192.168.1.32/29 255.255.255.248

After that I configured this in my infrastructure which already mentioned in Packet Tracer.

Infrastructure of Network or topology:

Configuration of router1, Switch 1 pcs and DHCP server1 in network 0 and routing to Internet router:

Configuration of DHCP Server 1:

Assigning IP to PC dynamically by DHCP:

Finally by configuring of second network and linking routers to internet router and configuring DNS and Web Server I have successfully accessed to the servers using CLI by ping command from both networks and also using web browser to open web page with IP and Domain Name as below: