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

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](https://youtu.be/osmvw9zUaNw)

[**The given IP: 192.168.1.0/**](https://youtu.be/osmvw9zUaNw)**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:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553079414/c5de1917-5d97-4d58-864d-fc57e988897b.jpeg align="center")

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

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553201173/98bd7a8d-bf2f-4214-9182-9935a7d9a46d.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553232916/3f765ae9-cf7f-4e17-b0eb-2d4486826ef7.jpeg align="center")

Configuration of DHCP Server 1:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553257855/ef6f2517-cfbe-4c9a-87e3-730b25f93cab.jpeg align="center")

Assigning IP to PC dynamically by DHCP:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553374768/09b62c24-05bd-4e87-b8ed-e2c34b131fe6.jpeg align="center")

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:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553592254/973922ff-db1e-47b3-89e7-5e3ba8fe382c.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553618217/c759fc58-da96-4031-b12e-5934f3a74d7f.jpeg align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1769553650067/462a882e-df68-4e11-be40-d695c551108c.jpeg align="center")
