On 2/15/06, Thierry de Coulon <[EMAIL PROTECTED]> wrote:
> Hello, I'm back :)
>
Welcome back :)
> anyway, the problem is that that while Gentoo mostly
> identifies the first port as Ethernet, it sometimes jumps on the second.
Use nameif.
Add to /etc/conf.d/local.start something like this:
/sbin/nameif temp.eth0 <mac of the primary interface>
/sbin/nameif temp.eth1 <mac of the second interface>
/sbin/nameif eth0 <mac of the primary interface>
/sbin/nameif eth1 <mac of the secondary interface>
It's a little clunky, but it works. Ensure local is set to start at
boot, and add "before *" to the depend section:
depend() {
before *
}
This will ensure it gets started before anything touches the
interfaces, and will make sure the correct interface is eth0 every
time.
I'm sure there is a better/easier way of doing this, but it's a stupid
hack that works for me :)
HTH,
Mike
--
[email protected] mailing list