udev 70-persistent-net.rules lines removedLinux udev persistent net ruleHow to whitelist range of MACs in...
What 1968 Moog synthesizer was used in the Movie Apollo 11?
Extract substring according to regexp with sed or grep
1 John in Luther’s Bibel
Hashing password to increase entropy
Derivative of an interpolated function
What properties make a magic weapon befit a Rogue more than a DEX-based Fighter?
Sort with assumptions
categorizing a variable turns it from insignificant to significant
Taking my research idea outside my paid job
What is the tangent at a sharp point on a curve?
What do the positive and negative (+/-) transmit and receive pins mean on Ethernet cables?
Do people actually use the word "kaputt" in conversation?
"Oh no!" in Latin
Does capillary rise violate hydrostatic paradox?
How would a solely written language work mechanically
Magnifying glass in hyperbolic space
Not hide and seek
Would this string work as string?
Trouble reading roman numeral notation with flats
Mortal danger in mid-grade literature
Why is participating in the European Parliamentary elections used as a threat?
When is the exact date for EOL of Ubuntu 14.04 LTS?
Did I make a mistake by ccing email to boss to others?
Exposing a company lying about themselves in a tightly knit industry (videogames) : Is my career at risk on the long run?
udev 70-persistent-net.rules lines removed
Linux udev persistent net ruleHow to whitelist range of MACs in 75-persistent-net-generator.rules?udev rule execute 2 timesudev rules in ubuntuwhat is the use of /etc/udev/rules.d/70-persistent-net.rules file in rhel?How to write rules for persistent net names?location of 70-persistent-net.rules in Centos 7Disk renaming udev ruleControl /dev/pts/* assignmentsUdev rule for changing 'max_sectors_kb' for all 'sd*' devices
I administer an EC2 instance running Ubuntu 18.04 for a client's app. The app expects network interface names that begin with enp. EC2 instances have network interfaces named eth0, eth1, etc.
To rename the interfaces at launch I added rules to /etc/udev/rules.d/70-persistent-net.rules (MAC addresses obfuscated).
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ee:ee:ee:ee:ee:ee", NAME="enp26s0f0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="dd:dd:dd:dd:dd:dd", NAME="enp26s0f1"
This worked fine and the interfaces have the expected names, but when I cat /etc/udev/rules.d/70-persistent-net.rules only one rule remains.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
My question is how and why were the other two rules removed? And how can I prevent this from happening so that the interfaces are consistently renamed after each reboot?
amazon-ec2 ubuntu-18.04 udev
add a comment |
I administer an EC2 instance running Ubuntu 18.04 for a client's app. The app expects network interface names that begin with enp. EC2 instances have network interfaces named eth0, eth1, etc.
To rename the interfaces at launch I added rules to /etc/udev/rules.d/70-persistent-net.rules (MAC addresses obfuscated).
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ee:ee:ee:ee:ee:ee", NAME="enp26s0f0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="dd:dd:dd:dd:dd:dd", NAME="enp26s0f1"
This worked fine and the interfaces have the expected names, but when I cat /etc/udev/rules.d/70-persistent-net.rules only one rule remains.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
My question is how and why were the other two rules removed? And how can I prevent this from happening so that the interfaces are consistently renamed after each reboot?
amazon-ec2 ubuntu-18.04 udev
add a comment |
I administer an EC2 instance running Ubuntu 18.04 for a client's app. The app expects network interface names that begin with enp. EC2 instances have network interfaces named eth0, eth1, etc.
To rename the interfaces at launch I added rules to /etc/udev/rules.d/70-persistent-net.rules (MAC addresses obfuscated).
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ee:ee:ee:ee:ee:ee", NAME="enp26s0f0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="dd:dd:dd:dd:dd:dd", NAME="enp26s0f1"
This worked fine and the interfaces have the expected names, but when I cat /etc/udev/rules.d/70-persistent-net.rules only one rule remains.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
My question is how and why were the other two rules removed? And how can I prevent this from happening so that the interfaces are consistently renamed after each reboot?
amazon-ec2 ubuntu-18.04 udev
I administer an EC2 instance running Ubuntu 18.04 for a client's app. The app expects network interface names that begin with enp. EC2 instances have network interfaces named eth0, eth1, etc.
To rename the interfaces at launch I added rules to /etc/udev/rules.d/70-persistent-net.rules (MAC addresses obfuscated).
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="ee:ee:ee:ee:ee:ee", NAME="enp26s0f0"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="dd:dd:dd:dd:dd:dd", NAME="enp26s0f1"
This worked fine and the interfaces have the expected names, but when I cat /etc/udev/rules.d/70-persistent-net.rules only one rule remains.
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="cc:cc:cc:cc:cc:cc", NAME="enp2s0"
My question is how and why were the other two rules removed? And how can I prevent this from happening so that the interfaces are consistently renamed after each reboot?
amazon-ec2 ubuntu-18.04 udev
amazon-ec2 ubuntu-18.04 udev
asked 2 mins ago
bmccordbmccord
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959040%2fudev-70-persistent-net-rules-lines-removed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f959040%2fudev-70-persistent-net-rules-lines-removed%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown