LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 05-25-2004, 03:38 PM   #1
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
Question Network settings lost on reboot


I have Red Hat 9 running on an old Gateway PIII. I have tried using netconfig to set the IP address on the eth0 interface. The setting takes effect immediately, but if I reboot the box, or restart the networking services, the interface loses the IP address.

I have checked the /etc/sysconfig/network-scripts/ifcfg-eth0 file, and it has the appropriate settings:

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.x.x
NETMASK=255.255.255.0
GATEWAY=192.168.x.x

I have also tried using the redhat-config-network-tui command to set the static IP address, but no luck.

I have read various posts about checking different files, but I need one solid answer.

Any help would be much appreciated, as I am a Linux newbie.

TIA,
Freevian
 
Old 05-25-2004, 05:22 PM   #2
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Have you tried setting it up using ifconfig?
 
Old 05-25-2004, 05:36 PM   #3
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Sure have. That's the only way that I can get network connectivity. However, upon reboot, the IP address gets lost.

I can manually add ifconfig commands to the startup script, but that seems like a total hack to me.
 
Old 05-25-2004, 05:40 PM   #4
TheOther1
Member
 
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
I seem to remember having a similar problem with redhat 7.something and if I did ifconfig -add eth0 ...., then ran redhat-config-network it for some reason decided to keep the settings. Sorry, I don't have a RH9 box to test with.
 
Old 05-26-2004, 01:25 AM   #5
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
you can run "vi /etc/modules",see if your module can be automatically load when you reboot machine.example as alias eth0 ****
 
Old 05-26-2004, 10:27 AM   #6
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Per aeolus's suggestion, I checked the /etc/modules.conf file. Here are the results:

alias eth0 tulip
alias sound-slot-0 es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci

So, it appears to me that the device loads.

I did notice that there was another /etc/modules.conf file, but the second one has a tilda (~) at the end of the file extension. Normal?

I am also going to try TheOther1's advice regarding the -add switch to see if that has any effect.
 
Old 05-26-2004, 07:34 PM   #7
sausagejohnson
Member
 
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242

Rep: Reputation: 30
The ~ is a temp file. Probably from one of your edits or you may have the file still open.
 
Old 05-26-2004, 07:39 PM   #8
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
I ever encountered the phenomenon,but because I have two net cards so I modify modules.conf.My modules.conf and modules.conf~ is described as follow:
modules.conf:
alias eth0 8139too
alias eth1 tulip
alias sound-slot-0 es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci

modules.conf~:
alias eth0 tulip
alias eth1 8139too
alias sound-slot-0 es1371
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci

you can see if your tulip.o exist /lib/modules/2.4.20-8/kernel/driver/net/tulip/
 
Old 05-27-2004, 07:54 AM   #9
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
tulip.o exists...what next?
 
Old 05-27-2004, 07:58 PM   #10
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
Check your /etc/init.d dir ,see if there is "network" script file.Because this script file can start up network service during system booting.If your loss IP when the box is booting,run "ntsysv",then select network, at last reboot machine and try again.
 
Old 05-27-2004, 08:45 PM   #11
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
there is a network script file in that directory. i also checked the system configuration and in run level 0, the network is selected to start.

still puzzled...
 
Old 05-27-2004, 09:13 PM   #12
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Quote:
i also checked the system configuration and in run level 0, the network is selected to start.

Runlevel 0 is halt (shutdown). Usually, all services should be set to Off.
I don't think this is the source of the problem, but let's take it out of the equation. Set it to off.

At the command line, login as root (su -) and type:
Code:
chkconfig --level 0 network off
 
Old 05-27-2004, 09:27 PM   #13
aeolus
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
Your system configuration is in run level 0.why?You can check /etc/inittab file,you are you sure that your run level is 0?
 
Old 05-28-2004, 07:36 AM   #14
freevian
LQ Newbie
 
Registered: May 2004
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
sorry...blame the newbie...when i was reading through the man pages for chkconfig i noticed that you could check the services at different run levels...so, i thought i was going to start checking services at level 0, 1, etc...

my system is not currently at 0...and networking is on...i am checking this all remotely ssh'd into the box, so networking is definitely on and working.

didn't mean to throw us back a few steps.


Last edited by freevian; 05-28-2004 at 07:37 AM.
 
Old 03-11-2024, 02:17 PM   #15
JCD64
LQ Newbie
 
Registered: Mar 2024
Posts: 1

Rep: Reputation: 0
Network Settings

I am using Red Hat 8 and could fix this issue enabling the option "Connect Automatically" in Network Settings / Wired setting.
 
  


Reply



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
network settings lost davidsrsb Slackware 4 07-28-2005 08:32 PM
Lost mouse after reboot+lost modem BACTRATE Mandriva 3 04-07-2005 06:45 AM
Lost settings for wlan0 after reboot Dark Nova Linux - Wireless Networking 1 03-18-2005 02:20 PM
Reboot in FC3 loses network settings, logout doesn't L8stGr8st Fedora 2 01-05-2005 03:56 PM
IP and network conn. lost on reboot... edtbjon Linux - Networking 2 09-11-2001 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 08:31 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