How do I disable DHCP now I am using static address?
I have been running DHCP on a Suse 9.2 box behind our router at work. I set the router to give a limited DHCP range of IP addresses, mainly for visiting laptops etc. Everything was running fine. As our network is fixed IP for all Windoze PC's and I wanted to try using the Suse PC as a server I decided to reset it to a spare static IP.
I did this through Yast, only to find that my internet connection had now disappeared. The network browsing was OK and I could still see my router configuration. I watched the detail screen during the bootup, and saw that I had two IP addresses, the new static address, 192.168.0.100, and the old 192.168.0.150 DHCP address. Spent ages looking through the postings and with quite a lot of manual tweaking of the config files, got the internet back. So here I am talking to you. When I try to use Samba, I find I get error messages about the Host 192.168.0.150 - but where did that come from? So I ran a search for the text string "192.168.0.150" in all files, and apart from the log files where it appears often, I found this in "dhcpcd-eth0.info": IPADDR=192.168.0.150 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 GATEWAY=192.168.0.1 DNS=192.168.0.1 DHCPSID=192.168.0.1 DHCPGIADDR=0.0.0.0 DHCPSIADDR=192.168.0.1 DHCPCHADDR=00:40:95:30:D8:56 DHCPSHADDR=00:04:ED:1E:0A:C5 DHCPSNAME='' LEASETIME=86400 RENEWALTIME=43200 REBINDTIME=75600 INTERFACE='eth0' CLASSID='Linux 2.6.8-24.16-default i686' CLIENTID=00:40:95:30:D8:56 Does this mean that allthough I have setup a static address that this file is also being used? Can I erase the contents of this file, or at least rem them out? Or is there a way of turning off the use of this file? And finally, why didn't Yast do this all for me? I realise that it was probably something stupid that I have done, but I would like to move on with my Linux experience without having to re-install as often as I have done with Windoze. Thanks, Ross |
Try
Code:
chkconfig dhcpd off |
Thanks, I'll give it a try. Will have to be on Monday, I'm at home now and this box is running DHCP.
BTW, where is a good place to find all of the CLI commands and their explanations? |
There is no definitive list of command line commands as far as I'm aware, but you can get a fairly good idea by looking in /usr/bin, /usr/local/bin, /usr/sbin, /sbin, etc on your machine. Bascically anywhere in the $PATH variable.
As for explanations, check out the man pages... Code:
man <command name> |
Thanks, your suggestion has fixed the DHCP problem and I will try your other suggestions for the command line instructions.
|
All times are GMT -5. The time now is 06:14 PM. |