• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 395
  • Last Modified:

can't access internet outside of local network

I am very new to linux i have had suse linux installed for a couple weeks now and i have just lost any ability to access anything outside of my local network. I am not sure how to read the ifconfig output but here is what i am getting.  I had played with the network settings which could possibly be where i made a mistake.  Now i can't seem to correct it.

eth0      Link encap:Ethernet  HWaddr 00:40:63:C4:E8:EC
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::240:63ff:fec4:e8ec/64 Scope:Link
          RX packets:1133 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1484 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:79043 (77.1 Kb)  TX bytes:1773493 (1.6 Mb)
          Interrupt:11 Base address:0xec00

lo        Link encap:Local Loopback
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4974 (4.8 Kb)  TX bytes:4974 (4.8 Kb)
  • 7
  • 5
1 Solution
ethnarchAuthor Commented:
some more info if i ping my router i get this

root@linuxSuse:~> ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.960 ms
64 bytes from icmp_seq=2 ttl=64 time=0.844 ms

--- ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1007ms
rtt min/avg/max/mdev = 0.844/0.902/0.960/0.058 ms

If i ping an outside address
root@linuxSuse:~> ping www.google.com
ping: unknown host www.google.com
what are the contents of
ethnarchAuthor Commented:
domain site

linuxSuse:/etc/sysconfig/network # dir
total 54
drwxr-xr-x  6 root root  424 2006-07-20 17:19 .
drwxr-xr-x  7 root root 1464 2006-07-20 17:55 ..
-rw-r--r--  1 root root 6981 2006-07-19 16:47 config
-rw-r--r--  1 root root 6708 2006-07-20 17:56 dhcp
-rw-r--r--  1 root root  245 2006-07-20 18:30 ifcfg-eth-id-00:40:63:c4:e8:ec
-rw-r--r--  1 root root  141 2005-09-09 12:15 ifcfg-lo
-rw-r--r--  1 root root 9725 2006-01-20 21:24 ifcfg.template
drwxr-xr-x  2 root root   48 2005-09-09 12:27 if-down.d
-rw-r--r--  1 root root  239 2005-09-09 12:15 ifroute-lo
drwxr-xr-x  2 root root   88 2006-06-03 13:05 if-up.d
drwx------  2 root root   48 2005-09-09 12:27 providers
-rw-r--r--  1 root root    0 2006-07-20 17:19 routes
-rw-r--r--  1 root root   25 2006-07-20 17:19 routes.YaST2save
drwxr-xr-x  2 root root 1336 2006-06-03 15:12 scripts
-rw-r--r--  1 root root 5469 2006-06-03 15:12 wireless
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

sorry about that, forgot you were in suse
what does /etc/sysconfig/network/routes say

also, with the /etc/resolv.conf empty of servers you won't be able to resolve any dns names
ethnarchAuthor Commented:
/etc/sysconfig/network/routes says
linuxSuse:/ # dir
total 23
drwxr-xr-x   23 root root   544 2006-07-20 18:33 .
drwxr-xr-x   23 root root   544 2006-07-20 18:33 ..
drwxr-xr-x    2 root root  2920 2006-06-03 15:15 bin
drwxr-xr-x    3 root root   496 2006-06-03 15:17 boot
drwxr-xr-x   12 root root 15860 2006-07-20 18:34 dev
drwxr-xr-x   74 root root  6920 2006-07-20 18:33 etc
drwxr-xr-x    3 root root    72 2006-06-03 17:12 home
drwxr-xr-x   10 root root  4000 2006-06-03 15:12 lib
drwxr-xr-x    3 root root    80 2006-07-19 14:02 media
drwxr-xr-x    2 root root    48 2005-09-09 12:27 mnt
drwxr-xr-x    5 root root   128 2006-06-03 14:00 opt
dr-xr-xr-x  104 root root     0 2006-07-20 18:32 proc
drwxr-xr-x    3 root root   136 2006-06-04 04:14 repos
drwx------   10 root root   392 2006-07-20 19:05 root
drwxr-xr-x    3 root root  7936 2006-06-03 15:15 sbin
drwxr-xr-x    5 root root   120 2006-06-04 04:58 srv
drwxr-xr-x    2 root root    48 2005-09-09 05:59 subdomain
drwxr-xr-x   10 root root     0 2006-07-20 18:32 sys
drwxrwxrwt   29 root root  1120 2006-07-20 19:30 tmp
drwxr-xr-x   12 root root   344 2006-06-03 13:05 usr
drwxr-xr-x   14 root root   360 2006-06-03 12:49 var

so if it only says domain site and has no servers listed do I put them in, I don't know what my dns servers are maybe i can get it from my router? And do i even need them in there?

Oh and by the way my router is setup for DHCP it's just a regular linksys router hooked to a cable modem
ethnarchAuthor Commented:
oh oops sorry i thought you were looking for a directory listing

there is nothing in the file routes
the routes file (at least on my suse box) is suppose to contain something like this

default - -

if its empty you don't have a default gateway either which explains why you can't get off your subnet.  so thru the yast and see if you can reconfigure the nic card to grab everything from dhcp.  if the linksys router is setup right that should correct everything
ethnarchAuthor Commented:
do you know how i do that?
ethnarchAuthor Commented:
nevermind i figured it out

the file now says
default - -

but i still cannot get access to an outside webpage
did you fill in a dns server
for example, if your router acts as a dns proxy there should be an entry like this in your /etc/resolv.conf file

ethnarchAuthor Commented:
I did set it up and it works now thanks

shouldn't this be automatically found somewhere?
if you are using dhcp, then yes, it should be auto set provided the dhcp server actually issues that information, otherwise you have to put it in
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 7
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now