PDA

View Full Version : System on HD always reset net card ot use dhcp



cronex2000
05-28-2004, 01:34 AM
I have this very annoying problem. When I restart, it always reset my net card config to use dhcp, even though I set to a static IP address. All the config data (ip, gw, dns, etc) are there, but every reboot will just reset the net card config back to dhcp.

That's darn annoying. Anywhere I can tell it to not even consider dhcp at all?

tia.

mzilikazi
05-28-2004, 03:57 AM
This has officially become an epidemic. :) I have seen many posts exactly like this. Here's the drill:

Is your ethernet driver loaded?

lsmod

Do you have an i.p.?

ifconfig

If you're like the rest you will not have one.
What does this do:

pump

What about this:

/etc/init.d/networking restart

Durand Hicks
05-28-2004, 04:16 AM
IIRC, I had to edit two files for my wireless card to be configured with a static ip at startup; /etc/network/interfaces -- change the line: iface eth1 inet dhcp to iface eth1 inet static. In most cases from what I was told, this should do it. But for wireless pcmcia cards, it doesn't. So I had to edit /etc/pcmcia/network.opts and put in my desired ip address, subnet mask, broadcast address, & gateway and saved the file. Reboot and it stuck since then.

HTH,

Durand

cronex2000
05-28-2004, 11:38 AM
I already had my /etc/network/interfaces set correctly, and here's the contents:


auto lo eth0
iface lo inet loopback

iface eth0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.200

And the file /etc/sysconfig/network-scripts/ifcfg-eth0 has roughly the same information.

After every reboot, it returns to dhcp mode. I use netcardconfig to configure it back, and all I have to do was to choose static IP and enter, enter, enter, ... to finish, as all the information is already filled in.

It definitely is annoying to have to su root and run netcardconfig everytime.[/quote]

pulsar
05-29-2004, 09:04 AM
http://www.knoppix.net/forum/viewtopic.php?p=47537&highlight=#47537