Add resources DHCPD exercise.

This commit is contained in:
Nicolás A. Ortega Froysa 2022-05-18 19:22:35 +02:00
parent fccb211da1
commit 7c948ebb6f
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,10 @@
option domain-name-servers 8.8.8.8, 8.8.4.4;
option routers 172.21.0.100;
option subnet-mask 255.255.255.0;
subnet 192.168.37.0 netmask 255.255.255.0 {
range 192.168.37.100 192.168.37.150;
}
host DESKTOP-U4F9M9L {
hardware ethernet 7C:10:C9:25:95:E1;
fixed-address 192.168.37.201;
}

View File

@ -0,0 +1,31 @@
Internet Systems Consortium DHCP Server 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.
No subnet declaration for enp2s0 (172.16.37.4).
** Ignoring requests on enp2s0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface enp2s0 is attached. **
Listening on LPF/enp3s0/00:4f:4e:0c:cf:c3/192.168.37.0/24
Sending on LPF/enp3s0/00:4f:4e:0c:cf:c3/192.168.37.0/24
Sending on Socket/fallback/fallback-net
Server starting service.
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPREQUEST for 172.16.37.3 from 7c:10:c9:28:29:b5 via enp3s0: ignored (not authoritative).
DHCPDISCOVER from 7c:10:c9:28:29:b5 via enp3s0
DHCPOFFER on 192.168.37.101 to 7c:10:c9:28:29:b5 (LAPTOP-NIMQD9EE) via enp3s0
DHCPREQUEST for 192.168.37.101 (192.168.37.2) from 7c:10:c9:28:29:b5 (LAPTOP-NIMQD9EE) via enp3s0
DHCPACK on 192.168.37.101 to 7c:10:c9:28:29:b5 (LAPTOP-NIMQD9EE) via enp3s0

View File

@ -0,0 +1,24 @@
Internet Systems Consortium DHCP Server 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 0 deleted host decls to leases file.
Wrote 0 new dynamic host decls to leases file.
Wrote 1 leases to leases file.
No subnet declaration for enp2s0 (172.16.37.4).
** Ignoring requests on enp2s0. If this is not what
you want, please write a subnet declaration
in your dhcpd.conf file for the network segment
to which interface enp2s0 is attached. **
Listening on LPF/enp3s0/00:4f:4e:0c:cf:c3/192.168.37.0/24
Sending on LPF/enp3s0/00:4f:4e:0c:cf:c3/192.168.37.0/24
Sending on Socket/fallback/fallback-net
Server starting service.
uid lease 192.168.37.100 for client 7c:10:c9:25:95:e1 is duplicate on 192.168.37.0/24
DHCPREQUEST for 192.168.37.201 from 7c:10:c9:25:95:e1 via enp3s0
DHCPACK on 192.168.37.201 to 7c:10:c9:25:95:e1 via enp3s0