Tip
This is the documentation for the 20.08 version. Looking for the documentation of the latest version? Have a look here.
DHCP Service Control and Status¶
Enable the DHCP Service¶
Enable the DHCP4 server:
tnsr(config)# dhcp4 enable
tnsr(config)#
Disable the DHCP Service¶
Similar to the DHCP enable
command, disable the DHCP4 service from
configuration mode:
tnsr(config)# dhcp4 disable
tnsr(config)#
Check the DHCP Service Status¶
Check the status of the DHCP services from configuration mode:
tnsr(config)# service dhcp status
DHCPv4 server: active
DHCPv6 server: inactive
DHCP DDNS: inactive
Control Agent: inactive
Kea DHCPv4 configuration file: /etc/kea/kea-dhcp4.conf
Kea DHCPv6 configuration file: /etc/kea/kea-dhcp6.conf
Kea DHCP DDNS configuration file: /etc/kea/kea-dhcp-ddns.conf
Kea Control Agent configuration file: /etc/kea/kea-ctrl-agent.conf
keactrl configuration file: /etc/kea/keactrl.conf
View the DHCP Configuration¶
View the current Kea DHCP Daemon and Control TNSR Configuration:
tnsr# show kea
View the current Kea DHCP Daemon TNSR Configuration:
tnsr# show kea dhcp4
View the current Kea DHCP daemon configuration file:
tnsr# show kea dhcp4 config-file
View the current Kea Control TNSR Configuration:
tnsr# show kea keactrl
View the current Kea Control Configuration file:
tnsr# show kea keactrl config-file
View the DHCP Lease Database¶
View the database of active DHCP leases:
tnsr# show kea dhcp4 leases
IP address HW address Hostname Subnet ID Start End State
---------- ----------------- ---------- ---------- ----------------- ----------------- -------
10.2.0.129 00:0c:29:4c:b3:9b mintclient 1 06/19/20 14:55:11 06/19/20 16:55:11 default
10.2.0.130 00:0c:29:41:dc:ac graybeard 1 05/28/20 11:21:19 05/28/20 15:47:59 expired
10.2.0.131 00:0c:29:13:54:93 doctor 1 06/19/20 15:22:18 06/19/20 17:22:18 default