KaiRo - Robert Kaiser wrote:
> subnet xx.xx.xx.0/25 [X.0/25] (128 addresses, netmask 255.255.255.128)
>
> |---------| X.1 X.2 |------------------|
> ---| gateway |------------| eth0 --- eth1 |--- clients (X.34-X.56)
> |---------| | | | |
> | br0 ---+-- eth2 |--- clients (X.66-X.88)
> | X.3 | |
> | --- eth3 |--- clients (X.98-X.120)
> |------------------|
> Linux server
>
> How do I tell DHCP to assign an IP on the bridged subnet?
>
> I have 4 subnet declarations in dhcpd.conf:
>
if you don't do dynamic dhcp on more than one subnet
or if all your dhcp entries are mac-locked you could put this in your dhcpd.conf
# Shared network declaration is used to group subnets which share the same
# physical network together. The name is specified so that the shared
# network can be referred to in log messages - it serves no other function.
shared-network Mystuff {
subnet xx.xx.xx.0 netmask 255.255.255.128 {
server-identifier xx.xx.xx.2;
option routers xx.xx.xx.1;
}
subnet 192.168.23.32 netmask 255.255.255.224 {
server-identifier 192.168.23.33;
option routers 192.168.23.33;
}
subnet 192.168.23.64 netmask 255.255.255.224 {
server-identifier 192.168.23.65;
option routers 192.168.23.65;
}
subnet 192.168.23.96 netmask 255.255.255.224 {
server-identifier 192.168.23.97;> option routers 192.168.23.97 ;
}
}
Hope this help
>
> Those are followed by a bunch of host blocks like:
> host test {
> hardware ethernet zz:zz:zz:zz:zz:zz;
> fixed-address 192.168.23.85;
> }
> [same for addresses on the bridged public subnet]
>
> The first problem is seen in syslog when starting dhcpd:
>
> dhcpd: Multiple interfaces match the same subnet: eth0 br0
> dhcpd: Multiple interfaces match the same shared network: eth0 br0
> dhcpd: Listening on Socket/eth3/192.168.23.96/27
> dhcpd: Sending on Socket/eth3/192.168.23.96/27
> dhcpd: Listening on Socket/eth2/192.168.23.64/27
> dhcpd: Sending on Socket/eth2/192.168.23.64/27
> dhcpd: Listening on Socket/eth1/192.168.23.32/27
> dhcpd: Sending on Socket/eth1/192.168.23.32/27
> dhcpd: Listening on Socket/br0/xx.xx.xx.0/25
> dhcpd: Sending on Socket/br0/xx.xx.xx.0/25
>
> Then, for 192.168.23.xx addresses, everything works, see e.g.
>
> dhcpd: DHCPDISCOVER from zz:zz:zz:zz:zz:zz via eth2
> dhcpd: DHCPOFFER on 192.168.23.85 to zz:zz:zz:zz:zz:zz via eth2
> dhcpd: DHCPREQUEST for 192.168.23.85 (192.168.23.65) from
> zz:zz:zz:zz:zz:zz via eth2
> dhcpd: DHCPACK on 192.168.23.85 to zz:zz:zz:zz:zz:zz via eth2
>
> OTOH, dhcpd thinks it shouldn't hand out the public addresses because it
> fails to know the bridged subnet does apply to the eth1-eth3 subnets:
>
> dhcpd: DHCPDISCOVER from 00:50:da:74:7f:79 via eth1: network
> 192.168.23.32/27: no free leases
> last message repeated 2 times
>
> How can I get dhcpd to offer the public addresses on eth1-eth3?
>
> [The Linux system is SuSE 9.1 with a self-compiled Linux-2.6.8.1, btw.]
>
>
> Thanks in advance for your help,
>
> Robert Kaiser
--
Weill Philippe - Administrateur Systeme et Reseaux
CNRS Service Aeronomie - Universite Pierre et Marie Curie -
Tour 45/46 3e Etage B302 - 4 Place Jussieu - 75252 Paris Cedex 05 - FRANCE
Email

(E-Mail Removed) | tel:+33 0144274759 Fax:+33 0144273776