arch linux som router

snøfte
Antal: 148
Tilmeldt:
12-05-2015
User is offline
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/sys...
░░
░░ 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/sys...
░░
░░ 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/sys...
░░
░░ 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/sys...
░░
░░ 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/sys...
░░
░░ 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 ?


julemand101
julemand101's picture
Antal: 1737
Tilmeldt:
17-01-2004
User is offline
Prøv lige at sætte din

Prøv lige at sætte din subnet til 10.10.10.0 frem for 10.10.10.1.


snøfte
Antal: 148
Tilmeldt:
12-05-2015
User is offline
det hjalp ikke ? fejlen

#1:
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


julemand101
julemand101's picture
Antal: 1737
Tilmeldt:
17-01-2004
User is offline
Hmm ok, altså det er en

Hmm ok, altså det er en anden fejl men siden du bruge Arch, og dhcpd er noget af en dinosaur der er dårlige understøttet, så vil jeg foreslå at du kigger nærmere på https://wiki.archlinux.org/title/Systemd-networkd som jeg selv bruger på mine servere.


snøfte
Antal: 148
Tilmeldt:
12-05-2015
User is offline
tak for svar :) hvilken

#3:
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 ? :)


julemand101
julemand101's picture
Antal: 1737
Tilmeldt:
17-01-2004
User is offline
Altså... start med den

Altså... start med den artikel jeg linkede til? Der er flere eksempler samt klar beskrivelse af alle de muligheder der. Samt links til yderligere information i bunden.

Hvad mere har du brug for? :D

hvilken slags server kører du ?

Beklager, ikke noget jeg ønsker at dele.