I have an annoying situation at the moment. At home, I have a wireless router and my laptop networks flawlessly with it. At work, there is a wireless service, but I have to faff around setting up some vpn stuff and so I'm happy just plugging my laptop in with wires.
Now, by default, I have this in my rc.conf:
Wheree eth0 is my wired nic, and eth1 is my wireless nic. If I come into work, after booting, I will do the following:
/etc/rc.d/network ifdown eth1 /etc/rc.d/network ifup eth0
And that'll work ok.. for a while. Suddenly, my network connectively stalls, and a peek at ifconfig shows that eth1 has suddenly come back alive by itself! What is doing this, I don't know? It's not that HAL daemon I have running is it, detecting the wireless module and bringing it up? Apparantly I need HAL for KDE.
So, either I'm looking for a way for eth1 to stay down, or I'm after a way, given that the two are loaded, for my traffic to go via eth0 only.
If you use modules for your NICs a sure way would be
It might be dhcpcd bringing eth1 back up but I don't use
dchp so not sure of the 'right way' to stop it.