Skip to content

Instantly share code, notes, and snippets.

@pcdinh
Forked from lukmdo/NETwork stuff
Created May 11, 2010 17:49
Show Gist options
  • Save pcdinh/397596 to your computer and use it in GitHub Desktop.
Save pcdinh/397596 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment