0% found this document useful (0 votes)
113 views

Pre-Created Practice Lab For The Practice of DHCP Server

This document describes configuring a DHCP server on a router to provide IP addresses to two connected networks - Left_Network and Right_Network. It involves configuring the router's interfaces with IP addresses, creating DHCP pools for each network, and specifying DHCP options like default gateway, DNS server, and TFTP server IP addresses. Commands are provided to exclude address ranges, create the pools, and configure the DHCP options for each network on the router.

Uploaded by

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

Pre-Created Practice Lab For The Practice of DHCP Server

This document describes configuring a DHCP server on a router to provide IP addresses to two connected networks - Left_Network and Right_Network. It involves configuring the router's interfaces with IP addresses, creating DHCP pools for each network, and specifying DHCP options like default gateway, DNS server, and TFTP server IP addresses. Commands are provided to exclude address ranges, create the pools, and configure the DHCP options for each network on the router.

Uploaded by

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

Pre-created practice lab for the practice of DHCP server

In this lab, there are two networks: Left_network and Right_Network. Both networks


are connected to the router's Fast Ethernet 0/0 and 0/1 interfaces, respectively. Now
our objective is to configure the following IP configuration on both networks.

Configuration Left_Network Right_


IP addresses 192.168.1.0 to 192.168.1.255 192.16
Available IP addresses for hosts 192168.1.10 to 192.168.1.254 192.16
Subnet mask 255.255.255.0 255.25
Default Gateway 192.168.1.1 192.16
DNS Server 192.168.1.2 192.16
TFTP Server 192.168.1.3 192.16
Reserved 192.168.1.4 to 192.168.1.10 192.16
Configuring IP configuration on the router

A router connects different networks. If a router is connected to a network, hosts of the


network use the router as the default gateway to reach the host of other networks.

In our example, since the Left_Network and Right_Network are respectively


connected to the Fast Ethernet 0/0 and 0/1 interfaces of the router, both networks will
use the IP addresses of their respective interfaces as the default gateway IPs.
In simple terms, Fast Ethernet 0/0 and Fast Ethernet 0/1 of the router are the default
gateways of the Left_Network and Right_Network respectively. Before configuring
the router to act as a DHCP server, we have to configure and enable these interfaces.

To configure and enable these interfaces, access the command prompt of the router,
and execute the following commands.

Router>enable
Router# configure terminal
Router(config)# interface FastEthernet 0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)#exit
Router(config)# interface FastEthernet 0/1
Router(config-if)# ip address 192.168.2.1 255.255.255.0
Router(config-if)# no shutdown
Router(config-if)#exit
The following image shows the above commands on the packet tracer.

Configuring DHCP server on the router

For each network that will obtain IP configuration from the DHCP server, we have to
create and configure a DHCP pool on the router. In our example, we have two networks,
so we have to create two DHCP pools, one for each network.

Use the following commands to create and configure a DHCP pool for
the Left_Network.

Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp excluded-address 192.168.1.0 192.168.1.10
Router(config)#ip dhcp pool Left_Network
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#dns-server 192.168.1.2
Router(dhcp-config)#option 150 ip 192.168.1.3
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#exit
The following table describes the above commands.

Command Description
ip dhcp excluded-address 192.168.1.0 This command tells the DHCP server not to assign the addresses
192.168.1.10 clients.
ip dhcp pool Left_Network This command creates a DHCP pool named, Left_Network and
configuration mode.
default-router 192.168.1.1 This command assigns the default gateway to clients of this DHC
dns-server 192.168.1.2 This command sets a primary DNS server for the clients.
option 150 ip 192.168.1.3 This command provides the IP address of the TFTP server to the
network 192.168.1.0 255.255.255.0 This command specifies the range of IP addresses for the pool.
exit This command exits DHCP pool configuration mode.
Create and configure a DHCP pool for the Right_Network using the same commands
as shown below.

Router(config)#ip dhcp excluded-address 192.168.2.0 192.168.2.10


Router(config)#ip dhcp pool Right_Network
Router(dhcp-config)#default-router 192.168.2.1
Router(dhcp-config)#dns-server 192.168.2.2
Router(dhcp-config)#option 150 ip 192.168.2.3
Router(dhcp-config)#network 192.168.2.0 255.255.255.0
Router(dhcp-config)#exit
Router(config)#
The following image shows how to execute the above commands on the router.

You might also like