Ways to quickly check if you are connected to the internet while on an internal network


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Ways to quickly check if you are connected to the internet while on an internal network
# 1  
Old 08-01-2012
Ways to quickly check if you are connected to the internet while on an internal network

I need some help thinking of ways to quickly check if I am connected to the internet while on an internal network. I never lose connection to the internal network but for some annoying reason I lose the internet quite often. I don't get any errors or warnings. I usually find out that I have lost my internet connection when my youtube playlist stops playing. I'm sure there is a way to quickly do this.
# 2  
Old 08-01-2012
ping an external site.
Code:
ping unix.com

# 3  
Old 08-01-2012
Quote:
Originally Posted by jim mcnamara
ping an external site.
Code:
ping unix.com

Any ideas on script form of this so I don't have to constantly check? This is what I was thinking. Not very creative but I am sure there are better ways to do this.

https://www.unix.com/shell-programmin...mparisons.html
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Different ways to check a file

to get the checksum of a file on unix systems, you can just use the "cksum" command. i discovered there are some watered down versions of unix systems i have to do some work on. surprisingly, these systems have perl installed on them and awk. so if the cksum command is not available on a... (1 Reply)
Discussion started by: SkySmart
1 Replies

2. UNIX for Advanced & Expert Users

Connected to the internet with no network process

This is what I did. $ ps -ef | grep -i networkroot 6657 1 0 12:55 ? 00:00:01 /usr/sbin/NetworkManager bob 7251 7212 0 13:24 pts/3 00:00:00 grep --color=auto -i $ sudo kill -9 6657 password for bob: $ ping -c 5 google.com PING google.com (74.125.229.160)... (1 Reply)
Discussion started by: cokedude
1 Replies

3. UNIX for Dummies Questions & Answers

Non Internet connected distribution

Hi all I've been a Debian user since solidly since about 1997 so I'm fairly experienced Linux user as a whole but unfortunately the monoculture has hit be hard recently. I'm working off a Laptop a lot of the time which spends up to 2-4 weeks without an Internet connection. A few weeks ago it... (1 Reply)
Discussion started by: pointyhat
1 Replies

4. UNIX for Advanced & Expert Users

Forwarding internal internet packets to internal webserver using iptables

Hi, I need to redirect internal internet requests to a auth client site siting on the gateway. Currently users that are authenticated to access the internet have there mac address listed in the FORWARD chain. All other users need to be redirected to a internal site for authentication. Can... (1 Reply)
Discussion started by: mshindo
1 Replies

5. IP Networking

Connecting to an SSN from an internal network

Hi I have an Apache Web server running on a Solaris 8 box that sits on a SSN. I have one desktop that connects to the SSN from the internal network and is recognised directly without using the gateway, all other desktops, laptops from inside the internal network connect to the SSN using the... (0 Replies)
Discussion started by: Bobby76
0 Replies

6. UNIX for Dummies Questions & Answers

How to determine if a host is connected to the Internet in Unix?

How to determine if a host is connected to the Internet in Unix ? (1 Reply)
Discussion started by: shuhang2
1 Replies

7. Linux

How to mount a filesystem of one pc in another pc that are connected in a network?

Hi, I have a software in one of the pcs connected in the network and I need to mount that file system in my PC. Both the pcs have Linux installed. Please let me know how can we achieve this. Any pointers would be of great help. Thanks & Regards, Venkatesh. (3 Replies)
Discussion started by: venkatesh_sasi
3 Replies

8. IP Networking

check whether connected to network

hi... can anyone pls suggest a few methods to check whether a computer is connected to any network, using the terminal, not GUI. thanks eskay (1 Reply)
Discussion started by: eskay_karthik
1 Replies

9. Shell Programming and Scripting

internal network chat

anyone help me get a perl script or c++ that will let me talk to a nt4 box from my win98 server without having to be online ? (8 Replies)
Discussion started by: perleo
8 Replies
Login or Register to Ask a Question