Prince CN 7

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

EXPERIMENT- 7

Student Name: Prince Kumar


UID: 20BCS3936
Section/Group- 20BDA - KRG2_A
Semester: 5
Subject Name- Computer Networks Lab

1. Aim :
Implement Router as a DHCP server that can serve multiple VLANs.

2. Prerequisites :
● An access to CISCO PACKET TRACER .
3. Theory :
Dynamic Host Configuration Protocol (DHCP) is an application layer protocol used to
distribute various network configuration parameters to devices on a TCP/IP network. – IP
addresses, subnet masks, default gateways, DNS servers, etc. DHCP employs a client-server
architecture; a DHCP client is configured to request network parameters from a DHCP server
on the network. A DHCP server is configured with a pool of available IP addresses and assigns
one of them to the DHCP client.

4. Configuration :

Here are the steps:

1. Exclude IP addresses from being assigned by DHCP by using the ip


dhcp excluded-address FIRST_IP LAST_IP

2. Create a new DHCP pool with the ip dhcp pool NAME command.

3. Define a subnet that will be used to assign IP addresses to hosts with


the network SUBNET SUBNET_MASK command.

4. Define the default gateway with the default-router IP command.

5. Define the DNS server with the dns-server IP address command.


Floor1(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.50

Floor1(config)#ip dhcp pool Floor1DHCP

Floor1(dhcp-config)#network 192.168.0.0 255.255.255.0

Floor1(dhcp-config)#default-router 192.168.0.1

Floor1(dhcp-config)#dns-server 192.168.0.1

In the example above you can see that I’ve configured the DHCP server with the
following parameters:

· the IP addresses from the 192.168.0.1 – 192.168.0.50 range will not be assigned
to hosts.

· the DHCP pool was created and named Floor1DHCP

· the IP addresses assigned to the hosts will be from the 192.168.0.0/24 range

· the default gateway’s IP address is 192.168.0.1

· the DNS server’s IP address is 192.168.0.1


5. Output :
6. Learning outcomes :
1. VLAN
2. DHCP
3. Router Configuration
4. Configuration of switch

You might also like