LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-24-2014, 03:55 PM   #1
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
eth# changed so I have to run dhcpcd manually?


Hello again everyone.

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?
 
Old 10-24-2014, 04:03 PM   #2
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
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]=""
 
Old 10-24-2014, 04:46 PM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by enine View Post
Hello again everyone.

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.
 
1 members found this post helpful.
Old 10-24-2014, 05:07 PM   #4
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Thanks, I see the nic info on the -rules with a mac address and all.

Waiting for him to quit playing Minecraft before I can reboot.
 
Old 10-24-2014, 06:26 PM   #5
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Or just edit the file by hand to make the MAC match the card you want.
 
Old 10-25-2014, 02:33 PM   #6
enine
Senior Member
 
Registered: Nov 2003
Distribution: Slackʍɐɹǝ
Posts: 1,486

Original Poster
Blog Entries: 4

Rep: Reputation: 282Reputation: 282Reputation: 282
Worked fine after the reboot. Eventually he'll get his own drive and I can get mine back.
 
  


Reply



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] Two 13.37x64 Issues: Boot Hangs starting HALD, and DHCPCD has to be run manually NeoMetal Slackware 8 01-17-2012 08:59 PM
[SOLVED] maximal mount count reached - how can I fix fstab to run e2fsck or run it manually? jg1 Linux - Newbie 4 08-06-2011 06:09 PM
[SOLVED] slackware dhcpcd IP renewal: need to specify eth name to get IP lpallard Linux - Networking 20 02-01-2011 10:20 PM
computer asks me to run a FSCK Manually, but won't : says can't run on mounted lightwave Linux - Newbie 12 04-02-2008 12:25 AM
Slack 10: Why must I run dhcpcd manually? IamI Slackware 5 11-23-2005 08:26 AM

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

All times are GMT -5. The time now is 04:21 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