switching from one network interface to another without reboot

b. f. bf1783 at googlemail.com
Fri Aug 21 00:47:50 UTC 2009


Michal wrote:
>Mel Flynn wrote:
>> If these are on the same network (like most wireless routers), it can pay off
>> to use lagg(4) and then simply unplug the cable. Plug it back in and it will
>> use the cable again. You would need:

>In my case usually it's some testing environment so I needed more of a
>quick kludge. But thats very interesting idea for my home network, I'll
>definitely have to check it out, thanks!

And of course, you can also automate this via devd.conf(5), by
instructing the system to run the rc.d scripts or other
commands/scripts if one of your NICs is attached/detached, or upon
other conditions.  There are related examples in the devd.conf(5)
manpage and the default /etc/devd.conf

b.


More information about the freebsd-questions mailing list