11-23-2004 12:19 AM - edited 03-02-2019 08:08 PM
Does anyone know whether issuing the "no service dhcp" will have any impact on the PCs getting their ip addressess from DHCP server x.x.x.x with default gateway having ip helper-address as x.x.x.x?
The above command to be activated in the default Cisco IOS router.
Related issue as follows : <http://www.cisco.com/warp/public/707/cisco-sa-20041110-dhcp.shtml
Any response is very much appreciated.
Thanks.
11-23-2004 02:19 AM
Hi,
This command will disable the ability of your router to use the helper address.
In fact i have disabled this in the past when locking down a router. When i then tried at a later date to configure DHCP relay it didn't work!
HTH
Paddy
11-23-2004 07:18 PM
Most of the time I think that Paddy has good opinions. But I am really surprised at this response and must disagree with it. "no service dhcp" has to do with the ability of the router to supply dhcp services from the router while "helper-address" has to do with the ability of the router to forward packets for multiple protocols (of which dhcp is one) to devices on remote networks. If "no service dhcp" really did prevent using helper address then it would prevent tftp and netbios and other protocol packets from being forwarded.
I tested it on a router. I configured "no service dhcp" and then I configured on an Ethernet interface "ip helper-address" and encountered no problem.
HTH
Rick
11-23-2004 07:41 PM
Rick,
After the experience I had the last several days, indeed putting "no service dhcp" will stop PCs from getting their ip addressess from the server defined in ip helper-address. Try restarting your PC(a few times) and check whether it's able to get an IP.
Having gone the workarounds recommended by Cisco, bootps only relates to dhcp service and thus disabling the ip helper-address.
Many thanks for your feedback.
Rgds,
Msaufi
11-24-2004 03:20 AM
Hi Rick,
Thanks for the post,
My answer to the orginal post was gained from experience in the field.
Entering "no service dhcp" on a router definetely stopped me from getting an IP address from DHCP, as i mentioned i locked down a router when installing it on the network which included using "no service dhcp", then at a later date i needed to use the helper-address for clients on one of the interfaces.
It didn't work and i scratched my head for quite a while, i did some debugging, and evetually consulted the cisco documentation which led me to re-enabling "service dhcp" and then my clients could use DHCP.
"service dhcp
To enable the Cisco IOS Dynamic Host Configuration Protocol (DHCP) server and relay agent features on your router, use the service dhcp global configuration command. To disable the Cisco IOS DHCP server and relay agent features, use the no form of this command.
service dhcp
no service dhcp"
I can't speak for the rest of the protocols used by the helper address, only DHCP
Many thanks
Paddy
04-18-2015 11:00 PM
Dear Paddy,
I Strongly agree with you. You explanations help me a lot today and it works.
Thanks.
Mohammed Hussan
09-04-2018 01:53 PM - edited 09-04-2018 02:00 PM
On field while deploying ISR 4451 I did fibd that "no service dhcp" disable dhcp service eventhough "ip helper address configured on LAN int/sub-int. I replaced old router with new ISR 4451 and config inc above command, everything tested well for user machine which was already connected but after restarting user laptop it wasn't received IP from DHCP. So after enabling service dhcp problem solved
06-10-2014 05:57 AM
Hi,
Taken from:
Step 2 | service dhcp | Enable the DHCP server and relay agent on your switch. By default, this feature is enabled. |
So the command seems to affect all DHCP Services.
Thanks,
Daniel
09-25-2020 01:39 PM
I just learnt the hard way that on switching platforms 'no service dhcp' will disable relay services in addition to disabling any internal dhcp server function. This appears to be the case on IOS, IOS-XE and NX-OS (which at the time of writing has no dhcp server).
06-12-2023 09:32 AM
i know that feeling, i encountered that if you issue the 'no service dhcp' command, you will have problems with ip helper-address .... IOS-XE [Amsterdam], Version 17.3.6
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