Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Changed Gentoo hard disk to different laptop..lost connectiv
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
eklebanow
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2019
Posts: 104

PostPosted: Tue Oct 04, 2022 2:19 am    Post subject: Changed Gentoo hard disk to different laptop..lost connectiv Reply with quote

I changed a Gentoo hard disk to a different laptop and I lost internet connectivity.
What likely happened? How can I resolve. I can't post any commands as I have no connectivity
Ip link shows lo, enp0s31f6, and sit0@none. Ifconfig shows enp0s31f6 and lo
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Tue Oct 04, 2022 3:37 am    Post subject: Reply with quote

If you were using networkmanager, it should just work.

But likely if you switched to completely different hardware and were just using openrc to configure the network, the configuration script in /etc/init.d/net.$IFACE (where $IFACE=enp0s31f6) is not there, and the old computer's interface is still there.
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
eklebanow
Tux's lil' helper
Tux's lil' helper


Joined: 08 Sep 2019
Posts: 104

PostPosted: Tue Oct 04, 2022 4:18 am    Post subject: Reply with quote

I believe I am using openrc to configure the network.

Looking at /etc/init.d I see net-online, net.eth0 and net.lo. which is likely to be the old machines file? Can it just be deleted and then restart?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9679
Location: almost Mile High in the USA

PostPosted: Tue Oct 04, 2022 4:25 am    Post subject: Reply with quote

Need to change that net.eth0 symlink to net.enp0s31f6, or create a new one pointing to the same place so it could boot on either machine but give a warning on missing network interfaces.

As a reminder https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Modular -- but it sounds like you inherited the disk?
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Sun Oct 09, 2022 3:51 am    Post subject: Reply with quote

You'll also need to edit /etc/conf.d/net to use the new interface name.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Oct 09, 2022 10:40 am    Post subject: Reply with quote

Is it too hacky to write two udev rules to rename the two interfaces two the same thing, using MAC address matching.
It would be a horrible mess if both interfaces were in the same system at the same time.
_________________
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 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