problem with configuring dhcpd for "unknown" networks
Boris Behrens
bb at kervyn.de
Wed Feb 20 14:02:58 UTC 2019
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 "example.com";
option domain-name-servers 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 dus-ns01.users.example.com,
dus-ns02.users.example.com, fra-ns01.example.com, fra-ns02.example.com;
option domain-name "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 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 127.0.0.1/32 scope host venet0
valid_lft forever preferred_lft forever
inet 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20190220/b00e9d01/attachment.html>
More information about the dhcp-users
mailing list