[apiclo@bogon ~]$ sudo systemctl status dhcpd.service ● dhcpd.service - DHCPv4 Server Daemon Loaded: loaded (/usr/lib/systemd/system/dhcpd.service; disabled; vendor preset: disabled) Active: active (running) since 四 2025-02-27 13:51:00 CST; 9min ago Docs: man:dhcpd(8) man:dhcpd.conf(5) Main PID: 17215 (dhcpd) Status: "Dispatching packets..." Tasks: 1 CGroup: /system.slice/dhcpd.service └─17215 /usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid
2月 27 13:51:00 bogon dhcpd[17215]: ** Ignoring requests on ens33. If this is not what 2月 27 13:51:00 bogon dhcpd[17215]: you want, please write a subnet declaration 2月 27 13:51:00 bogon dhcpd[17215]: in your dhcpd.conf file for the network segment 2月 27 13:51:00 bogon dhcpd[17215]: to which interface ens33 is attached. ** 2月 27 13:51:00 bogon dhcpd[17215]: 2月 27 13:51:00 bogon dhcpd[17215]: Sending on Socket/fallback/fallback-net 2月 27 13:51:08 bogon dhcpd[17215]: DHCPDISCOVER from 00:0c:29:87:26:09 via ens36 2月 27 13:51:09 bogon dhcpd[17215]: DHCPOFFER on 192.168.20.10 to 00:0c:29:87:26:09 via ens36 2月 27 13:51:09 bogon dhcpd[17215]: DHCPREQUEST for 192.168.20.10 (192.168.20.1) from 00:0c:29:...ns36 2月 27 13:51:09 bogon dhcpd[17215]: DHCPACK on 192.168.20.10 to 00:0c:29:87:26:09 via ens36 Hint: Some lines were ellipsized, use -l to show in full.
[siralop@localhost ~]$ sudo dhclient -v ens36 Internet Systems Consortium DHCP Client 4.2.5 Copyright 2004-2013 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/ens36/00:0c:29:87:26:09 Sending on LPF/ens36/00:0c:29:87:26:09 Sending on Socket/fallback DHCPDISCOVER on ens36 to 255.255.255.255 port 67 interval 3 (xid=0x24b00029) DHCPREQUEST on ens36 to 255.255.255.255 port 67 (xid=0x24b00029) DHCPOFFER from 192.168.20.1 DHCPACK from 192.168.20.1 (xid=0x24b00029) bound to 192.168.20.10 -- renewal in 3594 seconds.