Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
None network after fresh install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Thu Apr 03, 2014 7:11 pm    Post subject: None network after fresh install Reply with quote

Hi. I make a try to put gentoo on my Laptop for second time (and I hope the last). I made a fresh install but after reboot
Code:
ifconfig -a
shows me only loopback. I feel like my Ethernet module is not loaded for some reason and I don't know which is exactly. I know that is Realtek (8105 if I am not wrong). What I should do to make it work? My laptop is a Lenovo p400 touchscreen. Thank's for advanced
_________________
Compile The Universe
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Apr 03, 2014 8:45 pm    Post subject: Reply with quote

boot cd, run
Code:
lspci -k
tell us the exact name of the NIC and what is listed as Driver in use:
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Thu Apr 03, 2014 8:53 pm    Post subject: Reply with quote

Ok. I got it. Says Realtek RTL8101E/RTL8102E, Kernel driver in use r8169. Now what to do? I used once upon a time gentoo. I remember that then had a Gui installer. From then until now I use FreeBSD. I don't know how Linux works and after all this years, I am starting it from the beginning. I remember on previous setup enp1s0 was automatically loaded. This time doesn't :( I remember that I made exactly all handbook said and for now I build a generic kernel will all modules.
_________________
Compile The Universe
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Thu Apr 03, 2014 9:52 pm    Post subject: Reply with quote

needs to have support enabled in kernel. how did you make kernel, genkernel or manual? enter chroot, If genkernel:
Code:
genkernel --menuconfig all
If manual:
Code:
cd /usr/src/linux;make menuconfig
edit menuconfig to include
Code:
Device Drivers
[*] Network device support  --->
[*]   Ethernet driver support  --->
[*]   Realtek devices
<M>     Realtek 8169 gigabit ethernet support
recompile, recopy, reboot
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Apr 04, 2014 1:56 am    Post subject: Reply with quote

After
Code:
make
make modules_install
make install

I copy my bzimage to /boot and rename it as vmlinuz-3.12.13-gentoo
I run
Code:
mount /boot
grub2-mkconfig -o /boot/grub/grub.cfg

Rebooted but nothing changed :(
I remember that during install my kernel was the simple generic. to build it I run:
Code:
emerge genkernel
genkernell all

_________________
Compile The Universe
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Apr 04, 2014 4:03 am    Post subject: Reply with quote

Οk. I made it using
Code:
genkernel --menuconfig all

But tells me eth0 instead of enp1s0.
PS. Now eth0 works and I am connected to internet but why is not telling enp1s0?
PS2: Thank's alot! Gentoo is really hard but at least forum is friendly and helps!
_________________
Compile The Universe
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Apr 04, 2014 4:32 am    Post subject: Reply with quote

keep an eye on the name it may change
current default is the longer en... name assigned by udev. udev is supposed to change the kernel assigned name which is eth0 .. eth1 .. etc
theoretically you had to take action to prevent udev renaming so there is a mystery still
_________________
Defund the FCC.


Last edited by DONAHUE on Fri Apr 04, 2014 4:39 am; edited 1 time in total
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Fri Apr 04, 2014 4:35 am    Post subject: Reply with quote

Ok. And one last question. My static ip works perfect but takes too long to bring up interface on boot. Why?
_________________
Compile The Universe
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Fri Apr 04, 2014 5:47 pm    Post subject: Reply with quote

how long is too long?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
sk8harddiefast
Guru
Guru


Joined: 15 Feb 2009
Posts: 335
Location: athens

PostPosted: Sat Apr 05, 2014 11:29 am    Post subject: Reply with quote

About 30 seconds but I have a strange activity. After
Code:
rc-update add udev boot
now boots as enp1s0 almost immediately but as dhcp. Seems like ignores my static ip :?:
_________________
Compile The Universe
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21593

PostPosted: Sat Apr 05, 2014 3:20 pm    Post subject: Reply with quote

sk8harddiefast wrote:
About 30 seconds but I have a strange activity. After
Code:
rc-update add udev boot
now boots as enp1s0 almost immediately but as dhcp. Seems like ignores my static ip :?:
What configuration directives do you have for interface enp1s0?
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sat Apr 05, 2014 3:22 pm    Post subject: Reply with quote

you deleted symlink /etc/init.d/net.eth0 and created /etc/init.d/net.enp1s0?
Code:
cd /etc/init.d
rm net.eth0
ln -s net.lo net./enp1s0

edited /etc/conf.d/net to globally replace eth0 with enp1s0 ?

if above are done and problems persist post /etc/conf.d/net
_________________
Defund the FCC.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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