LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-05-2024, 02:09 PM   #1
pm_a_cup_of_tea
Member
 
Registered: May 2021
Location: UK
Posts: 66

Rep: Reputation: 50
Cant use rc.inet1 to bring up network


I have a couple of weeks off and have been playing around with current. Today I did a fresh install and setup the network using dhcp.

All was good on the first boot and I had an internet connection. I downloaded my sbopkg and slackpkg+ and installed my usual basic preliminary software from slackbuilds.

Code:
noto-emoji
calibre-bin
sasm
bubblewrap
ostree
gcab
appstream-glib
xdg-desktop-portal-gtk
flatpak
slackware-grub2-theme
Beyond some very basic configuration to ntp, profile.d/, inittab etc this is all I get up to. On reboot I lose internet access. I ahve repeated the process 4 times now. I am able to gain access by NetworkManager but never able to ustilse inet1 after the first reboot.

I am not sure what further information I can include but am willing to follow suggestions.

EDIT: I should also add that after the first reboot when i lose the connection I:

Code:
$ /etc/rc,d/rc/inet1 restart
without any success.

Last edited by pm_a_cup_of_tea; 06-05-2024 at 02:16 PM.
 
Old 06-05-2024, 02:19 PM   #2
pm_a_cup_of_tea
Member
 
Registered: May 2021
Location: UK
Posts: 66

Original Poster
Rep: Reputation: 50
Ok, I had a random idea.

I looked at the name of the connection expecting eth0 and '$ip a' states that the ethernet connection is actually eth1. Can something have changed it after the first reboot?
 
Old 06-05-2024, 02:28 PM   #3
pm_a_cup_of_tea
Member
 
Registered: May 2021
Location: UK
Posts: 66

Original Poster
Rep: Reputation: 50
Just stopped NetworkManager and set inet1 to use eth1 instead and everything works perfectly. What could have changed the name. I use a thinkpad docking station to connect with ethernet could that have something to do with it? Curious, I mean it works as eth0 after the install. why would it be changing the name of the interface?

I wonder if it has anything to do with disconnecting the docking station and connecting again. Only one way to find out. Sorry it seems that I needn't have posted I only had the thought about the interface name after I had sent it.
 
Old 06-05-2024, 02:34 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,560

Rep: Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601Reputation: 8601
On first boot, /etc/udev/rules.d/70-persistent-net.rules is generated, and that's probably where your eth1 is coming from. If you delete the file, it'll be generated again with the next boot and might (probably?) get eth0 that time. Or you could edit it, reboot, and set things to use eth0 again.

It's probably not worth the effort if things are working with eth1, but I figured I'd let you know how that happened.
 
1 members found this post helpful.
Old 06-05-2024, 02:37 PM   #5
lostintime
Member
 
Registered: Dec 2021
Posts: 214

Rep: Reputation: Disabled
To restore eth0:

* chmod -x /etc/rc.d/rc.networkmanager
* chmod +x /etc/rc.d/rc.inet1
* rm -f /etc/udev/rules.d/70-persistent-net.rules
* Reboot.
 
1 members found this post helpful.
Old 06-05-2024, 02:47 PM   #6
pm_a_cup_of_tea
Member
 
Registered: May 2021
Location: UK
Posts: 66

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by volkerdi View Post
It's probably not worth the effort if things are working with eth1, but I figured I'd let you know how that happened.
Thank you for that, everything is working on eth1 but I am going to have a play regardless. Thank you.
 
Old 06-05-2024, 02:57 PM   #7
pm_a_cup_of_tea
Member
 
Registered: May 2021
Location: UK
Posts: 66

Original Poster
Rep: Reputation: 50
Code:
# PCI device 0x8086:0xa0f0 (iwlwifi)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="4c:77:cb:f9:61:1d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

# USB device 0x17ef:0xa359 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="80:6d:97:0e:d7:b5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# USB device 0x17ef:0xa359 (usb)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="80:6d:97:0e:d7:b5", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
So it looks like I have two entries for the same interface, I'm guessing as eth1 is the last entry that is the one that is being set.

Once again,both, thank you for the explanation and solution.
 
Old 06-09-2024, 01:12 AM   #8
dchmelik
Senior Member
 
Registered: Nov 2008
Location: USA
Distribution: Slackware, FreeBSD, Illumos, NetBSD, DragonflyBSD, Plan9, Inferno, OpenBSD, FreeDOS, HURD
Posts: 1,078

Rep: Reputation: 153Reputation: 153
'Cant' predates "can't" and differs.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] (bug sw15) rc.inet1 / rc.inet1.conf - a couple of vlan issues when using vlan name Mr.Gadgets Slackware 2 01-02-2023 07:34 AM
duplicate/backup init files - i.e. rc.inet1 and rc.inet1.orig krakanut Slackware 3 08-07-2020 02:45 PM
Modifications to rc.inet1, rc.inet1.conf and rc.wireless hba Slackware 1 12-07-2014 03:57 AM
Bring up and bring don wifi wifi2012 Linux - Networking 3 12-20-2012 01:54 PM
rc.inet1 and rc.inet1.conf edafe Slackware 0 02-16-2005 09:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration