mywindowsdownloads.blogspot.com
Click here for all Free Linux Downloads
Using netstat
Now if the card is active, we can check the status of our network with netstat command. This command shows routing tables, interface statistics, connections to outside networks and much more. Using a switch -nr we can see our routing tables. It uses three types of IP addresses, as shown below:
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt IFace
192.168.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 192.168.0.114 0.0.0.0 UG 0 0 0 eth0
The details of the above output are described hereunder:
192.168.0.0 For this network no gateway is required as it is the current LAN.
127.0.0.0 This is also on same network; therefore it also does not require gateway address.
0.0.0.0 For all those IP addresses which are not specified in this routing table earlier, use the address
192.168.0.114 as the default gateway.
No comments:
Post a Comment