07-23-2020 03:33 AM - edited 07-23-2020 03:34 AM
Hi Guys,
Would like to ask for help if someone can enlighten me why the PC on my topology is not getting the 'default-router' information (default gateway) from my DHCP server.
I have attached router R3's (the dhcp server) config here, and a screenshot of my current topology.
Currently, I have indicated two IP addresses available as default-router for my pool CCNAPOOL10 (see attached config). When I try to obtain an IP for PC3, it gets an IP address, but not the default-router info/default gateway IP.
However, if i change the default-router statement to only have one IP address, the PC obtains both IP address and default gateway IP.
PC3 is in VLAN 10 which is in the 192.168.10.0 network.
Anybody has an idea why? Thank you!
Solved! Go to Solution.
07-24-2020 08:25 AM - edited 07-24-2020 08:33 AM
One of the reasons that I continue to be active in the community is that I learn new things (and occasionally learn that something that I believed to be true is not true - at least on some platforms). Today is one of those days. The documentation that you post is clear that multiple default routers are supported. So the question is why does it not work on your router? I have 2 suggestions:
- perhaps it is supported on some platforms and not on others? What model of router is yours? Does the document that you posted apply to that model of router?
- perhaps it is a bug in the software?
If you have a service contract I would suggest that you open a case with Cisco TAC about this.
If you do find more information about this issue please do update us.
[edit] Another possibility occurred to me. We do not know if this is being done on real equipment or is done on some emulator. If it is on an emulator it is likely that you have found another of the situations where the emulator does not accurately implement some of the commands.
07-23-2020 08:24 AM
go through the topic What is a default gateway
07-23-2020 10:27 AM
I am not clear how to understand the drawing that you posted, especially where the gateway & alternate gateway are. But that may not matter much because I do not believe that Cisco IOS supports specification of an alternate default router in configuring a pool for DHCP. If you are interested in providing a second gateway to provide continuing operation if the first gateway goes out of service you should look into HSRP which does provide a way for a second default gateway device to function if the primary gateway goes out of service.
07-24-2020 12:21 AM
Hi Richard,
Thanks for replying. Sorry forgot to include that the default router info I have configured in R3 are the SVIs for VLAN 10 in RS1 and RS2 L3 switches (pls refer to topology). I intend to have them as the default gateways.
According to CISCO documentation, you can provide multiple default router IPs:
default-router address [address2 ... address8]
(Optional) Specifies the IP address of the default device for a DHCP client.
-The IP address should be on the same subnet as the client.
-One IP address is required; however, you can specify up to eight IP addresses in one command line. These default devices are listed in order of preference; that is, address is the most preferred device, address2 is the next most preferred device, and so on.
07-24-2020 08:25 AM - edited 07-24-2020 08:33 AM
One of the reasons that I continue to be active in the community is that I learn new things (and occasionally learn that something that I believed to be true is not true - at least on some platforms). Today is one of those days. The documentation that you post is clear that multiple default routers are supported. So the question is why does it not work on your router? I have 2 suggestions:
- perhaps it is supported on some platforms and not on others? What model of router is yours? Does the document that you posted apply to that model of router?
- perhaps it is a bug in the software?
If you have a service contract I would suggest that you open a case with Cisco TAC about this.
If you do find more information about this issue please do update us.
[edit] Another possibility occurred to me. We do not know if this is being done on real equipment or is done on some emulator. If it is on an emulator it is likely that you have found another of the situations where the emulator does not accurately implement some of the commands.
07-24-2020 05:47 PM
07-25-2020 08:08 AM
Thanks for the additional information. Especially if this is GNS3 I think it is not worth any more effort. Just configure a single default router and watch it work. It was an interesting discussion and I thank you for showing me something that I did not know. Thank you for marking this question as solved. This will help other participants in the community to identify discussions which have helpful information. This community is an excellent place to ask questions and to learn about networking. I hope to see you continue to be active in the community.
07-26-2020 05:24 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide