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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.
Shiju JacobInfo Security ManagerCommented:
Is your DNS configured? Is your routing has default router that can take you to the Internet?
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.