LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-29-2005, 05:55 AM   #1
rosco136
Member
 
Registered: Apr 2005
Location: England
Distribution: openSUSE 11.0, 11.1
Posts: 49

Rep: Reputation: 15
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:308: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:308: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
 
Old 07-29-2005, 07:05 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Try

Code:
chkconfig dhcpd off
You will need to be root to do this.
 
Old 07-29-2005, 01:56 PM   #3
rosco136
Member
 
Registered: Apr 2005
Location: England
Distribution: openSUSE 11.0, 11.1
Posts: 49

Original Poster
Rep: Reputation: 15
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?
 
Old 07-29-2005, 04:28 PM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
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>
Replace <command name> with whatever you want to get info on. It'll give you a load of info on the command. Some are more detailed than others but they're usually a good place to start.

Last edited by cdhgee; 07-29-2005 at 04:30 PM.
 
Old 08-01-2005, 02:53 AM   #5
rosco136
Member
 
Registered: Apr 2005
Location: England
Distribution: openSUSE 11.0, 11.1
Posts: 49

Original Poster
Rep: Reputation: 15
Thanks, your suggestion has fixed the DHCP problem and I will try your other suggestions for the command line instructions.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Static IP Address with DHCP server control taylortbb Linux - Networking 1 06-28-2005 01:43 PM
I want static IP, but have to use DHCP (preffered/desired address) homa2001 Linux - Networking 13 02-10-2005 01:47 AM
Eth0 set up for Static, obtaining DHCP address?! IndustrialGeek Linux - Networking 2 01-03-2005 12:39 AM
computer switches from static to dhcp address (automagically?) cyberpuerka Linux - Networking 1 09-03-2004 11:29 AM
Static address works but DHCP doesn't... devahl Linux - Networking 1 05-03-2004 04:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration