Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] No network ( Solved, I am connected, thanks)
Date: Wed, 04 Mar 2015 18:25:26
Message-Id: 201503041825.17385.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] No network ( Solved, I am connected, thanks) by German
1 On Wednesday 04 Mar 2015 15:40:12 German wrote:
2 > On Wed, 4 Mar 2015 12:07:39 +0000
3 >
4 > Neil Bothwick <neil@××××××××××.uk> wrote:
5 > > On Wed, 4 Mar 2015 06:57:48 -0500, German wrote:
6 > > > On Wed, 4 Mar 2015 08:09:12 +0000
7 > > >
8 > > > Neil Bothwick <neil@××××××××××.uk> wrote:
9 > > > > On Wed, 4 Mar 2015 02:01:20 -0500, German wrote:
10 > > > > > So I rebuilt my kernel with r8169 for network NIC and rtl8723be for
11 > > > > > Wi-fi NIC, however I can't connect to internet. I think the problem
12 > > > > > here with interfaces, but could be something else, have no clue. I
13 > > > > > remember when I installed openSuse, it listed my interfaces like
14 > > > > > "SP0_something" instead of eth0. But I followed gentoo install doc
15 > > > > > and configured it with eth0. Can it be that problem lays somewhere
16 > > > > > here? And how to get the list of interfaces on my machine?
17 > > > >
18 > > > > ifconfig -a lists all interfaces present.
19 > > >
20 > > > Of course I don't have any eth0 interface. What I have are:
21 > > >
22 > > > enp2s0
23 > > > lo
24 > > > sit0
25 > > > wlp1s0
26 > >
27 > > Did you read the links later in my post? They explain this.
28 > >
29 > > > What I am about to do:
30 > > > Update my /etc/conf.d/net like so:
31 > > >
32 > > > config_enp2s0="dhcp"
33 > > > config_lo="dhcp"
34 > >
35 > > you need nothing for lo.
36
37 You also do not need to define dhcp for enp2s0, because it will be used by
38 default.
39
40 > > > config_sit0="dhcp"
41
42 You only need this if you intend to set up and use IPv6 through an IPv4
43 tunnel. Most people won't need this.
44
45
46 > > > config_wlp1s0="dhcp"
47 > > >
48 > > > cd /etc/init.d
49 > > > ln -s net.enp2s0 net.sit0 net.wlp1s0
50 > >
51 > > Interfaces in init.d should each be symlinked to net.lo. But if you put
52 > > all interfaces in init.d openrc will try to start all of them. Is that
53 > > what you really want? If you have both wired and wireless interfaces, it
54 > > is usual to use a network manager to control them.
55 > >
56 > > > rm /etc/init.d/net.eth0
57 > > >
58 > > > rc-update del net.eth0 default
59 > > >
60 > > > rc-update add net.enp2s0 sit0 wlp1s0 default
61 > > >
62 > > > Please let me know if you find these steps correct. Thanks
63 > > >
64 > > > > Unless you added net.ifnames=0 to your kernel options, you will be
65 > > > > using the new(ish) predictable network interface names, see
66 > > > >
67 > > > > http://wiki.gentoo.org/wiki/Udev/upgrade#udev_208_to_216
68 > > > > and
69 > > > > http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkIn
70 > > > > terfaceNames/
71
72 Now that you're connected, or should I say BEFORE you got connected, you
73 should also consider configuring a firewall for your IPv4 (and/or IPv6)
74 network.
75
76 --
77 Regards,
78 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] No network ( Solved, I am connected, thanks) German <gentgerman@×××××.com>