Use the following
netstat
commands to get the network status:
- netstat -in
- List the interfaces, including the MAC and IP addresses that they've been configured with.
- netstat -rn
- Display the network routing tables that determine how the stack can reach
  another host.
  If there's no route to another host, you get a no route to host error. 
- netstat -an
- List information about TCP/IP connections to or from your system. This
  includes the state of the connections or the amount of data pending on the
  connections.
  It also provides the IP addresses and ports of the local and remote
  ends of the connections.
For more information about netstat, see the Utilities Reference.