Suse Linux - how to know if server connects to internet

new to linux -  my linux knowledge is  - google as I go -
I have a linux box with Suse Enterprise  SP  
need to know if this one connects to internet
( I am trying to upgrde online and it seems the machine does not )

need some help please.
Who is Participating?
connection time out could be due to:

1- Routing issue to the DNS server
2- Some firewall blocking you from reaching DNS server

Check with your network admin
Manfred BertlManagerCommented:
Can you ping - for example - Or at least an outside ip address like If not, you have network connection problems. If yes, it seems your 'you' (Yast online Update) cannot connect to the repository servers. The reason could be a subscription problem.
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Is your DNS configured? Is your routing has default router that can take you to the Internet?
indikadAuthor Commented:
gives me unknown host

gives me network unreacheable

Note:  The server is on our network behind the same router. If I do a ipconfig from a windows machine I get an ip address
so I belive the router address that the linux box give is wrong.

I sort of think if the server can detect my router then it will get to internet - but I don't know where to set that up.

route command  on the linux machine gives me this
hanab1:~ # route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface       U     0      0        0 lo     U     0      0        0 eth0   U     0      0        0 eth0

hanab1:~ # ip route show dev lo  scope link dev eth0  scope link dev eth0  proto kernel  scope link  src

Open in new window

ifconfig gives me the below
eth0      Link encap:Ethernet  HWaddr 00:19:99:E2:02:43
          inet addr:  Bcast:  Mask:
          inet6 addr: fe80::219:99ff:fee2:243/64 Scope:Link
          RX packets:222760883 errors:0 dropped:101167 overruns:0 frame:0
          TX packets:234661136 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:67491681832 (64365.0 Mb)  TX bytes:35237886043 (33605.4 Mb)

eth1      Link encap:Ethernet  HWaddr 00:19:99:E2:02:44
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:  Mask:
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1374264864 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1374264864 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:290668111578 (277202.7 Mb)  TX bytes:290668111578 (277202.7 Mb)
indikadAuthor Commented:
in addition to my reply just before this ( pelase check )
also --  the
has these information.  below. Asuning the NETWORK= is the router address, should I change the address of the NETWORK= ?    -   do I need a restart of the server ? and what consequences could there be ?

NAME='Intel Ethernet controller'
It seems no default gateway is set.

Please find out your default router IP address (from network admin or from some other m/c connected to Internet) and add. Please see steps in below link:

under "Add default gateway in SUSE Linux"
indikadAuthor Commented:
omarfarid thanks . I could not be sure how to correctly do using your link but I used YasT to update hoping it will do the same job - hope someone can advise
this is what I did and the result

yast - network devices - network settings - routing
default gateway set an ip address to
and after a reboot of the system found this line in the routes file
default - -

rebooted the system and also did a manual start of the network but still cannot ping  - same results as before if I ping  ,  I get unknown host
Manfred BertlManagerCommented:
can you ping ?
What about your DNS setup?

If you run command like:


What do you get?

If dns is not setup then you need to configure it. You may use yast for this. Please see link:
indikadAuthor Commented:
mbertl -
yes I can ping

gives me below
;; connection timed out; no servers could be reached
I will check your link re DNS
indikadAuthor Commented:
I am still in the process of solving this however closing this to stop the question falling in to "abandoned" stage.
Thanks very much for all who took time to reply.
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.

All Courses

From novice to tech pro — start learning today.