LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-11-2005, 12:44 AM   #1
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Rep: Reputation: 30
Network Changes from Static to DHCP


After a system crash happened, my connection changes from a Static IP to one obtained DHCP. I have the DHCP server set for anything above 1.105 and 1.100 - 1.104 are set up statically with a couple machines in the house. Now about once a day my connection will drop and then it will pick back up with 1.105 as my IP. According to Network-Setup it's still set as Static and within ifcfg-eth0 it has the IP set and isn't configured for DHCP. It isn't too big of a deal unless I'm downloading something large but it would be nice to fix.

Thanks

Brandon Bell
 
Old 06-11-2005, 06:01 PM   #2
peaceofcrap2001
LQ Newbie
 
Registered: Jun 2004
Posts: 11

Rep: Reputation: 0
I don't quite understand your question. Do you want your machine to be static or dynamic?

Peaceofcrap2001
 
Old 06-11-2005, 06:09 PM   #3
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 58
try this
Code:
#cd /etc/sysconfig/network-scripts
ls
You should have ifcfg-eth0 and ifcfg-eth1 if you have 2 cards;
What do they say something like;
Code:
           DEVICE=eth0
           IPADDR=208.164.186.1
           NETMASK=255.255.255.0
           NETWORK=208.164.186.0
           BROADCAST=208.164.186.255
           ONBOOT=yes
           BOOTPROTO=none
           USERCTL=no
or for dhcp
BOOTPROTO=dhcp
 
Old 06-12-2005, 12:33 AM   #4
RemusX2
Member
 
Registered: Oct 2003
Location: Bozeman, Montana
Distribution: Gentoo 2010, Ubuntu 9.04
Posts: 175

Original Poster
Rep: Reputation: 30
I would like the machine to be Static, which it was before a system crash.

IPV6INIT=no
ONBOOT=yes
USERCTL=no
PEERDNS=yes
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0e:a6:2b:75:05
BOOTPROTO=none
NETMASK=255.255.255.0
IPADDR=192.168.1.100
GATEWAY=192.168.1.1

Is what the ifcfg-eth0 states. But, mysteriously about every 12 hours my connection will drop and be picked up with the 192.168.1.105 address which I have set up in the router to be the starting range for DHCP; making 192.168.1.100 - 192.168.1.104 reserved for Static IPs. Sorry for the confusing post last night... I was kind of in a hurry.
 
Old 06-14-2005, 08:16 PM   #5
eflester
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 83

Rep: Reputation: 17
I have a similar problem. The ifcfg-eth0 script doesn't seem to be the source of it, as I have it set for BOOTPROTO=none. The elusive dhclient is, however, running, and I am having a hard time trying to find out where/how to turn it off. I did do this, though:

ps ax | grep dhclient

which yielded 2 pids for /sbin/dhclient. So I issued a kill for each of these pids and now it's off.

But what, oh what, makes it turn on? Or off?

This is on an experimental server, not terribly important, but a mystery indeed. It's a headless box so I only communicate with it via ssh or Webmin.

If you or anyone else can shed some light on this, I'd be grateful. I have set it to its static IP several times, only to come back the next day to see it back to a DHCP-assigned address.
 
Old 06-15-2005, 02:15 PM   #6
eflester
Member
 
Registered: Sep 2003
Location: Washington
Distribution: Mint, Ubuntu, Ubuntu studio
Posts: 83

Rep: Reputation: 17
An update: it's now the next day. Since I "killed" the dhclient processes as noted above, the address has stayed at the static value that I assigned it.
But I'd still like to know, where is the on-off button(s) for this daemon??? In FC3, that is.
 
  


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
Zoom modem/switch & linux<->linux network: DHCP / Static ? tredegar Linux - Networking 8 11-11-2007 04:41 AM
Is there any static ARP for static IP network? linux_lover2005 Linux - Networking 2 05-18-2005 01:01 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 12:13 PM
Converting DHCP to static local network? Can I mix? renzopeco Linux - Networking 10 12-21-2003 12:30 AM
DHCP or Static Culbert Linux - Networking 1 03-14-2003 08:42 PM

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

All times are GMT -5. The time now is 09:07 PM.

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