• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • 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:192.168.1.110  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::240:63ff:fec4:e8ec/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          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:127.0.0.1  Mask:255.0.0.0
          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)
0
ethnarch
Asked:
ethnarch
  • 7
  • 5
1 Solution
 
ethnarchAuthor Commented:
some more info if i ping my router i get this

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

--- 192.168.1.1 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
root@linuxSuse:~>
0
 
Cyclops3590Commented:
what are the contents of
/etc/resolv.conf
/etc/sysconfig/network
0
 
ethnarchAuthor Commented:
/etc/resolv.conf
domain site

/etc/sysconfig/network
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
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
Cyclops3590Commented:
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
0
 
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
0
 
ethnarchAuthor Commented:
oh oops sorry i thought you were looking for a directory listing

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

default 10.1.1.1 - -

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
0
 
ethnarchAuthor Commented:
do you know how i do that?
0
 
ethnarchAuthor Commented:
nevermind i figured it out

the file now says
default 192.168.1.1 - -


but i still cannot get access to an outside webpage
0
 
Cyclops3590Commented:
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

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

shouldn't this be automatically found somewhere?
0
 
Cyclops3590Commented:
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
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

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