Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Where to find the straight dope conf.d/net?
Date: Sat, 03 Aug 2013 13:52:46
Message-Id: x6ioznir1y.fsf@newsguy.com
In Reply to: Re: [gentoo-user] Where to find the straight dope conf.d/net? by Mick
1 Mick <michaelkintzios@×××××.com> writes:
2
3 > On Saturday 03 Aug 2013 06:52:46 Harry Putnam wrote:
4 >> I was off gentoo for a few mnths... apparently something has changed
5 >> in the naming of the network devices.
6 >>
7 >> So far I've read several accounts of it... but the install handbook
8 >> has apparently not been brought up to date.
9 >>
10 >> Doing a fresh install, and following the contents of the manual
11 >> concerning conf.d/net... is not working, of course.
12 >>
13 >> Renaming the device in /etc/init.d to net.enp0s3 and using that name
14 >> in conf.d/net doesn't work either. At least not during boot.
15 >>
16 >> I can start the network by hand with /etc/init.d/net.enp0s3 start
17 >>
18 >> No problems there. But what, exactly, is supposed to go in
19 >> conf.d/net?
20 >>
21 >> I've found quite a lot of confusing information on google but not a
22 >> solution that works for me.
23 >>
24 >> If I start the network by hand as above then things like sshd blow up
25 >> from trying to restart them again and using the wrong names.
26 >>
27 >> Can someone point me to concise documentation about how this new setup
28 >> is supposed to work?
29 >
30 > In /etc/conf.d/net you should replace the previously named eth0
31 > directives to your new NIC name, e.g. instead of:
32 >
33 > config_eth0="dhcp"
34 >
35 > you will use the new name:
36 >
37 > config_enp0s3="dhcp"
38 >
39
40 Well, yeah, thanks. Of course, that was the first thing I tried... and
41 it does start the interface.
42
43 From /etc/conf.d/net:
44 ,----
45 | # config_eth0="192.168.1.22 netmask 255.255.255.0 brd 192.168.1.255"
46 | # routes_eth0="default via 192.168.1.1"
47 |
48 | config_enp0s3="192.168.1.22/24"
49 | routes_enp0s3="default via 192.168.1.1"
50 `----
51
52 However any attempt to start sshd tries to
53 call eth0 instead of enp0s3.
54
55 But I finally discovered I still had an net.eth0 in
56 /etc/init.d... once I removed that, leaving only net.enp0s3... it all
57 began to work... Thanks again.