problem with configuring dhcpd for "unknown" networks

perl-list perl-list at network1.net
Wed Feb 20 14:17:33 UTC 2019


You need to have: 

subnet 10.10.10.31 netmask 255.255.255.255 { 
} 

in your config. That, obtusely, tells the server to listen on that interface. Not sure where you came up with the 10.200.200.31 address - i don't see that listed in your network config anywhere. 

> From: "Boris Behrens" <bb at kervyn.de>
> To: "Users of ISC DHCP" <dhcp-users at lists.isc.org>
> Sent: Wednesday, February 20, 2019 9:02:58 AM
> Subject: problem with configuring dhcpd for "unknown" networks

> Hi,
> I would like to run a dhcpd behind a dhcp relay. And it does not have any
> address from the network it should serve.
> These are the dhcp and network config:
> --
> # cat /etc/dhcp/dhcpd.conf
> local-address 10.200.200.31;
> subnet 10.200.200.31 netmask 255.255.255.255 {
> # I thought this one would help, but it doesn't
> }

> authoritative;
> option domain-name " [ http://example.com/ | example.com ] ";
> option domain-name-servers [ http://ns01.example.com/ | ns01.example.com ] ;

> default-lease-time 3600; # 1 std
> max-lease-time 86400; # 24 std

> log-facility local7;

> subnet 10.20.0.0 netmask 255.255.128.0 {
> range 10.20.0.1 10.20.127.250;
> option domain-name-servers [ http://dus-ns01.users.example.com/ |
> dus-ns01.users.example.com ] , [ http://dus-ns02.users.example.com/ |
> dus-ns02.users.example.com ] , [ http://fra-ns01.example.com/ |
> fra-ns01.example.com ] , [ http://fra-ns02.example.com/ | fra-ns02.example.com
> ] ;
> option domain-name " [ http://users.example.com/ | users.example.com ] ";
> option routers 10.20.127.254;
> option broadcast-address 10.20.127.255;
> default-lease-time 3600; # 1 std
> max-lease-time 86400; # 24 std
> }
> --
> # ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group
> default qlen 1000
> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
> inet [ http://127.0.0.1/8 | 127.0.0.1/8 ] scope host lo
> valid_lft forever preferred_lft forever
> inet6 ::1/128 scope host
> valid_lft forever preferred_lft forever
> 2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue
> state UNKNOWN group default
> link/void
> inet [ http://127.0.0.1/32 | 127.0.0.1/32 ] scope host venet0
> valid_lft forever preferred_lft forever
> inet [ http://10.10.10.31/32 | 10.10.10.31/32 ] brd 10.10.10.31 scope global
> venet0:0
> valid_lft forever preferred_lft forever
> --
> But I always the the error "Not configured to listen on any interfaces!".

> How do I tell the dhcpd to just listen to the interface and serve dhcp requests
> without giving it an address in this network?

> Cheers
> Boris

> --
> Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im
> groüen Saal.

> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190220/594c10a2/attachment.html>


More information about the dhcp-users mailing list