Lab 4 - Router As A DHCP Server
Lab 4 - Router As A DHCP Server
net
Lab exercise
Your task is to configure the router to issue an IP address to the host via DHCP. Please feel
free to try the lab w ithout following the Lab walk-through section.
Purpose
Configuring a router to act as a DHCP server is now included in the CCNA exam. You may
w ell also have to carry out this task as a netw ork engineer w hilst on site.
Lab objectives
1. Use the IP addressing scheme depicted in the diagram above. You w ill need to connect
the router to the PC via crossover cable unless you have a switch you can use.
2. Set the IP address on the router fast Ethernet interface as 172.16.1.1 /24.
4. Configure a DHCP pool on the router for netw ork 172.16.1.0 /24.
5. Add an excluded address on the router and add TCP settings (optional).
6. Finally to test that DHCP is w orking renew the IP address on the PC.
Lab walk-through
1. To set the IP addresses to an interface you w ill need to do the following:
Router#conf t
2. Enable DHCP on your router and set the address pool (from configuration mode) :-
Optional Commands
Router(dhcp-config)#default-router 10.10.10.254
Router(dhcp-config)#domain-name mydomain.com
Router(dhcp-config)#ctrl + z
Router#
3. To configure the PC to use DHCP, do the follow ing (this is on Windows XP):
DHCP broadcast.
Now open a command prompt and issue the ipconfig/all command to check the TCP/IP
Hardware address/
User name
You can see the IP address allocated from the pool and the correct MAC address. The router
has added 01 to the front of the MAC when it wants to reserve an address.
Show run
Current configuration : 860 bytes
version 12.3
no service password-encryption
hostname Router
boot-start-marker
boot-end-marker
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
no aaa new-model
ip subnet-zero
default-router 10.10.10.254
domain-name mydomain.com
lease 3
ip cef
interface FastEthernet0/0
speed auto
interface Serial0/0
no ip address
shutdow n
no fair-queue
ip classless
no ip http server
no ip http secure-server
!
line con 0
line aux 0
line vty 0 4
end