Red Hat This forum is for the discussion of Red Hat Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
05-25-2004, 03:38 PM
|
#1
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Rep:
|
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
|
|
|
05-25-2004, 05:22 PM
|
#2
|
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:
|
Have you tried setting it up using ifconfig?
|
|
|
05-25-2004, 05:36 PM
|
#3
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
05-25-2004, 05:40 PM
|
#4
|
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:
|
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.
|
|
|
05-26-2004, 01:25 AM
|
#5
|
Member
Registered: Feb 2004
Posts: 66
Rep:
|
you can run "vi /etc/modules",see if your module can be automatically load when you reboot machine.example as alias eth0 ****
|
|
|
05-26-2004, 10:27 AM
|
#6
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
05-26-2004, 07:34 PM
|
#7
|
Member
Registered: Mar 2004
Location: Canberra Area, Australia
Distribution: Kubuntu
Posts: 242
Rep:
|
The ~ is a temp file. Probably from one of your edits or you may have the file still open.
|
|
|
05-26-2004, 07:39 PM
|
#8
|
Member
Registered: Feb 2004
Posts: 66
Rep:
|
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/
|
|
|
05-27-2004, 07:54 AM
|
#9
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Original Poster
Rep:
|
tulip.o exists...what next?
|
|
|
05-27-2004, 07:58 PM
|
#10
|
Member
Registered: Feb 2004
Posts: 66
Rep:
|
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.
|
|
|
05-27-2004, 08:45 PM
|
#11
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Original Poster
Rep:
|
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...
|
|
|
05-27-2004, 09:13 PM
|
#12
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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
|
|
|
05-27-2004, 09:27 PM
|
#13
|
Member
Registered: Feb 2004
Posts: 66
Rep:
|
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?
|
|
|
05-28-2004, 07:36 AM
|
#14
|
LQ Newbie
Registered: May 2004
Distribution: Red Hat 9
Posts: 6
Original Poster
Rep:
|
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.
|
|
|
03-11-2024, 02:17 PM
|
#15
|
LQ Newbie
Registered: Mar 2024
Posts: 1
Rep:
|
Network Settings
I am using Red Hat 8 and could fix this issue enabling the option "Connect Automatically" in Network Settings / Wired setting.
|
|
|
All times are GMT -5. The time now is 11:38 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|