connect: Network is unreachable (no Internet under 11.3 final)

I still cannot access the Internet under the final release of opensuse 11.3.
I had the same problem with RC2 in which I get “unable to reach network” when runing ping/wget both as root or as a normal user. I checked /etc/resolv.conf, disabled ipv6 and added a default gateway but nothing worked.

Here is a link to my post of the Pre-release/beta forum: Cannot Access Internet under 11.3 RC2

On 07/15/2010 10:26 AM, oshunter wrote:
>
> I still cannot access the Internet under the final release of opensuse
> 11.3.
> I had the same problem with RC2 in which I get “unable to reach
> network” when runing ping/wget both as root or as a normal user. I
> checked /etc/resolv.conf, disabled ipv6 and added a default gateway but
> nothing worked.
>
> Here is a link to my post of the Pre-release/beta forum: ‘Cannot Access
> Internet under 11.3 RC2’ (http://tinyurl.com/26rttmf)

Please post the output of the following:


cat /etc/resolv.conf
/sbin/ifconfig
/sbin/route -n
/usr/sbin/iwconfig

You can strip the comments from the resolv.conf output, and only do the iwconfig
is you are using wireless.

Can you ping 8.8.8.8 (Google’s public DNS server)?

Here is the output from opensuse 11.3


oshunter@linux-z6ls:~> cat /etc/resolv.conf 
### /etc/resolv.conf file autogenerated by netconfig!
search lan
nameserver 192.168.1.254

oshunter@linux-z6ls:~> /sbin/ifconfig 
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx  
          inet addr:192.168.1.72  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37 errors:0 dropped:0 overruns:0 frame:0
          TX packets:42 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3570 (3.4 Kb)  TX bytes:6863 (6.7 Kb)
          Interrupt:28 Base address:0xe000 

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:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:82 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0                                                                                                                                                             
          RX bytes:5724 (5.5 Kb)  TX bytes:5724 (5.5 Kb)                                                                                                                                        
                                                                                                                                                                                                

oshunter@linux-z6ls:~> /sbin/route -n                                                                                                                                                              
Kernel IP routing table                                                                                                                                                                         
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface                                                                                                                   
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0                                                                                                                    
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo                                                                                                                      

oshunter@linux-z6ls:~> ping 8.8.8.8                                                                                                                                                                
connect: Network is unreachable

and here is the output from opensuse 11.2


oshunter@linux-8o0x:~> cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
search lan
nameserver 192.168.1.254

oshunter@linux-8o0x:~> /sbin/ifconfig
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:192.168.1.72  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::226:18ff:fe47:e903/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:442 errors:0 dropped:0 overruns:0 frame:0
          TX packets:440 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:212990 (207.9 Kb)  TX bytes:96903 (94.6 Kb)
          Interrupt:28 Base address:0xc000

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:126 errors:0 dropped:0 overruns:0 frame:0
          TX packets:126 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:8596 (8.3 Kb)  TX bytes:8596 (8.3 Kb)

oshunter@linux-8o0x:~> /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.254   0.0.0.0         UG    0      0        0 eth0

oshunter@linux-8o0x:~> ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=53 time=115 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=53 time=114 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=53 time=116 ms
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 114.048/115.223/116.158/0.961 ms

opensuse 11.3 is missing an entry in the routing table which might be the cause of the problem. Any idea on how to fix this? Why is the entry missing? I never had such a problem with any of the previous releases of opensuse.

Have you tried:

route add default gw 192.168.1.254

?

Great catch!

Is that 192.168.1.254 or 192.168.1.1 for his gateway?

I have the same connectivity issue (but with a default gateway in my routes) . Shall I post my info here, or start a new thread? Thanks.

Hi Gno, it sounds like you have a separate issue (if you do indeed have a default GW). Start a new thread please with your details.

Thanks, your solution fixed the problem :slight_smile:

How to make the fix permanent? Now I have to run the command after each reboot.
Sorry for double posting but I could not find the option to edit my post.

If you’re using the “traditional method” with ifup, then in YaST | Network Settings | Routing, you can manually specify the default gateway. You should set this to 192.168.1.254.