Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DCHP not working at boot but after login [Fixed]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 13

PostPosted: Tue May 04, 2021 7:34 am    Post subject: DCHP not working at boot but after login [Fixed] Reply with quote

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
View user's profile Send private message
alamahant
Veteran
Veteran


Joined: 23 Mar 2019
Posts: 1064

PostPosted: Tue May 04, 2021 11:44 am    Post subject: Reply with quote

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
View user's profile Send private message
JohnJanzen
n00b
n00b


Joined: 15 Apr 2021
Posts: 13

PostPosted: Tue May 04, 2021 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum