Monday, February 28, 2011

Network check

IFCONFIG
----------------------
$ifconfig
$ifconfig eth0 up
$ifconfig eth0 down

NETSTAT
-------------------
$netstat
Usage: netstat [-laentuwxr]

Display networking information

Options:
-l Display listening server sockets
-a Display all sockets (default: connected)
-e Display other/more information
-n Don't resolve names
-t Tcp sockets
-u Udp sockets
-w Raw sockets
-x Unix sockets
-r Display routing table




[root@GsnCommsModule user]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 (null):13000 (null):* LISTEN
tcp 0 0 (null):ssh (null):* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path


BUSY BOX SHOW NETWORK INFTERFACE
---------------------------------
$ ip addr show
To show the kernel routing table use:
$ ip route show

No comments: