Solved

can't access internet outside of local network

Posted on 2006-07-20
12
255 Views
Last Modified: 2010-03-18
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
Comment
Question by:ethnarch
  • 7
  • 5
12 Comments
 
LVL 2

Author Comment

by:ethnarch
ID: 17151326
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
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17151382
what are the contents of
/etc/resolv.conf
/etc/sysconfig/network
0
 
LVL 2

Author Comment

by:ethnarch
ID: 17151401
/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
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17151456
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
 
LVL 2

Author Comment

by:ethnarch
ID: 17151471
/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
 
LVL 2

Author Comment

by:ethnarch
ID: 17151475
oh oops sorry i thought you were looking for a directory listing

there is nothing in the file routes
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17151478
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
 
LVL 2

Author Comment

by:ethnarch
ID: 17151482
do you know how i do that?
0
 
LVL 2

Author Comment

by:ethnarch
ID: 17151503
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
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 250 total points
ID: 17151522
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
 
LVL 2

Author Comment

by:ethnarch
ID: 17152844
I did set it up and it works now thanks

shouldn't this be automatically found somewhere?
0
 
LVL 25

Expert Comment

by:Cyclops3590
ID: 17153231
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now