Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh Installation - Predictable Network Interface Names
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Cotsey
n00b
n00b


Joined: 01 Jan 2014
Posts: 2

PostPosted: Wed Jan 01, 2014 9:12 pm    Post subject: Fresh Installation - Predictable Network Interface Names Reply with quote

Hi Everyone,

I attempted my first installation of Gentoo today, and I'm having trouble getting networking working properly.

I followed the Handbook right up to Section 8.b, which I tried to modify for Predictable Network Interface names. However, on booting into the fresh install, I still get a udev message stating that eth0 has been renamed to enp0s3. However, ifconfig -a shows the interfaces eth0, lo, and sit0.

Manually configuring eth0 with ifconfig and route works; but changing /etc/conf.d/net and the init scripts to use eth0 does not.

Any ideas what I've missed?

/etc/conf.d/net:
Code:

config_enp0s3="192.168.1.253 netmask 255.255.255.0 brd 192.168.1.255"
routes_enp0s3="default via 192.168.1.1"


ls -l /etc/init.d/*.net:
Code:

lrwxrwxrwx 1 root root       6 Jan  2 17:27 /etc/init.d/net.enp0s3 - > net.lo
-rwxr-xr-x 1 root root 17412 Dec 27 03:42 /etc/init.d/net.lo


rc-update show default:
Code:

cronie | default
local | default
net.enp0s3 | default
netmount | default
sshd | default
syslog-ng | default


udevadm test-builtin net_id /sys/class/net/eth0
Code:

...
ID_NET_NAME_PATH=enp0s3


ls /sys/class/net:
Code:

eth ls sit0


and in /var/log/messages:
Code:

Jan 2 06:38:28 external kernel: 1220.212293] systemd-udevd[1755]: renamed network interface eth0 to enp0s3


Also, my /etc/udev/rules.d directory is empty.
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Wed Jan 01, 2014 11:33 pm    Post subject: Re: Fresh Installation - Predictable Network Interface Names Reply with quote

Cotsey wrote:

Manually configuring eth0 with ifconfig and route works; but changing /etc/conf.d/net and the init scripts to use eth0 does not.

Any ideas what I've missed?

Probably you forgot to append net.ifnames=0 to kernel boot options. It prevents eth0 renaming, so you can configure your init scripts and /etc/conf.d/net for using eth0 interface instead of enp0s3.
Back to top
View user's profile Send private message
Cotsey
n00b
n00b


Joined: 01 Jan 2014
Posts: 2

PostPosted: Wed Jan 01, 2014 11:55 pm    Post subject: Re: Fresh Installation - Predictable Network Interface Names Reply with quote

creaker wrote:

Probably you forgot to append net.ifnames=0 to kernel boot options. It prevents eth0 renaming, so you can configure your init scripts and /etc/conf.d/net for using eth0 interface instead of enp0s3.


Thanks, that worked. To be honest, I was trying to get it to stay on enp0s3; but it doesn't really matter.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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