dieser Anleitung für Ubuntu folgend habe ich auf meiner proxmox Kiste (root-server) einen dhcp Server mit dieser dhcpd.conf aufgesetzt: (Kommentare habe ich mal entfernt)
Code: Alles auswählen
# Erstes Subnetz
subnet 10.1.0.0 netmask 255.255.255.240 {
range 10.1.0.2 10.1.0.10;
option routers 10.1.0.1;
interface vmbr0;
# Lease-Time (in Sekunden)
default-lease-time 600;
max-lease-time 7200;
option domain-name "redhat.home";
option broadcast-address 10.1.0.15;
option subnet-mask 255.255.255.240;
}
# Zweites Subnetz
subnet 10.2.0.0 netmask 255.255.255.240 {
range 10.2.0.2 10.2.0.10;
option routers 10.2.0.1;
# Lease-Time (in Sekunden)
default-lease-time 600;
max-lease-time 7200;
option domain-name "ubuntu.home";
option broadcast-address 10.2.0.15;
option subnet-mask 255.255.255.240;
}
# Drittes Subnetz
subnet 10.3.0.0 netmask 255.255.255.240 {
range 10.3.0.2 10.3.0.10;
option routers 10.3.0.1;
# Lease-Time in (in Sekunden)
default-lease-time 600;
max-lease-time 7200;
option domain-name "debian.home";
option broadcast-address 10.3.0.15;
option subnet-mask 255.255.255.240;
}
# Rogue-DHCP-Server nicht erlauben
authoritative;
Code: Alles auswählen
systemctl status isc-dhcp-server.service
● isc-dhcp-server.service - LSB: DHCP server
Loaded: loaded (/etc/init.d/isc-dhcp-server; generated)
Active: failed (Result: exit-code) since Sun 2022-03-27 21:27:03 CEST; 25min ago
Docs: man:systemd-sysv-generator(8)
Process: 415704 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, status=1/FAILURE)
CPU: 30ms
Mar 27 21:27:01 morituri dhcpd[415719]: before submitting a bug. These pages explain the proper
Mar 27 21:27:01 morituri dhcpd[415719]: process and the information we find helpful for debugging.
Mar 27 21:27:01 morituri dhcpd[415719]:
Mar 27 21:27:01 morituri dhcpd[415719]: exiting.
Mar 27 21:27:03 morituri isc-dhcp-server[415704]: Starting ISC DHCPv4 server: dhcpdcheck syslog for diagnostic>
Mar 27 21:27:03 morituri isc-dhcp-server[415726]: failed!
Mar 27 21:27:03 morituri isc-dhcp-server[415727]: failed!
Mar 27 21:27:03 morituri systemd[1]: isc-dhcp-server.service: Control process exited, code=exited, status=1/FA>
Mar 27 21:27:03 morituri systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
Mar 27 21:27:03 morituri systemd[1]: Failed to start LSB: DHCP server.
Code: Alles auswählen
The process' exit code is 'exited' and its exit status is 1.
Mar 27 21:27:03 morituri systemd[1]: isc-dhcp-server.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ The unit isc-dhcp-server.service has entered the 'failed' state with result 'exit-code'.
Mar 27 21:27:03 morituri systemd[1]: Failed to start LSB: DHCP server.
░░ Subject: A start job for unit isc-dhcp-server.service has failed
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit isc-dhcp-server.service has finished with a failure.
░░
░░ The job identifier is 2666 and the job result is failed.
Mar 27 21:39:57 morituri sshd[417271]: Accepted password for root from 46.38.234.145 port 39234 ssh2
Mar 27 21:39:57 morituri sshd[417271]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
Mar 27 21:39:57 morituri systemd-logind[526]: New session 71 of user root.
░░ Subject: A new session 71 has been created for user root
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░ Documentation: sd-login(3)
░░
░░ A new session with the ID 71 has been created for the user root.
░░
░░ The leading process of the session is 417271.
Mar 27 21:39:57 morituri systemd[1]: Started Session 71 of user root.
░░ Subject: A start job for unit session-71.scope has finished successfully
░░ Defined-By: systemd
░░ Support: https://www.debian.org/support
░░
░░ A start job for unit session-71.scope has finished successfully.
░░
░░ The job identifier is 2729.
Ich möchte 3 10-er subnets mit CIDR /28 und dhcp einrichten und vorhandene vms ggf mit ihrer mac noch an eine ip-adresse binden . als Network-DEVICE FÜR IPV4 UND IPV4 IST vmbr0 eingetragen.
DANKE
hcx23