View previous topic :: View next topic |
Author |
Message |
dilutedq n00b
Joined: 12 Feb 2005 Posts: 27
|
Posted: Thu Jul 28, 2005 7:19 am Post subject: Network suddenly just stopped working |
|
|
So I just installed for the first time (yeah I guess i'm a noob) gentoo. I finally got everything up and going I leave it on over night and let it download and compile xorg-x11. By morning it's complete no errors, but now I go to try and emerge anything else I get errors saying it can't resolve the host's and what not. I then try and ping yahoo.com gentoo.org etc etc and it can't resolve anything. So I'm assuming something is not right? Though it was just a bit ago as it was able to download and compile xorg-x11. I get no errors on boot up, says it activates eth0 just fine, have dhcp emerged... I'm not quite sure where to look to fix the problem. I thought about going through the livecd again and copying over the resolv.conf again or whatever but I don't even know exactly how to do a repair that way. Sorry for such a broad problem, I wasn't sure where to look here for a sollution so if anyone can point me in the right direction I'd be very appreciative thanks. |
|
Back to top |
|
|
r4d1x Apprentice
Joined: 25 Nov 2003 Posts: 157 Location: Japan
|
Posted: Thu Jul 28, 2005 7:27 am Post subject: |
|
|
check to make sure that your DNS servers are correctly specified in . Also try to ping an address (IP type) outside of the local net to make sure that your internet connection is good. DHCP will sometimes overwrite your resolv.conf, check to make sure that that is not happening. If it is, add this to your and you should be set. _________________ Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP |
|
Back to top |
|
|
r4d1x Apprentice
Joined: 25 Nov 2003 Posts: 157 Location: Japan
|
Posted: Thu Jul 28, 2005 7:32 am Post subject: |
|
|
just to elaborate on the potential solution. If your DHCP lease expired durring the compile, then when DHCP requested the new IP information, it may have overwritten your existing resolv.conf. Now why it wouldnt have done so in the first place I dont know, but its worth a shot for a starting point _________________ Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP |
|
Back to top |
|
|
dilutedq n00b
Joined: 12 Feb 2005 Posts: 27
|
Posted: Thu Jul 28, 2005 7:48 am Post subject: |
|
|
thanks, I'm going to reboot and look around that stuff.. but yeah I try to ping stuff stuff outside and I get nothing. just says can't resolve host. |
|
Back to top |
|
|
dilutedq n00b
Joined: 12 Feb 2005 Posts: 27
|
Posted: Thu Jul 28, 2005 8:08 am Post subject: |
|
|
none of that worked |
|
Back to top |
|
|
r4d1x Apprentice
Joined: 25 Nov 2003 Posts: 157 Location: Japan
|
Posted: Thu Jul 28, 2005 8:21 am Post subject: |
|
|
hmmm, are you able to ping a regular IP? _________________ Gentoo Linux 2.6.19.2-grsec
Dual Athlon-MP 1900
1024Mb PC2100 DDR
Radeon 9600 pro
1TB File Server / FTP |
|
Back to top |
|
|
dilutedq n00b
Joined: 12 Feb 2005 Posts: 27
|
Posted: Thu Jul 28, 2005 8:41 am Post subject: |
|
|
only mine, I went and changed the dns server to the correct one.. for some reason it had it as something that wasn't correct. but still nothing works. |
|
Back to top |
|
|
robdd Tux's lil' helper
Joined: 02 Jan 2005 Posts: 142 Location: Sydney Australia
|
Posted: Thu Jul 28, 2005 12:06 pm Post subject: |
|
|
Hi there, and welcome to Gentoo ! Network problems are quite easy to solve if you are systematic:
First see what network interfaces you have up and working - ifconfig will list these for you if you type '/sbin/ifconfig'. Here's what I get:
Code: | eth0 Link encap:Ethernet HWaddr 00:0D:61:10:DE:C2
inet addr:192.168.1.246 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2960 errors:0 dropped:0 overruns:0 frame:0
TX packets:2924 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3039903 (2.8 Mb) TX bytes:486191 (474.7 Kb)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:915 errors:0 dropped:0 overruns:0 frame:0
TX packets:915 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3539554 (3.3 Mb) TX bytes:3539554 (3.3 Mb)
|
I use a static IP, but if your DHCP server is working you should see a network interface like my eth0. See the inet addr: part, which tells me what IP address has been assigned to that interface. Hopefully your interface has an IP address and is UP and RUNNING. (Ignore lo for now - it's a local loopback interface)
If you have a network interface that's up and working you next need to see how any IP packets are going to be sent to the outside world. To do that type 'nestat -nr' and you should get a listing like this:
Code: | Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
|
The first line says that if the kernel wants to send a packet to the 192.168.1 network it should just send it out on eth0. The last line says that for any "other" packets (0.0.0.0 means "anything else") then send the packets to 192.168.1.1 - that's my ADSL modem. This last line defines the "default route", and is normally where all the packets destined for the Internet go.
If you have a default route set up then next try to ping a numeric IP address - my favourite is 216.136.204.117 (www.freebsd.org). If you can ping the numeric address then you have connectivity all the way out to the Internet, and if you can't ping using a name then it's a DNS problem.
So try all this and post the results and where things start to go wrong.
Good Luck ! _________________ Rob Diamond
Gentoo Hack, hack, hacker
Sydney, Australia |
|
Back to top |
|
|
|