LAB 2: DHCP Configuration: December 22, 2018

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

LAB 2: DHCP Configuration

December 22, 2018

MEU,FET,IT www.meu.edu.et December 22, 2018 1 / 10


Topology

MEU,FET,IT www.meu.edu.et December 22, 2018 2 / 10


Address Table

Device Interface IP address Subnet Mask


DHCPServer G0/1 192.168.10.1 255.255.255.0

MEU,FET,IT www.meu.edu.et December 22, 2018 3 / 10


Scenario
In this lab, you will configure the DHCP service. One router is the
DHCP server. The router forwards DHCP requests to the server.
Objective
Configure a router for Dynamic Host Configuration Protocol (DHCP)
to dynamically assign addresses to attached hosts.

MEU,FET,IT www.meu.edu.et December 22, 2018 4 / 10


Preparation

• On DHCPServer, firstly we will give an IP address to the router


interface (g0/1) that is connected to the switch.
• Secondly that we will create a DHCP pool named DHCPPool.
• In this pool we will mention IP addresses that will be given to the
DHCP clients.
• After that we will assign the router’s interface address as a
default-router address for clients.
• And in the last part we will exclude some addresses that we don’t want
to use during this dynamic IP assignments.

MEU,FET,IT www.meu.edu.et December 22, 2018 5 / 10


Tasks I
Task 1: Prepare the Network
Step 1: Cable a network that is similar to the one in the topology
diagram.
Step 2: Clear all existing configurations on the router.
Task 2: Perform Basic Router Configurations
Configure the DHCPServer router according to the following
guidelines:
Configure the device hostname.
Disable DNS lookup.
Configure a privileged EXEC mode password.
Configure a message-of-the-day banner.
Configure a password for the console connections.
Configure a password for all vty connections.

MEU,FET,IT www.meu.edu.et December 22, 2018 6 / 10


Tasks II
Task 3: Configure a Cisco IOS DHCP Server
Cisco IOS software supports a DHCP server configuration called Easy
IP. The goal for this lab is to have device on the networks
192.168.10.0/24 request IP addresses via DHCP from DHCPServer.
Step 1: Exclude statically assigned addresses.
The DHCP server assumes that all IP addresses in a DHCP address pool
subnet are available for assigning to DHCP clients. You must specify the
IP addresses that the DHCP server should not assign to clients. These IP
addresses are usually static addresses reserved for the router interface,
switch management IP address, servers, and local network printer. The ip
dhcp excluded-address command prevents the router from assigning IP
addresses within the configured range. The following commands exclude
the first 10 IP addresses from each pool for the LANs attached to
DHCPServer. These addresses will not be assigned to any DHCP clients.

DHCPServer#config terminal
DHCPServer(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10

MEU,FET,IT www.meu.edu.et December 22, 2018 7 / 10


Tasks III

Step 2: Assign IP address to DHCPServer interface G0/1 interface


connected to switch port.

DHCPServer#config terminal
DHCPServer(config)#interface g0/1
DHCPServer(config-if )# ip address 192.168.10.1 255.255.255.0

DHCPServer(config-if )#no shutdown

Step 3: Configure the pool.


Create the DHCP pool using the ip dhcp pool command and name it
DHCPPool.

DHCPServer(config)#ip dhcp pool DHCPPool

MEU,FET,IT www.meu.edu.et December 22, 2018 8 / 10


Tasks IV
Specify the subnet to use when assigning IP addresses. DHCP pools
automatically associate with an interface based on the network
statement. The router now acts as a DHCP server, handing out
addresses in the 192.168.10.0/24 subnet starting with 192.168.10.1.

DHCPServer(dhcp-config)#network 192.168.10.0 255.255.255.0


Configure the default router and domain name server for the network.
Clients receive these settings via DHCP, along with an IP address.

DHCPServer(dhcp-config)#dns-server 192.168.11.5
DHCPServer(dhcp-config)#default-router 192.168.10.1

Step 4: Test DHCP


After this configuration, when we check the ip address of PC0, we will
see the IP address 192.168.10.11 . Because it is the first available address in
DHCP pool.

MEU,FET,IT www.meu.edu.et December 22, 2018 9 / 10


Tasks V

MEU,FET,IT www.meu.edu.et December 22, 2018 10 / 10


—————————————————————–

MEU,FET,IT www.meu.edu.et December 22, 2018 10 / 10

You might also like