User Tools

Site Tools


сервис_dhcp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
сервис_dhcp [2024/05/06 17:27]
val [isc-kea]
сервис_dhcp [2026/03/29 11:20] (current)
val [Debian/Ubuntu]
Line 110: Line 110:
   max-lease-time 7200;   max-lease-time 7200;
 } }
 +
 +#host node3 {hardware ethernet 08:​00:​27:​12:​34:​53;​fixed-address 192.168.X.3;​}
 +#host node4 {hardware ethernet 08:​00:​27:​12:​34:​54;​fixed-address 192.168.X.4;​}
 +#host node5 {hardware ethernet 08:​00:​27:​12:​34:​55;​fixed-address 192.168.X.5;​}
 +#host node6 {hardware ethernet 08:​00:​27:​12:​34:​56;​fixed-address 192.168.X.6;​}
 +#host node7 {hardware ethernet 08:​00:​27:​12:​34:​57;​fixed-address 192.168.X.7;​}
 </​code>​ </​code>​
  
Line 189: Line 195:
 </​code>​ </​code>​
  
 +===== Сообщение от клиента,​ что кто-то уже занял IP =====
 +<​code>​
 +gate# journalctl -f
 +...
 +Mar 29 11:15:21 gate.corp13.un dhcpd[711]: Abandoning IP address 192.168.13.107:​ declined.
 +Mar 29 11:15:21 gate.corp13.un dhcpd[711]: DHCPDECLINE of 192.168.13.107 from 08:​00:​27:​d5:​6c:​15 (client1) via eth0: abandoned
 +</​code>​
 ===== Мониторинг выданных адресов ===== ===== Мониторинг выданных адресов =====
  
 +  * [[https://​stackoverflow.com/​questions/​2142824/​parse-a-dhcpd-lease-file-with-bash|Parse a dhcpd.lease File with Bash]]
 ==== Debian/​Ubuntu ==== ==== Debian/​Ubuntu ====
 <​code>​ <​code>​
Line 292: Line 306:
     "​subnet4":​ [     "​subnet4":​ [
         {         {
 +            "​id":​ 1,
             "​subnet":​ "​192.168.100+X.0/​24",​             "​subnet":​ "​192.168.100+X.0/​24",​
             "​pools":​ [ { "​pool":​ "​192.168.100+X.100 - 192.168.100+X.109"​ } ],             "​pools":​ [ { "​pool":​ "​192.168.100+X.100 - 192.168.100+X.109"​ } ],
сервис_dhcp.1715005656.txt.gz · Last modified: 2024/05/06 17:27 by val