LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-07-2010, 04:35 AM   #1
DebianUser
Member
 
Registered: Apr 2010
Posts: 88

Rep: Reputation: 15
70-persistent-net.rules


I have 2 test machines which I need to move the HDD between however it won't boot on one of them due to the MAC address stored in

rules.d/70-persistent-net.rules

is there a way to add a second MAC to this file or if I wrote a little bash script to delete it before it's queried at boot at what stage would the script need to be called?
 
Old 08-07-2010, 07:09 AM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Unless you are booting from the network there is no reason that you cannot boot. Only the network adapter will not be configured correctly. So it is unlikely that this is the source of your trouble.

When the machine boots, a second stanza is included in 70-persistent-net-rules. It will most likely be called eth1 while eth0 remains bound to the hardware address of the other machine.

If you look into /etc/rcS.d you see scripts with the name Snnscriptname with nn a two digit number. Create your script with a lower decimal number than script which start the network and udev. The number must be so high that you are sure that scripts which mount the disk and make it accessible have a lower number.

jlinkels
 
1 members found this post helpful.
  


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
Slackware 13 Network Problem, Odd Problem With 70-persistent net.rules pghsteel Slackware 4 08-16-2010 03:58 AM
[SOLVED] Changes to 70-persistent-net.rules not reflected in ifconfig until reboot Potatos Linux - Networking 3 06-18-2010 12:40 PM
cat: /etc/udev/rules.d/70-persistent-net.rules: No such file or directory rcg1984 Linux From Scratch 2 09-17-2008 07:02 AM
persistent static routes, not so persistent Hewson Linux - Networking 4 04-27-2007 05:09 PM
to restrict rules of postfix, for some users (or local net). stomach Linux - General 1 03-14-2006 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:52 AM.

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