06-05-2013 07:34 AM - edited 03-11-2019 06:53 PM
I have just set up my asa5505 and while in the sh run I have the following lines
dhcpd address 192.168.2.200-192.168.2.231 inside
dhcpd enable inside
!
dhcpd dns 68.94.156.1 interface outside
When a client connects to the device like:
192.168.2.215 there is no dns assigned. My devices are unable to access the internet unless I manually assign the dns in the local settings for that host. Any ideas? I am under the impression there is a bug somehow on this point.
Solved! Go to Solution.
06-05-2013 09:49 AM
Hi,
Try it with setting it for the "inside" interface
dhcpd dns x.x.x.x interface inside
I have never run into problems with the ASA DHCP
I guess you could even consider booting the whole computer or perhaps saving ASA configuration and booting it up if possible
- Jouni
06-05-2013 08:03 AM
Hi,
The "dns" related command should be
dhcpd dns 68.94.156.1 interface inside
Or just without the "interface inside" at all
If you dont specify an interface then it means its globally used DNS server for all DHCP pools configured on the ASA. If the "interface
Remember to mark the reply as the correct answer if it answered your question.
- Jouni
06-05-2013 08:09 AM
I will try this. I would like to make the change via cli and I am in config t what would the command be?
I tried to just enter dhcpd dns 68.94.156.1 (without the interface at all) and got an invalid input error.
Thanks for your help!
Vincent
06-05-2013 08:27 AM
Hi,
It should be possible to enter like this
ASA(config)# dhcpd dns 1.1.1.1
For example
- Jouni
06-05-2013 08:38 AM
I fat fingered the dhcpd command which is why it failed.
I input the command correctly this time and still after an ipconfig /release and ipconfig /renew I still get no dns assigned
06-05-2013 09:49 AM
Hi,
Try it with setting it for the "inside" interface
dhcpd dns x.x.x.x interface inside
I have never run into problems with the ASA DHCP
I guess you could even consider booting the whole computer or perhaps saving ASA configuration and booting it up if possible
- Jouni
06-05-2013 10:35 AM
Definate learnings here. Assigning the interface is required. The generic non interface command line didnt work.
Thanks for your help Jounl!
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