dhcpd: Multiple interfaces match the same shared network

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

dhcpd: Multiple interfaces match the same shared network

Alexander Farber
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;
        }
}

And I also run named (don't know if this matters) serving both networks:

/var/named/master/1.168.192:

$ORIGIN 1.168.192.in-addr.arpa.
$TTL 6h

@         IN    SOA     localhost. root.localhost. (
                        1       ; serial
                        1h      ; refresh
                        30m     ; retry
                        7d      ; expiration
                        1h )    ; minimum

                NS      localhost.
1               PTR     gate.my.domain.

/var/named/master/2.168.192:

$ORIGIN 2.168.192.in-addr.arpa.
$TTL 6h

@         IN    SOA     localhost. root.localhost. (
                        1       ; serial
                        1h      ; refresh
                        30m     ; retry
                        7d      ; expiration
                        1h )    ; minimum

                NS      localhost.
1               PTR     gate.my.domain.

/var/named/master/my.domain
$ORIGIN my.domain.
$TTL 6h

@         IN    SOA     localhost. root.localhost. (
                        1       ; serial
                        1h      ; refresh
                        30m     ; retry
                        7d      ; expiration
                        1h )    ; minimum

                NS      localhost.
gate      IN    A       192.168.1.1
gate      IN    A       192.168.2.1
boprx01   IN    CNAME   gate

And here is my pf.conf:

ext_if="pppoe0"
wlan_if="ral0"
lan_if="re0"
priv_nets = "{ 127.0.0.0/8 192.168.0.0/16 172.16.0.0/12 10.0.0.0/8 }"

scrub in all
scrub out on pppoe0 random-id max-mss 1440

# transparent squid cache
rdr on $wlan_if inet proto tcp from $wlan_if:network \
        to ! $wlan_if port www -> 127.0.0.1 port 8080
rdr on $lan_if inet proto tcp from $lan_if:network \
        to ! $lan_if port www -> 127.0.0.1 port 8080

nat on $ext_if inet from $wlan_if:network to any -> ($ext_if)
nat on $ext_if inet from $lan_if:network to any -> ($ext_if)

pass in all
pass out all

block drop in  quick on $ext_if from $priv_nets to any
block drop out quick on $ext_if from any to $priv_nets

antispoof quick for { $wlan_if $lan_if }

Thank you for any hints
Alex

--
OpenBSD 3.8-current (GENERIC.MP.gate) #1: Sun Jan  8 23:11:26 CET 2006
    [hidden email]:/sys/arch/i386/compile/GENERIC.MP.gate
cpu0: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 499 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 402227200 (392800K)
avail mem = 359661568 (351232K)
using 4278 buffers containing 20213760 bytes (19740K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(0f) BIOS, date 04/03/00, BIOS32 rev. 0 @ 0xfd7ac
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd720/0x8e0
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf30/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371FB ISA" rev 0x00)
pcibios0: PCI bus #2 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x3800 0xcb800/0x4000
ipmi at mainbus0 not configured
mainbus0: Intel MP Specification (Version 1.4) (HP       XU/XW       )
cpu0 at mainbus0: apid 1 (boot processor)
cpu0: apic clock running at 99 MHz
cpu1 at mainbus0: apid 0 (application processor)
cpu1: Intel Pentium III ("GenuineIntel" 686-class, 512KB L2 cache) 499 MHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
mainbus0: bus 0 is type PCI
mainbus0: bus 1 is type PCI
mainbus0: bus 2 is type PCI
mainbus0: bus 3 is type ISA
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX AGP" rev 0x02
ppb0 at pci0 dev 1 function 0 "Intel 82443BX AGP" rev 0x02
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "Texas Instruments 3DLabs Permedia 2" rev 0x11
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HITACHI, CDR-8435, 0010> SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: apic 2
int 19 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x02: SMI
iic0 at piixpm0
lm75probe: 00 002d 0032 0032 0032 0032 0032
iic0: addr 0x48 00=16 01=00 02=2d 03=32 04=32 05=32 06=32 07=32 08=16
09=00 0a=2d 0b=32 0c=32 0d=32 0e=32 0f=32 10=16 11=00 12=2d 13=32
14=32 15=32 16=16 17=32 18=16 19=00 1a=2d 1b=32 1c=32 1d=32 1e=32
1f=32 20=16 21=00 22=2d 23=32 24=32 25=32 26=32 27=32 28=16 29=00
2a=2d 2b=32 2c=32 2d=32 2e=32 2f=32 30=16 31=00 32=2d 33=32 34=32
35=32 36=32 37=32 38=16 39=00 3a=2d 3b=32 3c=32 3d=32 3e=16 3f=32
40=16 41=00 42=2d 43=32 44=32 45=32 46=32 47=32 48=16 49=00 4a=2d
4b=32 4c=32 4d=32 4e=16 4f=16 50=16 51=00 52=2d 53=32 54=32 55=32
56=32 57=32 58=16 59=00 5a=2d 5b=32 5c=32 5d=32 5e=32 5f=32 60=16
61=00 62=2d 63=32 64=32 65=32 66=32 67=32 68=16 69=00 6a=2d 6b=32
6c=32 6d=32 6e=32 6f=32 70=16 71=00 72=2d 73=32 74=32 75=32 76=32
77=32 78=16 79=00 7a=2d 7b=32 7c=32 7d=32 7e=32 7f=32 80=16 81=00
82=2d 83=32 84=32 85=32 86=32 87=32 88=16 89=00 8a=2d 8b=32 8c=32
8d=32 8e=32 8f=32 90=16 91=00 92=2d 93=32 94=32 95=32 96=32 97=32
98=16 99=00 9a=2d 9b=32 9c=32 9d=32 9e=32 9f=32 a0=16 a1=00 a2=2d
a3=32 a4=32 a5=32 a6=32 a7=32 a8=16 a9=00 aa=2d ab=32 ac=32 ad=32
ae=32 af=32 b0=16 b1=00 b2=2d b3=32 b4=32 b5=32 b6=32 b7=32 b8=16
b9=00 ba=2d bb=32 bc=32 bd=32 be=32 bf=32 c0=16 c1=00 c2=2d c3=32
c4=32 c5=32 c6=32 c7=32 c8=16 c9=00 ca=2d cb=32 cc=32 cd=32 ce=32
cf=32 d0=16 d1=00 d2=2d d3=32 d4=32 d5=32 d6=32 d7=32 d8=16 d9=00
da=2d db=32 dc=32 dd=32 de=32 df=32 e0=16 e1=00 e2=2d e3=32 e4=32
e5=32 e6=32 e7=32 e8=16 e9=00 ea=2d eb=32 ec=32 ed=32 ee=32 ef=32
f0=16 f1=00 f2=2d f3=32 f4=32 f5=32 f6=32 f7=32 f8=16 f9=00 fa=2d
fb=32 fc=32 fd=32 fe=16 ff=32
lm75probe: 00 0037 003c 003c 003c 003c 003c
iic0: addr 0x49 00=19 01=00 02=37 03=3c 04=3c 05=3c 06=3c 07=3c 08=19
09=00 0a=37 0b=3c 0c=3c 0d=3c 0e=3c 0f=3c 10=19 11=00 12=37 13=3c
14=3c 15=3c 16=19 17=3c 18=19 19=00 1a=37 1b=3c 1c=3c 1d=3c 1e=3c
1f=3c 20=19 21=00 22=37 23=3c 24=3c 25=3c 26=3c 27=3c 28=19 29=00
2a=37 2b=3c 2c=3c 2d=3c 2e=3c 2f=3c 30=19 31=00 32=37 33=3c 34=3c
35=3c 36=3c 37=3c 38=19 39=00 3a=37 3b=3c 3c=3c 3d=3c 3e=19 3f=3c
40=19 41=00 42=37 43=3c 44=3c 45=3c 46=3c 47=3c 48=19 49=00 4a=37
4b=3c 4c=3c 4d=3c 4e=19 4f=19 50=19 51=00 52=37 53=3c 54=3c 55=3c
56=3c 57=3c 58=19 59=00 5a=37 5b=3c 5c=3c 5d=3c 5e=3c 5f=3c 60=19
61=00 62=37 63=3c 64=3c 65=3c 66=3c 67=3c 68=19 69=00 6a=37 6b=3c
6c=3c 6d=3c 6e=3c 6f=3c 70=19 71=00 72=37 73=3c 74=3c 75=3c 76=3c
77=3c 78=19 79=00 7a=37 7b=3c 7c=3c 7d=3c 7e=3c 7f=3c 80=19 81=00
82=37 83=3c 84=3c 85=3c 86=3c 87=3c 88=19 89=00 8a=37 8b=3c 8c=3c
8d=3c 8e=3c 8f=3c 90=19 91=00 92=37 93=3c 94=3c 95=3c 96=3c 97=3c
98=19 99=00 9a=37 9b=3c 9c=3c 9d=3c 9e=3c 9f=3c a0=19 a1=00 a2=37
a3=3c a4=3c a5=3c a6=3c a7=3c a8=19 a9=00 aa=37 ab=3c ac=3c ad=3c
ae=3c af=3c b0=19 b1=00 b2=37 b3=3c b4=3c b5=3c b6=3c b7=3c b8=19
b9=00 ba=37 bb=3c bc=3c bd=3c be=3c bf=3c c0=19 c1=00 c2=37 c3=3c
c4=3c c5=3c c6=3c c7=3c c8=19 c9=00 ca=37 cb=3c cc=3c cd=3c ce=3c
cf=3c d0=19 d1=00 d2=37 d3=3c d4=3c d5=3c d6=3c d7=3c d8=19 d9=00
da=37 db=3c dc=3c dd=3c de=3c df=3c e0=19 e1=00 e2=37 e3=3c e4=3c
e5=3c e6=3c e7=3c e8=19 e9=00 ea=37 eb=3c ec=3c ed=3c ee=3c ef=3c
f0=19 f1=00 f2=37 f3=3c f4=3c f5=3c f6=3c f7=3c f8=19 f9=00 fa=37
fb=3c fc=3c fd=3c fe=19 ff=3c
ppb1 at pci0 dev 16 function 0 "DEC 21152 PCI-PCI" rev 0x03
pci2 at ppb1 bus 2
siop0 at pci2 dev 4 function 0 "Symbios Logic 53c875" rev 0x26: apic 2
int 17 (irq 9), using 4K of on-board RAM
scsibus1 at siop0: 16 targets
sd0 at scsibus1 targ 0 lun 0: <QUANTUM, ATLAS IV 9 WLS, 0707> SCSI3
0/direct fixed
sd0: 8683MB, 13816 cyl, 4 head, 321 sec, 512 bytes/sec, 17783240 sec total
pcn0 at pci2 dev 5 function 0 "AMD 79c970 PCnet-PCI" rev 0x36,
Am79c972, rev 6: apic 2 int 18 (irq 9), address 00:10:83:34:8d:a6
lxtphy0 at pcn0 phy 1: LXT970 10/100 PHY, rev. 1
ukphy0 at pcn0 phy 31: Generic IEEE 802.3u media interface, rev. 1:
OUI 0x000001, model 0x001a
re0 at pci0 dev 17 function 0 "US Robotics USR997902" rev 0x10: apic 2
int 18 (irq 9), address 00:c0:49:fa:2b:c4
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 0
ral0 at pci0 dev 18 function 0 "Ralink RT2560" rev 0x01: apic 2 int 16
(irq 9), address 00:0e:2e:57:84:de
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
pciide1 at pci0 dev 19 function 0 "CMD Technology AAR-1210SA" rev 0x02: DMA
pciide1: using apic 2 int 17 (irq 9) for native-PCI interrupt
pciide1: port 0: device present, speed: 1.5Gb/s
wd0 at pciide1 channel 0 drive 0: <SAMSUNG SP1614C>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide1:0:0): using BIOS timings, Ultra-DMA mode 7
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0/16: using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 0 netmask 0 ttymask 0
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
apm0: disconnected
siop0: target 0 now using tagged 16 bit 20.0 MHz 16 REQ/ACK offset xfers
dkcsum: sd0 matches BIOS drive 0x80
dkcsum: wd0 matches BIOS drive 0x81
root on sd0a
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02
pppoe0: phase establish
pppoe0: phase authenticate
pppoe0: phase network

Reply | Threaded
Open this post in threaded view
|

Re: dhcpd: Multiple interfaces match the same shared network

Rogier Krieger
On 1/9/06, Alexander Farber <[hidden email]> wrote:
> 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:

As mentioned in dhcpd.conf(5), a shared network is a set of (logical)
networks that lives on a single physical network (i.e. an interface).
Your case describes something different: two logical networks, each
present on a separate physical network.

I suppose adjusting the shared-network declaration will make the error
disappear while doing nothing about your issues on your wireless net.

Cheers,

Rogier

--
If you don't know where you're going, any road will get you there.

Reply | Threaded
Open this post in threaded view
|

Re: dhcpd: Multiple interfaces match the same shared network

Rod.. Whitworth
In reply to this post by Alexander Farber
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.

Reply | Threaded
Open this post in threaded view
|

Re: dhcpd: Multiple interfaces match the same shared network

Alexander Farber
Argh I should have reread the (man dhcpd.conf", sorry!
This has helped, thank you

On 1/9/06, Rod.. Whitworth <[hidden email]> wrote:

> 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;
>         }
> }