Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


fortgeschrittene:kea-dhcp6

Pakete:

  • Debian 12: kea-dhcp6-server
/etc/kea/kea-dhcp6.conf
{
    "Dhcp6": {
        "valid-lifetime": 4000,
        "renew-timer": 1000,
        "rebind-timer": 2000,
        "preferred-lifetime": 3000,
        "interfaces-config": {
            "interfaces": [
                "server-eth0/2001:db8:100:0:9c7b:86ff:fe7d:919c"
            ]
        },
        "lease-database": {
            "type": "memfile",
            "persist": true,
            "name": "/var/lib/kea/dhcp6.leases"
        },
        "subnet6": [
            {
                "subnet": "fd00:100::/64",
                "rapid-commit": true,
                "pools": [
                    {
                        "pool": "fd00:100::1-fd00:100::ffff"
                    }
                ]
            },
            {
                "subnet": "fd00:200::/64",
                "rapid-commit": true,
                "pools": [
                    {
                        "pool": "fd00:200::1-fd00:200::ffff"
                    }
                ]
            }
        ],
        "loggers": [
            {
                "name": "kea-dhcp6",
                "output_options": [
                    {
                        "output": "/var/log/kea-dhcp6.log"
                    }
                ],
                "severity": "INFO",
                "debuglevel": 0
            }
        ]
    }
}
kea-dhcp6 -t /etc/kea/kea-dhcp6.conf
systemctl restart kea-dhcp6-server.service

bzw.

systemctl kill --signal=HUP kea-dhcp6-server.service
journalctl -fu kea-dhcp6-server.service

Reload für kea-dhcp6 aktivieren:

systemctl edit kea-dhcp6-server.service
/etc/systemd/system/kea-dhcp6-server.service.d/exec_reload.conf
[Service]
ExecReload=kill -HUP $MAINPID
fortgeschrittene/kea-dhcp6.txt · Zuletzt geändert: 2023/12/20 14:54 von ingo_wichmann