On Mon, Mar 31, 2025 at 05:58:18PM +0000, otto.cooper wrote: > > On Monday, March 31st, 2025 at 5:21 PM, Zé Loff <zel...@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. > > >> 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. > > ifconfig(8) does, but then again, hostname.if is ignoring !commands. >
>From what you posted: > > cat /etc/hostname.em0 > inet 192.168.1.11 255.255.255.0 192.168.1.255 > up > > > cat /etc/hostname.em1 > down > > > cat /etc/hostname.ix0 > inet 192.168.1.12 255.255.255.0 192.168.1.255 > up > > > cat /etc/hostname.ix1 > down > ``` > > The wire on em0 is hooked to the gateway. > The wire on ix0 is hooked to the LAN switch. Per this configuration, both interfaces are on 192.168.1.0/24: one is .11, the other is .12. Since routing seems to work properly, I am assuming this was a copy/paste error. Back to the original question, have you considered using /etc/mygate to specify the default route? --