Thread
:
How Can I Tell I'm Connected to the Network?
View Single Post
m_stolle
2008-03-10 , 19:28
Posts: 118 | Thanked: 26 times | Joined on Feb 2008
#
6
netstat -rn | grep '0\.0\.0\.0'
should work too. Basically, it checks the kernel's routing tables to see if there's a default gateway set. Without a default gateway, you can't connect to any systems outside your local ethernet segment, hence no connection. This is indifferent to the kind of connection you use - BT, WLAN or whatever.
Martin
Quote & Reply
|
The Following User Says Thank You to m_stolle For This Useful Post:
frethop
m_stolle
View Public Profile
Send a private message to m_stolle
Find all posts by m_stolle