Pages

June 20, 2007

Observing Solaris 10 tcp/ip stack

Hi, let's take a look for ususal network related command under Solaris 10. To understand how to things work deeply, see this page.

Routing table:
netstat -rn
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ---------- ---------
default 192.168.89.2 UG 1 10 e1000g0
192.168.89.0 192.168.89.130 U 1 22 e1000g0
224.0.0.0 192.168.89.130 U 1 0 e1000g0
127.0.0.1 127.0.0.1 UH 1 42 lo0

Seeing realtime amount of traffic:
netstat -in 1 100
input e1000g output input (Total) output
packets errs packets errs colls packets errs packets errs colls
931623 0 470008 0 0 931744 0 470129 0 0
.
.

State of connections:
netstat -n -f inet
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -----------
192.168.89.130.22 192.168.89.1.49728 65535 0 49232 0 ESTABLISHED

Status of interfaces:
dladm show-link
e1000g0 type: non-vlan mtu: 1500 device: e1000g0
dladm show-dev
e1000g0 link: up speed: 1000 Mbps duplex: full

Various statistic information related to protocols (like droppe TCP connections, and so on..):
netstat -s

No comments:

Post a Comment