Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unable to get DHCP address on boot
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
peku33
n00b
n00b


Joined: 03 May 2015
Posts: 7

PostPosted: Wed Jul 01, 2015 12:27 pm    Post subject: Unable to get DHCP address on boot Reply with quote

Hi. I installed gentoo on my PC.

My network card is called:
Code:
enp5s2


I created a symlink in
Code:
/etc/init.d/

added
Code:
config_enp5s2="dhcp"

to
Code:
/etc/conf.d/net


I had some problems with ipv4ll address, so I added:
Code:
noipv6
noipv4ll

to /etc/dhcpcd.conf

While booting, the boot process stops on
Code:
enp5s2: (...) Soliciting DHCP lease

and after some time it fails.

Immediately I log in as root, run
Code:
rc

and network starts correctly.

What I am doing wrong?
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Thu Jul 02, 2015 3:54 pm    Post subject: Reply with quote

I always build important modules into kernel so I have no experience with modules, but I think it is possible the module for your NIC is not loaded yet when dhcpcd runs.
Back to top
View user's profile Send private message
lexflex
Guru
Guru


Joined: 05 Mar 2006
Posts: 343
Location: the Netherlands

PostPosted: Thu Jul 02, 2015 5:58 pm    Post subject: Reply with quote

Hi peku,

Buffoon wrote:
I always build important modules into kernel so I have no experience with modules, but I think it is possible the module for your NIC is not loaded yet when dhcpcd runs.


Indeed, it might be a timing issue.

What does ifconfig give after boot, before you run rc?
Also, does rc.log show anything ?

Alex
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