SuSE 8.0 - dhcpd requesting IP - HOW to disable
Hi All, I have a notebook that is running SuSE 8.0 I use the notebook on different networks (Work, home, clients, etc) The whole idea (for me) for using a dynamic IP configuration when you have a portable computer, is so that you can just plug it into any network with a DHCP server and your computer wil then use the IP address given to it. Now SuSE 8.0 does not seem do do this every time. When I get onto another network, the dhcpd service asks for a the IP address that it had on the previous network. Most DHCP servers respond with a NACK (I don't use that IP range, so go and play on the Highway with your requested address) I RTFM'ed and I discovered that dhcpd normally DOES NOT request it's old IP. If you want that, you have to give it an option. (-s). I cannot find any place where you can enable/disable this behaviour. It seems to be hardcoded somewhere. Can anyone PLEASE tell me how to disable this? Thanks -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
On Friday 21 June 2002 20.56, Andre Truter wrote:
I cannot find any place where you can enable/disable this behaviour. It seems to be hardcoded somewhere.
Can anyone PLEASE tell me how to disable this?
I'm running default dhcpcd in SuSE 8.0 and there's no -s option given by the startup scripts. All options are set in /sbin/ifup-dhcp, and controlled by options in /etc/sysconfig/network/dhcp. I suggest you set DHCLIENT_DEBUG to yes. That will let you see every dhcp transaction sent and received (it will be logged in /var/log/messages). If all else fails you can always remove the cache file manually from /var/lib/dhcpcd/ (or run dhcpcd -k from the command line. That will also clear the cache and force the client daemon to request a brand new ip) regards Anders -- `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.'
On Fri, 2002-06-21 at 21:10, Anders Johansson wrote:
I'm running default dhcpcd in SuSE 8.0 and there's no -s option given by the startup scripts. All options are set in /sbin/ifup-dhcp, and controlled by options in /etc/sysconfig/network/dhcp. I suggest you set DHCLIENT_DEBUG to yes. That will let you see every dhcp transaction sent and received (it will be logged in /var/log/messages).
Done that and the log file reports that dhcpcd requests a specific IP address. What is puzzling me, is that if dhcpcd is not run with the -s option, why dos it ask for a specific IP?
If all else fails you can always remove the cache file manually from /var/lib/dhcpcd/ (or run dhcpcd -k from the command line. That will also clear the cache and force the client daemon to request a brand new ip)
I removed the cache file and it complained about DHCP client already running. dhcpcd -k reports that dhcpcd is not running. I have tried all these things before. Sometimes it works, sometimes it does not. This is very funny .... I am gonna try to reboot with the cache file removed. Maybe it will help... Thanks
regards Anders -- `When I use a word,' Humpty Dumpty said in rather a scornful tone, `it means just what I choose it to mean -- neither more nor less.'
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
On Fri, 2002-06-21 at 22:29, Andre Truter wrote:
On Fri, 2002-06-21 at 21:10, Anders Johansson wrote:
I'm running default dhcpcd in SuSE 8.0 and there's no -s option given by the startup scripts. All options are set in /sbin/ifup-dhcp, and controlled by options in /etc/sysconfig/network/dhcp. I suggest you set DHCLIENT_DEBUG to yes. That will let you see every dhcp transaction sent and received (it will be logged in /var/log/messages).
Done that and the log file reports that dhcpcd requests a specific IP address.
What is puzzling me, is that if dhcpcd is not run with the -s option, why dos it ask for a specific IP?
If all else fails you can always remove the cache file manually from /var/lib/dhcpcd/ (or run dhcpcd -k from the command line. That will also clear the cache and force the client daemon to request a brand new ip)
I removed the cache file and it complained about DHCP client already running.
dhcpcd -k reports that dhcpcd is not running.
I have tried all these things before.
Sometimes it works, sometimes it does not. This is very funny ....
I am gonna try to reboot with the cache file removed. Maybe it will help...
I did the reboot. dhcpcd does a BROADCAST request. The DHCP server supply the IP that it always supply for this machine on this network, but dhcpcd apparently does not see it. It just times out. (I have my timeout parameter set to 99999 in the configuration) Has anyone trued the alternative dhcp client ( ISC dhclient) ? -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
On Fri, 2002-06-21 at 22:41, Andre Truter wrote:
Has anyone trued the alternative dhcp client ( ISC dhclient) ?
I installed ISC dhclient and changed the dhcp config file to use that, and violla!! All my problems solved..:-) (Hopefully it will stay solved for now) Thanks -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
My notebook is also SuSE 8.0. I did find that on 8.0, that the network sometimes didn't come up right away as it did on 7.3. I played with the timeout parameter (set to 999999). You can change this via YaST2. On 21 Jun 2002 at 20:56, Andre Truter wrote:
Hi All,
I have a notebook that is running SuSE 8.0
I use the notebook on different networks (Work, home, clients, etc)
The whole idea (for me) for using a dynamic IP configuration when you have a portable computer, is so that you can just plug it into any network with a DHCP server and your computer wil then use the IP address given to it.
Now SuSE 8.0 does not seem do do this every time. When I get onto another network, the dhcpd service asks for a the IP address that it had on the previous network. Most DHCP servers respond with a NACK (I don't use that IP range, so go and play on the Highway with your requested address)
I RTFM'ed and I discovered that dhcpd normally DOES NOT request it's old IP. If you want that, you have to give it an option. (-s).
I cannot find any place where you can enable/disable this behaviour. It seems to be hardcoded somewhere.
Can anyone PLEASE tell me how to disable this?
Thanks --
Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net
<-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com
-- Jerry Feldman Enterprise Systems Group Hewlett-Packard Company 200 Forest Street MRO1-3/F1 Marlboro, Ma. 01752 508-467-4315 http://www.testdrive.compaq.com/linux/
On Fri, 2002-06-21 at 21:14, Jerry Feldman wrote:
My notebook is also SuSE 8.0. I did find that on 8.0, that the network sometimes didn't come up right away as it did on 7.3. I played with the timeout parameter (set to 999999). You can change this via YaST2.
I do have that setting. I made that change some time ago, and it seems to have worked, but tonight the machine is being particularly stubborn. It seems to be jinxed. Now it wont shutdown also. I have to remove teh battery and power. It worked perfectly fine today at work and I did not make any changes to the system.... funny... -- Andre Truter Software Engineer Registered Linux user #185282 ICQ #40935899 AIM: trusoftzaf http://www.trusoft.za.net <-------------------------------------------------> < The box said: Requires Windows 95 or better... > < So I installed Linux > <------------------------------------------------->
I think there are two solutions to this: - one is to remove whatever is in /var/lib/dhcpcd/ and try again. - te other is to look at the timeout settings in /etc/sysconfig/network/dhcp Good luck. On 21 Jun 2002, Andre Truter wrote:
Hi All,
I have a notebook that is running SuSE 8.0
I use the notebook on different networks (Work, home, clients, etc)
The whole idea (for me) for using a dynamic IP configuration when you have a portable computer, is so that you can just plug it into any network with a DHCP server and your computer wil then use the IP address given to it.
Now SuSE 8.0 does not seem do do this every time. When I get onto another network, the dhcpd service asks for a the IP address that it had on the previous network. Most DHCP servers respond with a NACK (I don't use that IP range, so go and play on the Highway with your requested address)
I RTFM'ed and I discovered that dhcpd normally DOES NOT request it's old IP. If you want that, you have to give it an option. (-s).
I cannot find any place where you can enable/disable this behaviour. It seems to be hardcoded somewhere.
Can anyone PLEASE tell me how to disable this?
Thanks
-- ------------------- Roger Whittaker SuSE Linux Ltd The Kinetic Centre Theobald Street Borehamwood Herts WD6 4PJ ------------------ 020 8387 1482 ------------------ roger@suse.co.uk ------------------
participants (4)
-
Anders Johansson
-
Andre Truter
-
Jerry Feldman
-
Roger Whittaker