Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
When booting my machine, my nic for eth0 loads very slow. It eventually comes up (after 3 minutes) but it's a little annoying. If I remove the eth0 configuration from the network control panel in XWindows RedHat 6.2, and then add it using 'netconfig' from the prompt, it loads in a couple of seconds just like the other services. After a couple of reboots, it's back to being slow again. I have no idea as to why.
Couple of things that might (or might not) be helpful...
When I do the above, I have to manually change the nameservers back to what I need them to be to access the internet. If I change it using a text editor on the file 'resolv.conf', the above happens. A couple of boots and it will be slow again. If I do it in the network control panel of XWindows, it will be slow right away...
I used to have two nic's in my Linux box but I removed the second one to try and configure the first. Lilo does not try to bring up eth1 but for some reason, no matter how many times I remove the eth1 config in the GUI network control panel, eth1 remains. Does this matter?
One time I ran netconfig when the second nic card was not present and it sat at "Determining hostname and configuration" (I think...) for about the same time as it takes the eth0 to come up when Lilo boots. It did not do this when the card was present. Does this help?
The card is having no problems at all and is working perfectly for everything that I need it to do. I am just trying to learn how to tweak my linux box and it seems like a 486 66mhz with Windows and 8mbs of RAM on it every time I reboot. ;-)
While I am on a roll, one more question about the ethernet card settings. What is the file that you can modify to change the settings for eth0, eth1, etc... directly so I don't have to use the Xwindows network control panel?
Thanx for your help making this newbie a little bit better at using Linux!
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,588
Rep:
amiller,
Let me start this off by saying that I am glad to see that you are interested in learning how things work and not just relying on the GUI config tools.
Go into /etc/sysconfig/network-scripts and remove all references to eth1 (should be a file called ifcfg-eth1). Then open up ifcfg-eth0 and make sure all settings are correct. Finally open /etc/conf.modules and see if there is an alias setup for eth1 - If there is remove it.
Guess what???? It did it again... Three mins to bring up eth0 and now another three mins to bring up eth1!!!
I know what is causing this because I added a second eth card and the 'resolv.conf' file was reset by the 'netconfig' program. DNS addresses of an ISP cause the problem. Without them, it started working again.
The file lists the ip address of the eth0 (192.168.0.1) in the 'resolv.conf' file and both cards come up right away like I want them to. The problem is that now I cannot browse the internet (or ping for some reason???) without having to add the nameservers and removing them every time I connect and disconnect.
If I list my ISP's DNS addresses in 'resolv.conf' the cards load slower again but I can browse the internet (and ping places???).
(I thought the nameservers were only used for domain names and not ip addresses??????)
I can't figure out how to stop this!!! Is there a way I can work around this? Maybe fix it?
I would think there was a way to change the 'resolv.conf' file by adding a line to the connect script for ppp0 but I don't know how to do it and would like to try another way before looking into this. Or is this not possible???
I have the 'resolv.conf' file in there with all the correct DNS addresses but I get a response saying "host not reachable." The original 'resolv.conf' in the etc directory only lists the ip address of the loopback device (127.0.0.1). Is it still using the original conf file? How do I make the ppp0 connection use the conf file in the ppp directory so my 2 nics operate normally?
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,588
Rep:
amiller,
OK. Try this. (I have not used pppd in a long time, so bear with me). If these settings do not work please post the files in question. Note: I have not listed every line that should be in the files, just the relevant ones.
Put your nameservers in /etc/resolv.conf. I have a feeling you may not have your ip/hostname in /etc/host (or bind is before hosts in /etc/host.conf) so the machine is hanging trying to lookup it's name from a server it cannot reach.
I checked the info you told me to and everything looks ok. I found another thing to try and so far it is working! ;-)
So far...
I was messing around in Linuxconf because I could not think of anything else to try and found a section on DNS. In there is an option that says something to the effect of "DNS is required for normal operation." I unchecked that and BINGO! Normal bootup even with the isp's DNS addresses in the resolv.conf file.
If anyone knows what file was modified by that little change I made, or if anyone has found a decent place to explain what Linuxconf actually does and what it modifies, please email me!
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,588
Rep:
hmm
The only change it appears to make is in a file called /etc/conf.linuxconf (which obviously is linuxconf specific). The weird part is that it updates the time stamp (put does not alter) /etc/resolv.conf (I tried checking/unchecking the box with local and non-local name servers). This is why I don't ever use linuxconf. Atleast it fixed the problem.
BTW the line that was changed was
[netclient]
DNSCONF.dnsneeded 0
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.