In this article we will learn how to configure a router to work as a DHCP SERVER for computers or printers or any end devices connected with different Router and located in a different network.So in below diagram you can see the topology which i have created in cisco packet tracer and now i am going to configure Router R1 such that it will act as a DHCP SERVER for machines connected with Router R2. I mean i will configure router R1 in such a way that it can automatically assign ip addresses to PC2 and PC3 which are connected with router R2 and in a different network.Hence in this article you will see one router is acting as a dhcp server for pc connected with other router.
Here i assume that you people already know how to assign ip address on router interfaces and you have also knowledge of routing.If you are new and you don’t know how to configure ip address on router interface and you have no idea about routing then you can read my other articles in CCNA section.
You can also Read:
- Router as a Multiple DHCP SERVER.
- static routing configuration with each routers acting as a DHCP Machine
DHCP CONFIGURATION ON ROUTER R1:
Router(config)#ip dhcp pool satish
Router(dhcp-config)#network 188.8.131.52 255.0.0.0
NOW CONFIGURE ROUTER R2 fa0/1 SO THAT IT KNEW FROM WHERE IT HAVE TO IP:
Router(config-if)#ip helper-address 184.108.40.206
Now you can just go on PC2 and PC3 and select DHCP option it will be automatically provided an ip address.
Note: DHCP uses UDP protocol.
Port 67 for requests and 68 for replies.
Note that as per cisco 12.2 release, only ethernet interfaces are supported for DHCP.