LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2009, 02:15 AM   #1
Cfh-Linux
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
How can I understand if linux server is connected to the internet?


Hi to all,
I am really very new to linux.
Using putty, I connected to a red-hat linux enterprise server release 5, in my local network.

But the server is installed with minimum requirements.
Firstly I don't know how can I understand if the server is connected to the internet?

(I used "ping" command for pinging www.google.com but the screen is locked with the ping command so I have to press "ctrl+z" to stop it.)

Thank you very much for your help from now,
 
Old 10-05-2009, 02:46 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yeah ping is a better way to know if you are connected to internet. But if are unable to ping then there could be issue with name server as well.
Elinks is a web browser for command line. You can use it to open a page that you want and if you can see the page you are connected else not.
BUT your name server be running else you will need to know ip addresses.
 
Old 10-05-2009, 06:33 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,061

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Instead of pinging-by-name, you should try pinging-by-ip-address, as that will work even if there is a name server issue (but no other problems).
eg
Code:
ping www.google.com
PING www.l.google.com (74.125.77.104) 56(84) bytes of data.
64 bytes from ew-in-f104.google.com (74.125.77.104): icmp_seq=1 ttl=55 time=29.5 ms
64 bytes from ew-in-f104.google.com (74.125.77.104): icmp_seq=2 ttl=55 time=31.8 ms
64 bytes from ew-in-f104.google.com (74.125.77.104): icmp_seq=3 ttl=55 time=32.4 ms
64 bytes from ew-in-f104.google.com (74.125.77.104): icmp_seq=4 ttl=55 time=28.7 ms
^C
--- www.l.google.com ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3017ms
rtt min/avg/max/mdev = 28.749/30.659/32.470/1.542 ms
Code:
> ping 74.125.77.104
PING 74.125.77.104 (74.125.77.104) 56(84) bytes of data.
64 bytes from 74.125.77.104: icmp_seq=1 ttl=55 time=32.2 ms
64 bytes from 74.125.77.104: icmp_seq=2 ttl=55 time=43.5 ms
64 bytes from 74.125.77.104: icmp_seq=3 ttl=55 time=40.6 ms
64 bytes from 74.125.77.104: icmp_seq=4 ttl=55 time=29.9 ms
^C
--- 74.125.77.104 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3014ms
rtt min/avg/max/mdev = 29.990/36.626/43.578/5.654 ms
...and, to take a flyer and what might be your next question, to investigate the operation of nameservers, use the 'dig' command.
 
Old 10-05-2009, 08:52 AM   #4
avijitp
Member
 
Registered: May 2005
Location: India
Distribution: FC11, Debian/Ubuntu, RHEL, Solaris, AIX, HP-UX
Posts: 161

Rep: Reputation: 32
To access the internet from a linux host, you need a connectivity (route) to Internet and Domain Name System (DNS) to convert hostnames to IP address.

Check /etc/resolv.conf if you have something like:

nameserver xxx.xxx.xxx.xxx

If your host has a route/connection to the Internet and your DNS are setup, you should be able to ping any welknown domain name.
 
Old 10-07-2009, 12:29 AM   #5
Cfh-Linux
LQ Newbie
 
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks to everyone for the answers.

linuxlover.chaitanya, I looked for elinks but i couldn't find the executable. How can i understand if it is installed in my linux?

By the way, i forgot to mention in my previous post, i can not also ping the other computers using their ips. Especially, they are some machines (in the network) i can not ping but i am certain they are connected to the network (because i can ping them from another computer. I understood that the connection problem exists between this linux machine and some other machines on the network. And i am pretty sure it is because of a configuration problem of the linux machine. Because i can reach these other machines from other computers)

I understood that this linux server is not successfully included by the windows active directory.

Now,, i am searching how to configure kerberos5, winbind, samba to solve this problem. (tough issues for a new bie...)

Can you suggest good articles for making these configurations? ( I already got samba-3 by examples, official & unofficial samba tutorials but i can not be sure how i can make a good start.)

İ made some changes, but after in these configuration files, now i can get the users of the windows active directory by using wbinfo -u & wbinfo -g but when i use "getent passwd" i see that active directory users are not defined in linux local credentials...
 
Old 10-07-2009, 12:57 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
So there is some issues with the tcp settings of your Linux box rather than anything else. Most of the systems as you say are in the network. This can also be due to removed cable?
Else check the tcp settings and if your machine does not have a valid ip address provide with it.

If you want to connect to your existing windows active directory domain, you can directly install LikeWise package and join the domain. No hassles. It is available in Ubuntu repositories.
 
Old 10-07-2009, 02:12 AM   #7
Ahmed
Member
 
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386

Rep: Reputation: 41
Quote:
Originally Posted by Cfh-Linux View Post
linuxlover.chaitanya, I looked for elinks but i couldn't find the executable. How can i understand if it is installed in my linux?
elinks is the name of the program, the executable is simply links. To locate it, execute:

Code:
# which links
If you have it, you'll get something like:

Code:
/usr/bin/links
In which case, you can simply execute 'links' as it's in your default path.

Chances are that elinks isn't installed by default. More commonly, there is 'lynx', which is an even simpler text-based browser, so search for that as well.

For starters: When starting links or lynx, hit g to enter a URL you want to test.

-A
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Two subnets connected through one linux box to the internet site_ml Linux - Networking 8 05-15-2007 04:11 PM
Two subnets connected through one linux box to the internet site_ml Linux - Networking 1 05-13-2007 12:17 PM
linux 10.0 desktop connected to internet during install for updates so why not now? dicedaniels Linux - Newbie 3 11-05-2006 07:41 PM
internet sharing ; linux connected, windows wants tekneakz Linux - Networking 9 06-20-2002 09:44 AM


All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration