On Mon, Mar 31, 2025 at 05:58:18PM +0000, otto.cooper wrote:
>
> On Monday, March 31st, 2025 at 5:21 PM, Zé Loff <zeloff@zeloff.org> wrote:
>
> > Any particular reason for having two different interfaces on the same
> > subnet, with the same priority? Can you communicate with machines
> > connected to the LAN switch with this setup?
>
> The gateway is on 192.168.1.1, the lan is on 192.168.0/24. It is just the way it is.
No, you did a typo here. Since both ix0 and em0 share the same network.
So you can not really do that without hacks. Since you want to hack around
you should figure it by yourself what is needed.
> >> OpenBSD puts ix0 ahead of em0. I need to know why. Does anybody know?
>
> > Probably has to do with the order in which they are attached by the
> > kernel (see the "index" for each interface on the ifconfig output), but
> > someone more knowledgeable than me will answer properly.
>
> hostname.if(5) does not say a word how to change index or the priority.
hostname.if(5) is clear about this:
Any lines not matching these packed formats are passed directly
to ifconfig(8).
So add 'priority 2' to hostname.ix0, maybe that's enough. Not sure it is,
since I would never ever run a setup like this.
> ifconfig(8) does, but then again, hostname.if is ignoring !commands.
No, it is not. You are doing it wrong.
--
:wq Claudio
No comments:
Post a Comment