Skip to content

Instantly share code, notes, and snippets.

@lukmdo
Created January 23, 2010 23:31
Show Gist options
  • Save lukmdo/284858 to your computer and use it in GitHub Desktop.
Save lukmdo/284858 to your computer and use it in GitHub Desktop.
NETwork troubleshooting
sudo ifconfig eth0 192.168.1.50 netmask 255.255.255.0 up
sudo ifconfig eth0 hw 00:00:00:00:00:00
sudo route add default gw 172.16.236.0
Display current active Internet connections:
netstat -nat
Display open ports
sudo netstat -tulp || sudo netstat -tulpn
Display network interfaces stats
netstat -i
Display established connections
netstat -tue
Where,
-t : TCP connections
-u : UDP connections
-e : Established
TCPSTAT
=======
http://www.percona.com/docs/wiki/tcprstat:start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment