[SOLVED] eth# changed so I have to run dhcpcd manually?
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I borrowed the hdd from my media PC for my son's computer and when Slackware boots I I have to run dhcpcd manually. I do see that it finds and gets an IP for eth1 where the old system got the IP on eth0 so it appears the interface number changed.
I ran netconfig and went through all the steps but I still don't get an IP unless I manually run dhcpcd after login, how can I get it to run and get the IP during boot like normal?
As root, change the beginning part of /etc/rc.d/rc.inet1.conf so it matches the following:
Code:
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
I borrowed the hdd from my media PC for my son's computer and when Slackware boots I I have to run dhcpcd manually. I do see that it finds and gets an IP for eth1 where the old system got the IP on eth0 so it appears the interface number changed.
I ran netconfig and went through all the steps but I still don't get an IP unless I manually run dhcpcd after login, how can I get it to run and get the IP during boot like normal?
Congratulations, you just found another of the 'improvements' that our ever-loving udev upstream maintainers inflicted on us all to satisfy their use cases but not ours.
Code:
rm /etc/udev/rules.d/70-persistent-net.rules
then reboot. This will make the 'new' ethernet interface eth0 instead of eth1.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.