DHCP server in cisco router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 04:43 AM - edited 03-03-2019 04:05 PM
Router(config)#ip dhcp pool 1
Router(dhcp-config)#network x.x.x.x /22
Router(dhcp-config)#domain-name (domain name)
Router(dhcp-config)#dns dns1 dns2
Router(dhcp-config)#default-router x.x.x.x
Router(dhcp-config)#class class1
Router(config-dhcp-pool-class)#address range x.x.x.x x.x.x.x
this mode of configuration is absolutely working fine for me. my problem is i need to add one secondary gateway also with my default router, can I? if can then what is the commands. and my client machines are windows machines and my windows machines should contact secondary gateway when primary gateway fails.
- Labels:
-
Routing Protocols

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 04:51 AM
You can specify 8 IP Addresses in one command
!
ip dhcp pool 1
default-router IP1 IP2 IP3 IP4 IP5 IP6 IP7 IP8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 05:08 AM
So will second ip address be the secondary gateway , and windows machines will identify it as secondary gateway... and will contact it when default gateway goes down???
thanks in advance...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2007 05:24 AM
It should be, I can't remember the detailed operation of this multiple gateway but you can try it by shutting down the first specified gateway :)
