View previous topic :: View next topic |
Author |
Message |
JohnJanzen n00b
Joined: 15 Apr 2021 Posts: 17
|
Posted: Tue May 04, 2021 7:34 am Post subject: DCHP not working at boot but after login [Fixed] |
|
|
When booting dhcpcd reports
eno1: waiting for carrier
eno1: carrier acquired
eno1: IAID 4d:46:d2:bf
eno1: adding address fe80::54f4::eee:aafb:344a
eno1: rebinding lease of 192.168.178.58
eno1; soliciting an IPv6 router
eno1: probing for an IPv4LL address
eno1: DHCP lease
eno1: solicting DHCP lease
timed out
dhcpcd exited
However when running it logged in i get a connection
eno1: IAID 4d:46:d2:bf
eno1: soliciting an IPv6 router
eno1: rebinding lease of 192.168.178.58
eno1: leased 192.168.178.58 for 864000 seconds
eno1: adding route to 192.168.178.0/24
eno1: adding default route via 192.168.178.1
forked to background, child pid 3108
it initially worked when I set up my machine and my home network didn't chane in any way.
Last edited by JohnJanzen on Tue May 04, 2021 7:46 pm; edited 1 time in total |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Tue May 04, 2021 11:44 am Post subject: |
|
|
Hi
Code: |
rc-update delete dhcpcd boot
rc-update add dhcpcd default
rc-update add net.eth1 boot
|
eth1 does not need a dhcp address.Better use static.
OR if you need eth1 to be dhcp remove it from boot and add it to default and dhcp to boot _________________
|
|
Back to top |
|
|
JohnJanzen n00b
Joined: 15 Apr 2021 Posts: 17
|
Posted: Tue May 04, 2021 7:48 pm Post subject: |
|
|
I found out if I disable DHCP on boot and run it only as user it still fails if I only run it once
so I added
dhcpcd.start to my local daemon
/etc/local.d/dhcpcd.start
Code: | dhcpcd -4 eno1 -b
sleep 5
dhcpcd -4 eno1 -b
|
which starts dhcpcd and restarts it after 5 seconds
works for me |
|
Back to top |
|
|
|