-
-
Save pcdinh/397596 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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