Multiple interfaces match the same subnet

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple interfaces match the same subnet

bluesun08
Hi,

my setup:

/etc/hostname.re0
up

/etc/hostname.vlan100
inet 192.168.100.184 255.255.255.0 192.168.100.255 vlandev re0 description VLAN1-Net1

/etc/hostname.vlan178
inet 192.168.178.184 255.255.255.0 192.168.178.255 vlandev re0 description VLAN7-Net2

/etc/hostname.athn0
inet 192.168.100.185 255.255.255.0
up
media autoselect mode 11g
mediaopt hostap
nwid openbsd2
chan 6
wpakey <password>

/etc/hostname.bridge0
add vlan100
add athn0
up

/etc/dhcpd.conf
shared-network LAN {
  option  domain-name "universum.local";
  option  domain-name-servers 192.168.100.184;
  option  time-servers 192.168.100.184;

  subnet 192.168.100.0 netmask 255.255.255.0 {
    option routers 192.168.100.184;
    range 192.168.100.32 192.168.100.227;
  }
}

/etc/rc.conf.local
dhcpd_flags="vlan100 athn0"

Now in "/var/log/messages" i get the error messages:
Nov 27 01:31:27 openbsd dhcpd[31924]: Multiple interfaces match the same subnet: athn0 vlan100
Nov 27 01:31:27 openbsd dhcpd[31924]: Multiple interfaces match the same shared network: athn0 vlan100

Best regards

Alex





Reply | Threaded
Open this post in threaded view
|

Re: Multiple interfaces match the same subnet

Chris Cappuccio
bluesun08 [[hidden email]] wrote:

> Hi,
>
> my setup:
>
> */etc/hostname.re0*
> up
>
> */etc/hostname.vlan100*
> inet 192.168.100.184 255.255.255.0 192.168.100.255 vlandev re0 description
> VLAN1-Net1
>

You don't need to specify the broadcast address. The kernel is smart
enough to figure it out by itself!

> */etc/hostname.bridge0*
> add vlan100
> add athn0
> up
>

Since you are bridging vlan100 with athn0, there is no need to put
an IP address on athn0. This might result in multipath routing, but in
any event, it's not going to do what you expect.

> Nov 27 01:31:27 openbsd dhcpd[31924]: Multiple interfaces match the same
> subnet: athn0 vlan100
> Nov 27 01:31:27 openbsd dhcpd[31924]: Multiple interfaces match the same
> shared network: athn0 vlan100
>

So, get rid of the IP on one of either athn0 or vlan100.