[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

dhcpd with two NICs



I am using OpenBSD 3.1 and recompiled the kernel to use the options
GATEWAY and IPFORWARDING.

I have two NICS for my dhcpd fxp1 = 10.0.40.1 and xl0 = 10.0.41.1

To start the dhcpd server, I have the command: #dhcpd fxp1 xl0.

My dhcpd.conf is below (some fields are changed).

# dhcpd.conf
#
option domain-name "certain.domain.name";
option domain-name-servers 1.2.3.4;
# To be handled by fxp1
subnet 10.0.40.0 netmask 255.255.255.0 {
        option broadcast-address 10.0.40.255;
        range 10.0.40.100 10.0.40.250;
        option routers 10.0.40.1;
        option subnet-mask 255.255.255.0;
        option netbios-name-servers 10.0.40.1;
        }
# To be handled by xl0
subnet 10.0.41.0 netmask 255.255.255.0 {
        option broadcast-address 10.0.41.255;
        range 10.0.41.100 10.0.41.250;
        option routers 10.0.41.1;
        option subnet-mask 255.255.255.0;
        option netbios-name-servers 10.0.41.1;
        }

But only machines connected to 10.0.40 subnet are getting their IPs while
those of 10.0.41 are not. Everytime a machine under the 10.0.41 tries to
lease an IP, a message would appear in the server

/bsd: arp: attempt to add entry for 10.0.40.125 on fxp1 by <MAC address>
on xl0

My dhcpd.interfaces has a line
fxp1 xl0

Where I am wrong?

TIA.


Allen S. Dahili
MSU-IIT