arch linux som router
hej jeg sidder og arbejder med min "nye" server og jeg sidder fast her ?
bruger dette link som jeg følger :
https://heywoodlh.io/arch-linux-router/
[niels@archlinux ~]$ sudo systemctl enable --now dhcpd4@eth1.service
Job for dhcpd4@eth1.service failed because the control process exited with error code.
See "systemctl status dhcpd4@eth1.service" and "journalctl -xeu dhcpd4@eth1.service" for details.
[niels@archlinux ~]$ journalctl -xeu dhcpd4@eth1.service
okt 22 11:49:07 archlinux systemd[1]: Starting IPv4 DHCP server on eth1...
░░ Subject: Enhed dhcpd4@eth1.service har påbegyndt opstart
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service er begyndt at starte op.
okt 22 11:49:07 archlinux dhcpd[515]: /etc/dhcpd.conf line 4: subnet 10.10.10.1 netmask 255.255.255.0: bad subnet number/mask combination.
okt 22 11:49:07 archlinux dhcpd[515]: subnet 10.10.10.1 netmask 255.255.255.0
okt 22 11:49:07 archlinux dhcpd[515]: ^
okt 22 11:49:07 archlinux dhcpd[515]: Configuration file errors encountered -- exiting
okt 22 11:49:07 archlinux dhcpd[515]:
okt 22 11:49:07 archlinux dhcpd[515]: If you think you have received this message due to a bug rather
okt 22 11:49:07 archlinux dhcpd[515]: than a configuration issue please read the section on submitting
okt 22 11:49:07 archlinux dhcpd[515]: bugs on either our web page at www.isc.org or in the README file
okt 22 11:49:07 archlinux dhcpd[515]: before submitting a bug. These pages explain the proper
okt 22 11:49:07 archlinux dhcpd[515]: process and the information we find helpful for debugging.
okt 22 11:49:07 archlinux dhcpd[515]:
okt 22 11:49:07 archlinux dhcpd[515]: exiting.
okt 22 11:49:07 archlinux systemd[1]: dhcpd4@eth1.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit dhcpd4@eth1.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
okt 22 11:49:07 archlinux systemd[1]: dhcpd4@eth1.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit dhcpd4@eth1.service has entered the 'failed' state with result 'exit-code'.
okt 22 11:49:07 archlinux systemd[1]: Failed to start IPv4 DHCP server on eth1.
░░ Subject: Enhed dhcpd4@eth1.service har fejlet
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service har fejlet.
░░
░░ Resultatet er failed
okt 22 11:49:52 archlinux systemd[1]: Starting IPv4 DHCP server on eth1...
░░ Subject: Enhed dhcpd4@eth1.service har påbegyndt opstart
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service er begyndt at starte op.
okt 22 11:49:53 archlinux dhcpd[595]: /etc/dhcpd.conf line 4: subnet 10.10.10.1 netmask 255.255.255.0: bad subnet number/mask combination.
okt 22 11:49:53 archlinux dhcpd[595]: subnet 10.10.10.1 netmask 255.255.255.0
okt 22 11:49:53 archlinux dhcpd[595]: ^
okt 22 11:49:53 archlinux dhcpd[595]: Configuration file errors encountered -- exiting
-------------------------------------------------
sådan ser /etc/dhcpd.conf ud
option domain-name-servers 1.1.1.1, 1.0.0.1;
option subnet-mask 255.255.255.0;
option routers 10.10.10.1;
subnet 10.10.10.1 netmask 255.255.255.0 {
range 10.10.10.10 10.10.10.250;
}
hvad gør jeg lige forkert ?
den siger at det er linie 4 i /etc/dhcpd.conf
den er galt med ?
bruger dette link som jeg følger :
https://heywoodlh.io/arch-linux-router/
[niels@archlinux ~]$ sudo systemctl enable --now dhcpd4@eth1.service
Job for dhcpd4@eth1.service failed because the control process exited with error code.
See "systemctl status dhcpd4@eth1.service" and "journalctl -xeu dhcpd4@eth1.service" for details.
[niels@archlinux ~]$ journalctl -xeu dhcpd4@eth1.service
okt 22 11:49:07 archlinux systemd[1]: Starting IPv4 DHCP server on eth1...
░░ Subject: Enhed dhcpd4@eth1.service har påbegyndt opstart
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service er begyndt at starte op.
okt 22 11:49:07 archlinux dhcpd[515]: /etc/dhcpd.conf line 4: subnet 10.10.10.1 netmask 255.255.255.0: bad subnet number/mask combination.
okt 22 11:49:07 archlinux dhcpd[515]: subnet 10.10.10.1 netmask 255.255.255.0
okt 22 11:49:07 archlinux dhcpd[515]: ^
okt 22 11:49:07 archlinux dhcpd[515]: Configuration file errors encountered -- exiting
okt 22 11:49:07 archlinux dhcpd[515]:
okt 22 11:49:07 archlinux dhcpd[515]: If you think you have received this message due to a bug rather
okt 22 11:49:07 archlinux dhcpd[515]: than a configuration issue please read the section on submitting
okt 22 11:49:07 archlinux dhcpd[515]: bugs on either our web page at www.isc.org or in the README file
okt 22 11:49:07 archlinux dhcpd[515]: before submitting a bug. These pages explain the proper
okt 22 11:49:07 archlinux dhcpd[515]: process and the information we find helpful for debugging.
okt 22 11:49:07 archlinux dhcpd[515]:
okt 22 11:49:07 archlinux dhcpd[515]: exiting.
okt 22 11:49:07 archlinux systemd[1]: dhcpd4@eth1.service: Control process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ An ExecStart= process belonging to unit dhcpd4@eth1.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
okt 22 11:49:07 archlinux systemd[1]: dhcpd4@eth1.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit dhcpd4@eth1.service has entered the 'failed' state with result 'exit-code'.
okt 22 11:49:07 archlinux systemd[1]: Failed to start IPv4 DHCP server on eth1.
░░ Subject: Enhed dhcpd4@eth1.service har fejlet
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service har fejlet.
░░
░░ Resultatet er failed
okt 22 11:49:52 archlinux systemd[1]: Starting IPv4 DHCP server on eth1...
░░ Subject: Enhed dhcpd4@eth1.service har påbegyndt opstart
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Enhed dhcpd4@eth1.service er begyndt at starte op.
okt 22 11:49:53 archlinux dhcpd[595]: /etc/dhcpd.conf line 4: subnet 10.10.10.1 netmask 255.255.255.0: bad subnet number/mask combination.
okt 22 11:49:53 archlinux dhcpd[595]: subnet 10.10.10.1 netmask 255.255.255.0
okt 22 11:49:53 archlinux dhcpd[595]: ^
okt 22 11:49:53 archlinux dhcpd[595]: Configuration file errors encountered -- exiting
-------------------------------------------------
sådan ser /etc/dhcpd.conf ud
option domain-name-servers 1.1.1.1, 1.0.0.1;
option subnet-mask 255.255.255.0;
option routers 10.10.10.1;
subnet 10.10.10.1 netmask 255.255.255.0 {
range 10.10.10.10 10.10.10.250;
}
hvad gør jeg lige forkert ?
den siger at det er linie 4 i /etc/dhcpd.conf
den er galt med ?
Kommentarer5
Prøv lige at sætte din
det hjalp ikke ? fejlen
det hjalp ikke ? fejlen ser sådan ud
okt 22 13:06:03 archlinux dhcpd[519]: No subnet declaration for eth1 (no IPv4 addresses).
okt 22 13:06:03 archlinux dhcpd[519]: ** Ignoring requests on eth1. If this is not what
okt 22 13:06:03 archlinux dhcpd[519]: you want, please write a subnet declaration
okt 22 13:06:03 archlinux dhcpd[519]: in your dhcpd.conf file for the network segment
okt 22 13:06:03 archlinux dhcpd[519]: to which interface eth1 is attached. **
okt 22 13:06:03 archlinux dhcpd[519]:
okt 22 13:06:03 archlinux dhcpd[519]:
okt 22 13:06:03 archlinux dhcpd[519]: Not configured to listen on any interfaces!
okt 22 13:06:03 archlinux dhcpd[519]:
okt 22 13:06:03 archlinux dhcpd[519]: If you think you have received this message due to a bug rather
okt 22 13:06:03 archlinux dhcpd[519]: than a configuration issue please read the section on submitting
okt 22 13:06:03 archlinux dhcpd[519]: bugs on either our web page at www.isc.org or in the README file
okt 22 13:06:03 archlinux dhcpd[519]: before submitting a bug. These pages explain the proper
okt 22 13:06:03 archlinux dhcpd[519]: process and the information we find helpful for debugging.
okt 22 13:06:03 archlinux dhcpd[519]:
okt 22 13:06:03 archlinux dhcpd[519]: exiting.
okt 22 13:06:03 archlinux systemd[1]: dhcpd4@eth1.service: Control process exited, code=exited, status=1/FAILURE
Hmm ok, altså det er en
tak for svar :) hvilken
tak for svar :) hvilken slags server kører du ?
hvis jeg nu skal google det skal jeg så google systemd eller hvilket søgeord skal jeg bruge ? :)
Altså... start med den
Hvad mere har du brug for? :D
hvilken slags server kører du ?
Beklager, ikke noget jeg ønsker at dele.