Yes, most definately.
Bring the interface down:
% ifconfig xx0 down
Bring it up:
% ifconfig xx0 up
Pretty basic stuff, could have learnt this by reading the man page..
Quote:
Originally Posted by ifconfig(8)
down - Mark an interface ``down''. When an interface is marked ``down'', the system will not attempt to transmit messages through that interface. If possible, the interface will be reset to disable reception as well. This action does not automatically disable routes using the interface.
...
up - Mark an interface ``up''. This may be used to enable an interface after an ``ifconfig down''. It happens automatically when setting the first address on an interface. If the interface was reset when previously marked down, the hardware will be re-initialized.
|
Have fun.