28 May
2003
28 May
'03
07:03
I shut down my always-on ASDL connection regularly. To close down a specific interface such as eth0, run /sbin/ifdown eth0 and to bring it up again run /sbin/ifup eth0 Both need to be done as root. It is best to use sudo to run them. Sudo allows a specific user to run certain defined ( in /etc/sudoers ) scripts or programs as root ( or any other defined user ). For details read the man pages sudo and sudoers. I further alias the commands to 'netdown' and 'netup' in my $HOME/.bashrc file alias netup='sudo /sbin/ifup eth0' alias netdown='sudo /sbin/ifdown eth0' Hope this helps Basil Fowler