How to make 'ip link' settings persistentVirtual Interface Not Showing up in ifconfig?Turn system on by USB keyboard?Linux - Only first virtual interface can ping external gatewaylinux/shell command to control screen brightness in androidMount iscsi drive at boot - system haltsUnable to connect to certain IP address, but able to connect to other IP in same subnetTurn off network on RaspbianHow to regenerate 70-persistent-net.rules without reboot?How to turn off Wireless power management permanentlyfreeze while turning monitor off with xrandr
looking for citation, pīti and sukha of 4 jhānas compared to dying of thirst, seeing water in distance, and drinking it
Should the average user with no special access rights be worried about SMS-based 2FA being theoretically interceptable?
When is it acceptable to write a bad letter of recommendation?
Which place in our solar system is the most fit for terraforming?
A high quality contribution but an annoying error is present in my published article
A food item only made possible by time-freezing storage?
How do you use the interjection for snorting?
Is the mass of paint relevant in rocket design?
How can I repair this gas leak on my new range? Teflon tape isn't working
What is the need of methods like GET and POST in the HTTP protocol?
Would Taiwan and China's dispute be solved if Taiwan gave up being the Republic of China?
What is the meaning of "heutig" in this sentence?
Is there a way to hide HTML source code yet keeping it effective?
Social leper versus social leopard
Meaning of 'ran' in German?
Could Apollo astronauts see city lights from the moon?
Strange Sticky Substance on Digital Camera
Is there any iPhone SE out there with 3D Touch?
1, 2, 4, 8, 16, ... 33?
Is it impolite to ask for an in-flight catalogue with no intention of buying?
My manager quit. Should I agree to defer wage increase to accommodate budget concerns?
while loop factorial only works up to 20?
Does wetting a beer glass change the foam characteristics?
Going to France with limited French for a day
How to make 'ip link' settings persistent
Virtual Interface Not Showing up in ifconfig?Turn system on by USB keyboard?Linux - Only first virtual interface can ping external gatewaylinux/shell command to control screen brightness in androidMount iscsi drive at boot - system haltsUnable to connect to certain IP address, but able to connect to other IP in same subnetTurn off network on RaspbianHow to regenerate 70-persistent-net.rules without reboot?How to turn off Wireless power management permanentlyfreeze while turning monitor off with xrandr
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm turning off the spoof checking for a specific virtual interface on my Linux box. However this setting is not persistent after a reboot. How can I make it persistent?
From my understanding ip settings should be persistent per se. Am I missing something?
I'm using this command to turn off spoof checking:
ip link set <interface-name> vf <vf-number> spoof off
After running the command I can verify that spoof checking is off:
vf 10 MAC 00:00:00:00:00:00, spoof checking off, link-state auto
However after a reboot I can see it being turned on again.
linux
migrated from stackoverflow.com Mar 28 at 22:55
This question came from our site for professional and enthusiast programmers.
add a comment
|
I'm turning off the spoof checking for a specific virtual interface on my Linux box. However this setting is not persistent after a reboot. How can I make it persistent?
From my understanding ip settings should be persistent per se. Am I missing something?
I'm using this command to turn off spoof checking:
ip link set <interface-name> vf <vf-number> spoof off
After running the command I can verify that spoof checking is off:
vf 10 MAC 00:00:00:00:00:00, spoof checking off, link-state auto
However after a reboot I can see it being turned on again.
linux
migrated from stackoverflow.com Mar 28 at 22:55
This question came from our site for professional and enthusiast programmers.
Actuallyip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses
– LL3
Mar 29 at 1:25
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38
add a comment
|
I'm turning off the spoof checking for a specific virtual interface on my Linux box. However this setting is not persistent after a reboot. How can I make it persistent?
From my understanding ip settings should be persistent per se. Am I missing something?
I'm using this command to turn off spoof checking:
ip link set <interface-name> vf <vf-number> spoof off
After running the command I can verify that spoof checking is off:
vf 10 MAC 00:00:00:00:00:00, spoof checking off, link-state auto
However after a reboot I can see it being turned on again.
linux
I'm turning off the spoof checking for a specific virtual interface on my Linux box. However this setting is not persistent after a reboot. How can I make it persistent?
From my understanding ip settings should be persistent per se. Am I missing something?
I'm using this command to turn off spoof checking:
ip link set <interface-name> vf <vf-number> spoof off
After running the command I can verify that spoof checking is off:
vf 10 MAC 00:00:00:00:00:00, spoof checking off, link-state auto
However after a reboot I can see it being turned on again.
linux
linux
asked Mar 28 at 16:52
Tobias HofmannTobias Hofmann
112 bronze badges
112 bronze badges
migrated from stackoverflow.com Mar 28 at 22:55
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Mar 28 at 22:55
This question came from our site for professional and enthusiast programmers.
migrated from stackoverflow.com Mar 28 at 22:55
This question came from our site for professional and enthusiast programmers.
Actuallyip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses
– LL3
Mar 29 at 1:25
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38
add a comment
|
Actuallyip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses
– LL3
Mar 29 at 1:25
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38
Actually
ip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses– LL3
Mar 29 at 1:25
Actually
ip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses– LL3
Mar 29 at 1:25
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38
add a comment
|
2 Answers
2
active
oldest
votes
In such cases I would run the command at startup, depending on your Linux version there's usually a method to run custom commands at startup.
add a comment
|
I found a custom shell script on the system that does ip related changes and that gets executed after each reboot. I simply added the ip link at the bottom and now it works as expected.
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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/4.0/"u003ecc by-sa 4.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%2funix.stackexchange.com%2fquestions%2f509332%2fhow-to-make-ip-link-settings-persistent%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
In such cases I would run the command at startup, depending on your Linux version there's usually a method to run custom commands at startup.
add a comment
|
In such cases I would run the command at startup, depending on your Linux version there's usually a method to run custom commands at startup.
add a comment
|
In such cases I would run the command at startup, depending on your Linux version there's usually a method to run custom commands at startup.
In such cases I would run the command at startup, depending on your Linux version there's usually a method to run custom commands at startup.
answered Mar 28 at 23:35
Alaa HoussamyAlaa Houssamy
247 bronze badges
247 bronze badges
add a comment
|
add a comment
|
I found a custom shell script on the system that does ip related changes and that gets executed after each reboot. I simply added the ip link at the bottom and now it works as expected.
add a comment
|
I found a custom shell script on the system that does ip related changes and that gets executed after each reboot. I simply added the ip link at the bottom and now it works as expected.
add a comment
|
I found a custom shell script on the system that does ip related changes and that gets executed after each reboot. I simply added the ip link at the bottom and now it works as expected.
I found a custom shell script on the system that does ip related changes and that gets executed after each reboot. I simply added the ip link at the bottom and now it works as expected.
answered Apr 3 at 23:13
Tobias HofmannTobias Hofmann
112 bronze badges
112 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f509332%2fhow-to-make-ip-link-settings-persistent%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
Actually
ip
settings are just “live” configurations: they are always lost on reboot. However, there are ways to make them automatically loaded on boot but the way to do it depends on your specific distribution and what kind of network manager it uses– LL3
Mar 29 at 1:25
I'm using CentOS 7.6. I tried adding the 'ip link set' command into /etc/rc.d/rc.local After a reboot the spoof is still in its default settings. I also ensured that rc.local has execution permissions.
– Tobias Hofmann
Apr 2 at 16:16
Sorry I'm not CentOS nor RedHat expert so I can't advise you precisely. As general hints I can tell that it might be because the rc.local file actually does not get executed; or it does get executed, but before the network manager which thus overwrites your configuration
– LL3
Apr 2 at 16:38