On Mon, 9 Jan 2006 00:13:32 +0100, Alexander Farber wrote:
>Hi,
>
>why do I get this warning in /var/log/daemon:
>
> dhcpd: Multiple interfaces match the same shared network: re0 ral0
>
>even though the dhcpd seems to work (ok, my WLAN over ral0 is unstable,
>but I'm not sure if this dhcpd warning is related to that problem):
>
> dhcpd: DHCPREQUEST for 192.168.2.34 from 00:15:00:23:e2:9c via ral0
> dhcpd: DHCPACK on 192.168.2.34 to 00:15:00:23:e2:9c via ral0
>
>What's actually meant by "shared network" and why is it bad (is it somehow
>related to broadcasts?). The ifconfig shows my cards being on 2
>different networks:
>
>re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:c0:49:fa:2b:c4
> media: Ethernet autoselect (100baseTX full-duplex)
> status: active
> inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
> inet6 fe80::2c0:49ff:fefa:2bc4%re0 prefixlen 64 scopeid 0x2
>ral0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
> lladdr 00:0e:2e:57:84:de
> media: IEEE802.11 autoselect mode 11g hostap
> status: active
> ieee80211: nwid OPENBSD chan 5 bssid 00:0e:2e:57:84:de 100dBm
> inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
> inet6 fe80::20e:2eff:fe57:84de%ral0 prefixlen 64 scopeid 0x3
>
>Here are my dhcpd conf files:
>
> /etc/dhcpd.interfaces:
> ral0
> re0
>
> /etc/dhcpd.conf:
>
>shared-network LOCAL-NET {
> option domain-name "my.domain";
>
> subnet 192.168.1.0 netmask 255.255.255.0 {
> option routers 192.168.1.1;
> option domain-name-servers 192.168.1.1;
> range 192.168.1.33 192.168.1.40;
> }
>
> subnet 192.168.2.0 netmask 255.255.255.0 {
> option routers 192.168.2.1;
> option domain-name-servers 192.168.2.1;
> range 192.168.2.33 192.168.2.40;
> }
>}
>
There is your problem:^^^^^^^^^^
What you need is 2 shared networks with individual names and their own
subnet entries.
Here is the relevant bit of my box doing exactly what you want ( 1
etherLAN and one wifi)
><8
shared-network LOCAL-NET {
option domain-name "witworx.com";
option domain-name-servers 192.168.80.1;
subnet 192.168.80.0 netmask 255.255.255.0 {
option routers 192.168.80.1;
range 192.168.80.80 192.168.80.99;
}
}
shared-network WIFI {
option domain-name "witworx.com";
option domain-name-servers 192.168.100.1;
subnet 192.168.100.0 netmask 255.255.255.0 {
option routers 192.168.100.1;
range 192.168.100.100 192.168.100.199;
}
}
><8
It is good that you provided ALL the details. I wish more people would
do that.
HTH
Rod/
>From the land "down under": Australia.
Do we look <umop apisdn> from up over?
Do NOT CC me - I am subscribed to the list.
Replies to the sender address will fail except from the list-server.