please tell, how to remotely up and down the port using ifconfig unix command?
$ ifconfig eth0 down $ ifconfig eth0 up
where eth0 is my nic card interface!
migrated from stackoverflow.com Mar 24 '12 at 4:31
This question came from our site for professional and enthusiast programmers.
You can do it on one line:
As noted above... just issuing the ifconfig down without the semicolon and the ifconfig up will cut you off from a remote machine.
You will need superuser access on most nix, if you use sudo make SURE you sudo both ifconfig statements.