Strange DHCPd problem

Andrew P. infofarmer at gmail.com
Wed Oct 12 06:46:03 PDT 2005


On 10/12/05, bsd_mathias at haas.se <bsd_mathias at haas.se> wrote:
> I've got a FreeBSD 5.3 installation with two 3c905XL NICs and IP-Filter.
> XL0 is the external interface (which gets an IP-address via 'dhclient' and
> 'dhcpd' is assigned to the 10.0.0.0 network on XL1. If I remove the
> network cable to XL0, strange things happens on the internal XL1 Network.
>
> I can ping and SSH to the server but Samba-access and webservices on the
> server become sporadic at best. Let me repeat that. I can't access samba
> shares when I remove the network cable to the *external interface* on my
> BSD server. The clients can renew IP-adresses from the dhcpd server.
>
> I did manage to solve the problem, but I don't understand how this could
> have given me this type of problem. Here's my original dhcpd.conf.
>
> option domain-name "malcolm.com";
> option domain-name-servers 10.0.0.1;
>
> default-lease-time 28800;
> max-lease-time 56600;
> authoritative;
> ddns-update-style none;
>
> # Malcolms subnet declaration.
> subnet 10.0.0.0 netmask 255.255.255.0 {
>   range 10.0.0.10 10.0.0.100;
>   option routers 10.0.0.1;
>   option domain-name-servers 10.0.0.1;
>   deny client-updates;
> }
>
> # No service will be given on this subnet, but declaring it helps the
> # DHCP server to understand the network topology.
>
> subnet 213.200.128.0 netmask 255.255.224.0 {
> }
>
>
> Removing the bottom two lines (subnet 213..) suddenly solved the problem!
> My guess was that somehow dhcpd gets screwed up if it couldn't find the
> network that was defined in dhcpd.conf. But why does that hamper Samba or
> other webservices running on the server? I'm pretty puzzled.
>
> Regards,
> Mathias.
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>

A classic explanation would be samba (and other
services) dependence on basic network services
such as DNS. That doesn't give an idea about
dhcpd anyway...


More information about the freebsd-questions mailing list