Portál AbcLinuxu, 9. května 2025 00:30
============================================== /var/log/messages -- výpis při spouątění dhcpd ---------------------------------------------- dhcpd: Listening on LPF/eth0/00:0e:2e:27:a5:5b/192.168.1.0 dhcpd: Listening on LPF/eth0/00:0e:2e:27:a5:5b/192.168.1.0 dhcpd: Sending on LPF/eth0/00:0e:2e:27:a5:5b/192.168.1.0 dhcpd: Sending on Socket/fallback/fallback-net dhcpd: dhcpd: Sending on LPF/eth0/00:0e:2e:27:a5:5b/192.168.1.0 dhcpd: Sending on Socket/fallback/fallback-net dhcpd: dhcpd startup succeeded ============================================== ================================================= /var/log/messages -- výpis při výpůjčce adresy IP ------------------------------------------------- dhcpd: DHCPDISCOVER from 00:0c:6e:51:ad:3d via eth0 dhcpd: DHCPOFFER on 192.168.1.2 to 00:0c:6e:51:ad:3d via eth0 dhcpd: DHCPREQUEST for 192.168.1.2 from 00:0c:6e:51:ad:3d via eth0 dhcpd: DHCPACK on 192.168.1.2 to 00:0c:6e:51:ad:3d via eth0 dhcpd: DHCPREQUEST for 192.168.1.2 from 00:0c:6e:51:ad:3d via eth0 dhcpd: DHCPACK on 192.168.1.2 to 00:0c:6e:51:ad:3d via eth0 =================================================Ovąem soubor /var/state/dhcp/dhcpd.leases zůstává i po výpůjčce ve stavu, jaký byl bezprostředně po spouątění dhcpd:
============================ /var/state/dhcp/dhcpd.leases ---------------------------- # All times in this file are in UTC (GMT), not your local timezone. This is # not a bug, so please don't ask about it. There is no portable way to # store leases in the local timezone, so please don't request this as a # feature. If this is inconvenient or confusing to you, we sincerely # apologize. Seriously, though - don't ask. # The format of this file is documented in the dhcpd.leases(5) manual page. ============================Pro úplnost jeątě připojuji konfigurační soubor:
=============== /etc/dhcpd.conf --------------- authoritative; #ddns-update-style ad-hoc; # max-lease-time 43200; default-lease-time 21600; option subnet-mask 255.255.255.0; option domain-name-servers 192.168.1.1; option domain-name "doma.cz"; option time-offset 1; # subnet 192.168.1.0 netmask 255.255.255.0 { } group { use-host-decl-names true; host xenia { hardware ethernet 00:0C:6E:51:AD:3D; fixed-address 192.168.1.2; } } # end ===============Děkuji za pomoc. Josef
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.