View previous topic :: View next topic |
Author |
Message |
BobBraumeister n00b
Joined: 12 Jul 2006 Posts: 15
|
Posted: Sat Sep 02, 2006 6:12 pm Post subject: Internet not reachable (after emerge -Du world) |
|
|
Hi, my problem is the following:
I emerged updates with Code: | emerge --update --deep world |
Well everything worked well since about 1 week. Then i restared the machine (due to transport). First of all i couldn't login anymore (unable to find /bin/login was in dmesg). I copied the login file from live cd. Now i cant access the Internet anymore:
The interface is up:
Code: | # ifconfig
eth0 Link encap:Ethernet HWaddr ...
inet6 addr: fe80::209:5bff:.../64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:1076 errors:0 dropped:0 overruns:0 frame:0
TX packets:540 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:90183 (88.0 Kb) TX bytes:22289 (21.7 Kb)
Interrupt:177 Base address:0x6000
/* snip */
ppp0 Link encap:Point-to-Point Protocol
inet addr:62.214.205... P-t-P:213.30.192.79 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:605 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:46326 (45.2 Kb) TX bytes:450 (450.0 b) |
Routing is set up: Code: | # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
213.30.192.79 * 255.255.255.255 UH 0 0 0 ppp0
10.123.0.0 * 255.255.0.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo |
ppp with rp-pppoe-plugin sets the nameservers correctly: Code: | # cat /etc/resolv.conf
nameserver 62.72.64.237
nameserver 62.72.64.241 |
I can ping the end point of my Point-to-Point connection (213.30.192.79 in this case), but any other ips are not available and names aren't resolved. I think this is, because the nameserver can't be reached, too.
Code: | # ping 123.123.123.123
connect: Network is unreachable
# ping google.de
ping: unknown host google.de |
Any ideas? _________________ Don't wonder about the name, it's pronounced german |
|
Back to top |
|
|
IQgryn l33t
Joined: 05 Sep 2005 Posts: 764 Location: WI, USA
|
Posted: Mon Sep 04, 2006 8:04 am Post subject: |
|
|
Did you update your configuration files? You would usually use dispatch-conf or etc-update. |
|
Back to top |
|
|
mattjgalloway l33t
Joined: 16 Mar 2004 Posts: 761 Location: Coventry, UK
|
Posted: Sat Sep 30, 2006 12:11 pm Post subject: |
|
|
Did you fix this? I seem to have the same problem! _________________ AMD64 3200+, 1024MB RAM, Gentoo Linux
MacBook Core Duo, 1024MB RAM, Leopard |
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Wed Dec 13, 2006 5:45 pm Post subject: |
|
|
Me too. It helps to set up a manual route to the gateway, but it did work before! _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
calr0x Apprentice
Joined: 16 Aug 2004 Posts: 244
|
|
Back to top |
|
|
defenderBG l33t
Joined: 20 Jun 2006 Posts: 817
|
Posted: Wed Dec 13, 2006 7:49 pm Post subject: Re: Internet not reachable (after emerge -Du world) |
|
|
BobBraumeister wrote: | Routing is set up: Code: | # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
213.30.192.79 * 255.255.255.255 UH 0 0 0 ppp0
10.123.0.0 * 255.255.0.0 U 0 0 0 eth1
loopback * 255.0.0.0 U 0 0 0 lo |
|
as far as i can see u don't have a default gateway, meaning that the system doesn't know where to send a packet, if it is not from 10.123.x.x or lo! if u know your default gateway's ip (probably router) do:
route add default gw <default gateway's ip> |
|
Back to top |
|
|
cloud64 n00b
Joined: 29 Nov 2005 Posts: 66
|
Posted: Fri Dec 15, 2006 8:27 pm Post subject: |
|
|
Yes that's the solution but how do it automatically ?
Thank you |
|
Back to top |
|
|
red-wolf76 l33t
Joined: 13 Apr 2005 Posts: 714 Location: Rhein-Main Area
|
Posted: Fri Dec 15, 2006 8:42 pm Post subject: |
|
|
in your /etc/conf.d/net add "-net" to the argument for the default via...
Should look something like this: Code: | routes_eth0=( "-net default via xxx.yyy.zzz.nnn" ) |
Don't forget to do /init.d/net.eth0 restart afterwards... _________________ 0mFg, G3nt00 r0X0r$ T3h B1g!1111
Use sane CFLAGS! If for no other reason, do it for the lulz! |
|
Back to top |
|
|
|