CONFIGURE ROUTER TO WORK AS DHCP SERVER in cisco packet tracer

In this post you will learn how to configure single router as DHCP server . In static routing we manually provide ip address to every device . But in dhcp server configuration One router will provide  ip address to all device .

DHCP stands for Dynamic Host Configuration Protocol , that automatically provides an internet protocol(IP) and other information like subnet mask and default gateway .

dhcp server in cisco

  • First take one router, switch and three end-devices like laptops or pcs

router, switches and laptops

  • Now go to connection section and select copper straight wire
  • We use copper straight wire to connect

router    and     switches

  • We use copper cross wire to connect

router   and  router

pc and  laptop

router and  pc

connection cable

  • Now take copper straight cable and go to first laptop and select Fast Ethernet 0 port

pc connection port

  • And take that wire and connect to switch’s Fast Ethernet0/1 port.
  • Now connect the second device with switch’s Fast Ethernet0/2 port

3

  • Again take copper straight cable, connect switch’s Fast Ethernet 0/0 port to router’s Fast Ethernet 0/0 port

how to configure cisco router as dhcp server

  • You will find your router connection is red . Don’t worry , coding shown below will make it green .

how to configure cisco router as dhcp server

  • Run this command in router

Router>en
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fa0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shut

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Connection port will be green now .

Now for dhcp configuration on that router

Router(config-if)#ip dhcp pool one
Router(dhcp-config)#network 1.0.0.0 255.0.0.0
Router(dhcp-config)#default-router 1.0.0.1
Router(dhcp-config)#exit
Router(config)#

how to configure cisco router as dhcp server

  • Now click on First laptop and go to its Desktop option
  • Select Ip configuration.

how to configure cisco router as dhcp server

  • Click on DHCP in ip configuration it will request router for ip address.

how to configure cisco router as dhcp server

  • Automatically your ip address , subnet mask and default gateway will be filled .

how to configure cisco router as dhcp server

  • Now go to second laptop and click on dhcp for ip . It will ask dhcp router , ip address for this device .

8

  • Do the same with third device .
  • And If it’s showing Dhcp request unsuccessful , That means you have done something wrong in the coding . Check your coding in  Router .

how to configure cisco router as dhcp server

This is how Single router work as dhcp server .

Don’t hesitate to comment , if you got any problem .

 

One thought on “CONFIGURE ROUTER TO WORK AS DHCP SERVER in cisco packet tracer

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s