No internet connection upon startup
When I boot up my machine (running CentOS 5.5), I have no internet connection.
ifconig doesn't show that eth0 is present. Going into my Network Gui from the administration tools, it says that eth0 is not active. I can't activate it from the GUI. But... If I sudo dhclient -d eth0, the process runs for a little bit, and all of the sudden my internet connection is there. There must be some sort setting that I need to change to avoid doing this everytime I start the machine. Its odd, because I have an identical machine right next to it that doesn't have this problem. Any advice? Any more info required? |
System / Administration / Network
Double click on eth0 (or whatever your NIC is) Make sure 'Activate device when computer starts' is checked 'Automatically obtain IP address settings with:' is selected, and 'dhcp' is in the pulldown, ie not bootp or anything else. There isn't really anything else to it.. |
Hmm. All of those things check out, and it's still not working.
|
eth0
Try this:
sudo ifup eth0 reboot If it does not take then add the command in /etc/rc.local or similar file hth |
Hi,
From a terminal do 'ifconfig -a'. What does it show? :hattip: |
You said ifconfig doesn't show eth0;
Please tell us what's the output of : Code:
sudo mii-tool Code:
sudo ifconfig eth0 Disable iptables and selinux Also let us know if your network has DHCP |
just how are you connecting ?
a cable hook up through the ether port ? or the usb ( if usb there is a bug someplace ) i am tiring to figure that one out [ cable to usb ] usb wireless eth to a wireless hub ? what |
Quote:
|
does
/etc/sysconfig/network-scripts/ifcfg0 the option onboot is it set to yes like this onboot=yes if so then check your boot log in /var/log/ |
I am using a cable through an ethernet port.
The output of ifconfig -a is: Code:
eth0 Link encap:Ethernet HWaddr 00:13:72:14:01:E9 ifup eth0 gives this output: Code:
Determining IP information for eth0... failed; no link present. Check cable? mii-tool gives me: Code:
SIOCGMIIPHY on 'eth0' failed: Resource temporarily unavailable /var/log/boot.log has a couple entries similar to this: Code:
Sep 22 17:04:31 localhost NET[3539]: /sbin/dhclient-script : updated /etc/resolv.conf |
One thing I noticed, is that once I have the internet working, running ifconfig eth0 gives me this:
Code:
eth0 Link encap:Ethernet HWaddr 00:13:72:14:01:E9 Code:
generated by /sbin/dhclient-script Do you see any problem with my IP being 141.218.146.170 and the name server being 141.218.140.6? |
Sorry for the supper late reply but the nameserver ip is just for dns resolution so you can type linuxquestions.org into your browser or whatever webaddress you may use. you ip ending in 170 is your personal ip. Just wanted to confirm that for you.
|
All times are GMT -5. The time now is 01:17 AM. |