You are not logged in.
Hello arch team
I'am a new arch user from few months.
My machine have got 2 networks :
1 : enp0s10 (motherboard RJ45): 192.168.0.90, ip static on my home network
2 : enp0s4f1u4 (USB RJ45) : 192.168.2.253, need to be DHCP server on this network
My computer working well except the DHCP, not working at the startup of the machine.
i need each time to start it manually
i don't know why ???
I need each time to enter :
sudo dhcpd -cf /etc/dhcp/dhcpd.conf
service is ok ?
sudo nano /etc/systemd/system/dhcpd4@.service
[Unit]
Description=IPv4 DHCP server
After=network.target network-online.target
Wants=network-online.target
[Service]
Type=forking
#ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf -pf /run/dhcpd4/dhcpd.pid
ExecStart=/usr/bin/dhcpd -4 -q -cf /etc/dhcpd.conf -pf /run/dhcpd4/dhcpd.pid %I
RuntimeDirectory=dhcpd4
PIDFile=/run/dhcpd4/dhcpd.pid
User=dhcp
AmbientCapabilities=CAP_NET_BIND_SERVICE CAP_NET_RAW
ProtectSystem=full
ProtectHome=on
KillSignal=SIGINT
# We pull in network-online.target for a configured network connection.
# However this is not guaranteed to be the network connection our
# networks are configured for. So try to restart on failure with a delay
# of two seconds. Rate limiting kicks in after 12 seconds.
RestartSec=2s
Restart=on-failure
StartLimitInterval=12s
[Install]
WantedBy=multi-user.target
Offline
Offline
Hello
Yes i think it's correct and i have find a way to search the problem.
If my computer start in first and finally there is nothing wired behind it at time of the boot : All rj45 leds are off and even if other member of the network are starting. It why the service not working
If i start the computer after the boot of every devices : No problem with dhcp server.
I think it's a setup card problem, they need to be actived even if the wire is not connected : how ???
thanks
my setup file for the first ethernet card :
Description='Static ethernet connection enp0s10'
Interface=enp0s10
Connection=ethernet
IP=static
Address=('192.168.0.90/24')
Gateway='192.168.0.254'
DNS=('192.168.0.254')
AutoWired=yes
## For IPv6 autoconfiguration
#IP6=stateless
## For IPv6 static address configuration
#IP6=static
#Address6=('1234:5678:9abc:def::1/64' '1234:3456::123/96')
#Routes6=('abcd::1234')
#Gateway6='1234:0:123::abcd'
Last edited by ricco75 (2021-05-16 11:01:40)
Offline