View previous topic :: View next topic |
Author |
Message |
igor92128 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Sun Apr 16, 2006 12:33 am Post subject: Can't access the network from LiveCD |
|
|
Hello,
I just booted my box from LiveCD and it detected eth0, eth1 and lo just fine during bootup. Here is my ifconfig output:
Code: |
ifconfig
eth0 Link encap:Ethernet HWaddr 01:A8:54:**:**:**
inet addr:26.161.***.*** Bcast:255.255.255.255 Mask:255.255.248.0
inet6 addr: fe80::***:****:****:36a3/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2841 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:187196 (182.8 Kb) TX bytes:12323 (12.0 Kb)
Interrupt:12 Base address:0xc000
eth1 Link encap:Ethernet HWaddr 00:50:B4:**:**:**
inet addr:10.0.0.8 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::***:****:****:ba42/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8980 (8.7 Kb) TX bytes:3392 (3.3 Kb)
Interrupt:10 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
|
When I test my network by pinging a host, here is the result:
Also, I can start SSH and successfully ssh into my box by typing either the IP or domain name. I've also tried net-setup, dhcpcd and modprobe but these are all pointless anyways because my network is supposed to be working just fine according to the settings above.
I was installing Gentoo and I noticed that my problems started right after I emerged dhcpcd so I unmerged it, but the problems still occur.
Maybe this has something to do enabling IPv6 support? I don't know.
Any ideas?
Thanks,
Igor |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JRV Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jan 2004 Posts: 291
|
Posted: Sun Apr 16, 2006 1:53 am Post subject: Re: Can't access the network from LiveCD |
|
|
Perhaps only name resolution is broken? Check your /etc/resolv.conf. Also, try pinging just an IP (this IP should respond):
Code: | $ ping 194.25.2.129 |
You mentioned that the problems started when you first used dhcpcd. DHCP clients usually overwrite your /etc/resolv.conf with some value provided by the DHCP response, so that might be the problem. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
igor92128 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Sun Apr 16, 2006 2:28 am Post subject: |
|
|
Yes, only name resolution is broken. Here are the contents of my resolv.conf:
Code: |
# Generated by dhcpcd for interface eth1
domain san.rr.com
nameserver 66.**.***.***
nameserver 66.**.***.***
nameserver 66.**.***.***
|
It should be working for eth0 though, not eth1 since eth0 is my external NIC.
So what's the problem here?
Igor |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JRV Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jan 2004 Posts: 291
|
Posted: Sun Apr 16, 2006 2:30 am Post subject: |
|
|
/etc/resolv.conf is used across all network interfaces.
Try putting a working nameserver in there. So pinging an IP works? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
igor92128 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Sun Apr 16, 2006 3:09 am Post subject: |
|
|
No, it does not work. Here is what happens when I ping Google:
Code: |
livecd gentoo # ping 66.102.7.99
PING 66.102.7.99 (66.102.7.99) 56(84) bytes of data.
--- 66.102.7.99 ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3013ms
|
There are 3 files that are related to name resolution:
Code: |
livecd etc # ls /etc/resolv* -ls
4 -rw-r--r-- 1 root root 131 Apr 15 16:42 /etc/resolv.conf
4 -rw-r--r-- 1 root root 131 Apr 15 16:41 /etc/resolv.conf-eth0.sv
4 -rw-r--r-- 1 root root 107 Apr 15 16:42 /etc/resolv.conf-eth1.sv
|
And they all contain the same information (as above). I can ping the nameservers from my other computer, but not from this one. Isn't this strange? Everything seems to be OK. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
igor92128 Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 27 Jun 2004 Posts: 156 Location: California
|
Posted: Tue Apr 18, 2006 5:44 pm Post subject: |
|
|
I am still having this problem and I notice that it goes on and off. For example, I'd be emerging new builds and it would work for the first few, and then suddenly portage would get stuck when trying to resolve the address. Then I'd give up and try again in a few hours and everything would work again and then stop working after a while. I'm thinking this might be hardware related, but I can ping localhost successfully. My DNS servers are supposed to be very reliable so I don't think that they are the problem. Any other ideas?
Thanks,
Igor |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
JRV Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 10 Jan 2004 Posts: 291
|
Posted: Tue Apr 18, 2006 8:34 pm Post subject: |
|
|
igor92128 wrote: | I'm thinking this might be hardware related, but I can ping localhost successfully. |
Pinging localhost doesn't even touch your hardware, so it doesn't tell you that your hardware is working.
Otherwise, no real idea... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|