Gentoo Archives: gentoo-user

From: William Kenworthy <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to restart the network, no net.enp1s0
Date: Fri, 21 Jan 2022 12:54:49
Message-Id: 2e82a3fb-d1c0-8725-be78-90369751a874@iinet.net.au
In Reply to: Re: [gentoo-user] how to restart the network, no net.enp1s0 by n952162
1 There was a news item on network naming - it might be that.  A couple of
2 people got caught by it.
3
4 BillK
5
6
7 On 21/1/22 20:48, n952162 wrote:
8 > The point is, something has changed in openrc, and I was hoping somebody
9 > knew about it.
10 >
11 > It used to be that you could restart the network with:
12 >
13 >   rc-service net.enp1s0 restart
14 >
15 > which would use the link in /etc/init.d.  But that link is now gone,
16 > although the network works.  Something fundamental has changed, I think,
17 > and I thought it would pop out here, but I guess I'm the only one still
18 > using openrc.
19 >
20 >
21 >
22 > On 1/16/22 19:06, Mark Knecht wrote:
23 >> On Sun, Jan 16, 2022 at 1:50 AM n952162 <n952162@×××.de> wrote:
24 >>> Hello all,
25 >>>
26 >>> my system runs fine, but when I want to restart my network, I find
27 >>> there's no /etc/init.d/net.enp1s0 link or other interesting candidate.
28 >>> Do something change here?
29 >>>
30 >>> What do I need to do to restart my network?
31 >>>
32 >>>
33 >> Obviously the answers depends completely on how you are managing
34 >> services and what executables you have on your highly customizable
35 >> Gentoo machine, but possibly:
36 >>
37 >> sudo service network-manager restart
38 >>
39 >> sudo systemctl restart NetworkManager.service
40 >>
41 >> sudo nmcli networking off && sudo nmcli networking on
42 >>
43 >> sudo ifdown -a && sudo ifup -a
44 >>
45 >> If you are using systemctl then
46 >>
47 >> sudo systemctl status
48 >>
49 >> is a good place to start, along with
50 >>
51 >> nmcli
52 >>
53 >> HTH,
54 >> Mark
55 >>
56 >