Bonjour,
Sous Debian 12 bookworm, j’ai installé le paquet kea pour configurer un serveur DHCP.
Le paquet kea est un méta-paquet qui installe automatiquement kea-dhcp4-server et kea-dhcp6-server.
Voici ma configuration de /etc/kea/kea-dhcp4.conf :
{
"Dhcp4": {
"interfaces-config": {
"interfaces": [
"enP1p1s0"
]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/run/kea/kea4-ctrl-socket"
},
"lease-database": {
"type": "memfile",
"lfc-interval": 3600,
"persist": true,
"name": "/var/lib/kea/kea-leases4.csv"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"renew-timer": 900,
"rebind-timer": 1800,
"valid-lifetime": 28800,
"option-data": [
{
"name": "domain-name-servers",
"data": "192.0.2.252, 192.0.2.253"
}
],
"subnet4": [
{
"subnet": "192.0.2.0/24",
"pools": [ { "pool": "192.0.2.1 - 192.0.2.199" } ],
"option-data": [
{
"name": "routers",
"data": "192.0.2.254"
}
]
}
],
"loggers": [
{
"name": "kea-dhcp4",
"output_options": [
{
"output": "/var/log/kea/kea-dhcp4.log",
"maxsize": 1048576,
"maxver": 10
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}
}
et celle de /etc/kea/kea-dhcp6.conf :
{
"Dhcp6": {
"interfaces-config": {
"interfaces": [
"enP1p1s0"
]
},
"control-socket": {
"socket-type": "unix",
"socket-name": "/run/kea/kea6-ctrl-socket"
},
"lease-database": {
"type": "memfile",
"lfc-interval": 3600,
"persist": true,
"name": "/var/lib/kea/kea-leases6.csv"
},
"expired-leases-processing": {
"reclaim-timer-wait-time": 10,
"flush-reclaimed-timer-wait-time": 25,
"hold-reclaimed-time": 3600,
"max-reclaim-leases": 100,
"max-reclaim-time": 250,
"unwarned-reclaim-cycles": 5
},
"renew-timer": 1000,
"rebind-timer": 2000,
"preferred-lifetime": 3000,
"valid-lifetime": 28800,
"option-data": [
{
"name": "dns-servers",
"data": "2001:db8:192:0::252, 2001:db8:192:0::253"
}
],
"subnet6": [
{
"subnet": "2001:db8:192:0::/64",
"pools": [ { "pool": "2001:db8:192:0::1 - 2001:db8:192:0::199" } ]
}
],
"loggers": [
{
"name": "kea-dhcp6",
"output_options": [
{
"output": "/var/log/kea/kea-dhcp6.log",
"maxsize": 1048576,
"maxver": 10
}
],
"severity": "INFO",
"debuglevel": 0
}
]
}
}
J’utilise systemd pour gérer le lancement de kea-dhcp4-server et de kea-dhcp6-server :
# systemctl restart kea-dhcp4-server.service
# systemctl restart kea-dhcp6-server.service
Mon problème est que kea-dhcp4-server n’écoute pas sur le port 67 (bootps) les requêtes des futurs clients DHCP.
Alors que kea-dhcp6-server, lui écoute bien sur le port 547 (dhcp6-server) pour l’Ipv6 !
Voici la sortie de ss :
root@server:/etc/kea# ss -lup
State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
UNCONN 0 0 192.168.0.19%enP2p1s0:bootpc 0.0.0.0:* users:(("systemd-network",pid=289,fd=18))
UNCONN 0 0 127.0.0.1:53001 0.0.0.0:* users:(("kea-dhcp-ddns",pid=1567,fd=13))
UNCONN 0 0 [fe80::146c:dfff:feb9:9df0]%enP2p1s0:dhcpv6-client [::]:* users:(("systemd-network",pid=289,fd=21))
UNCONN 0 0 [fe80::1494:98ff:fea9:d341]%enP1p1s0:dhcpv6-server [::]:* users:(("kea-dhcp6",pid=3431,fd=15))
UNCONN 0 0 [ff02::1:2]%enP1p1s0:dhcpv6-server [::]:* users:(("kea-dhcp6",pid=3431,fd=16))
Savez-vous quel est le problème ?
Merci à vous.