Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't connect to the internet after reboot
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
ahayward
n00b
n00b


Joined: 01 Oct 2016
Posts: 1

PostPosted: Sat Oct 01, 2016 3:39 pm    Post subject: Can't connect to the internet after reboot Reply with quote

When booting from a LiveUSB, my ethernet connection works automatically. Entering ifconfig reveals the interfaces lo, enp1s0, and wlp1s0. I assume that enp1s0 is the ethernet connection. After completing my install and rebooting, ifconfig shows the interfaces lo and sit0. My ethernet connection no longer works. I have followed the instructions in the Gentoo Installation Handbook, and repeated them many times. I have installed the necessary programs, dhcpcd and netirc. I have run net-setup for both enp1s0 and sit0. I have turned on dhpccd for enp1s0 and sit0. The file /etc/conf.d/net contains the lines config_enp1s0="dhcp" and config_sit0="dhcp". I have created the symbolic link between net.lo and both enp1s0 and sit0. I have added both enp1s0 and sit0 to the default runlevel.

What am I missing? My best guess is that the problem relates to the fact that booting from the LiveUSB and booting from the hard drive show different network interfaces. I would appreciate any suggestions. Thanks!
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13865

PostPosted: Sat Oct 01, 2016 5:05 pm    Post subject: Reply with quote

You have one of two possible problems. Unfortunately, you fell into a very common trap of using ifconfig rather than ifconfig -a or ip l. The former only shows interfaces which are up. Both of the latter can show you interfaces that are not up. Your problem could be that your installed kernel lacks support for the network interface or it could be that your interface is not configured. Given all the permutations you tried, it is more likely that your kernel lacks support. However, using ifconfig and seeing nothing does not rule out that the interface exists and is not configured. Using one of the other commands and seeing nothing would rule that out. Please post the output of lspci -k as seen from the live media, not the installed system. This will show the PCI devices on the system and, for those which have a kernel driver in use, the name of that driver. You should also check ifconfig -a from the installed system to confirm that the interface is completely missing, rather than present and down.

The good news is that you can (and should!) fix this problem without reinstalling. You probably only need to identify the kernel driver for your network card, build a new kernel with that driver enabled, and boot it instead of your currently installed kernel. You can keep everything else you have done.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43213
Location: 56N 3W

PostPosted: Sat Oct 01, 2016 5:17 pm    Post subject: Reply with quote

ahayward,

You are missing your kernel module for your network card.

enp1s0 is your wired ethernet.
wlp1s0 is wireless
sit0 is an IPv6 over IPv4 tunnel endpoint.

Try the following. Boot the LiveUSB.
Run the command lspci -k and find your Ethernet in the output. I get
Code:
0a:06.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8169 PCI Gigabit Ethernet Controller (rev 10)
   Subsystem: Realtek Semiconductor Co., Ltd. RTL8169/8110 Family PCI Gigabit Ethernet NIC
   Kernel driver in use: r8169

Make a note of the name of the Kernel driver in use. Here r8169.

Boot your own install and log in as root.
modprobe the module for your ethernet. I would do
Code:
modprobe r8169

If you get an error, post the error message and the lspci -k output from the LiveUSB.
If there is no error, do you have a new interface in
Code:
ifconfig -a


The modprobe can be automated.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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