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;








2















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.










share|improve this question














migrated from stackoverflow.com Mar 28 at 22:55


This question came from our site for professional and enthusiast programmers.



















  • 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

















2















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.










share|improve this question














migrated from stackoverflow.com Mar 28 at 22:55


This question came from our site for professional and enthusiast programmers.



















  • 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













2












2








2








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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.














  • 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

















  • 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
















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










2 Answers
2






active

oldest

votes


















0
















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.






share|improve this answer
































    0
















    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.






    share|improve this answer



























      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
      );



      );














      draft saved

      draft discarded
















      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









      0
















      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.






      share|improve this answer





























        0
















        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.






        share|improve this answer



























          0














          0










          0









          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.






          share|improve this answer













          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.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 28 at 23:35









          Alaa HoussamyAlaa Houssamy

          247 bronze badges




          247 bronze badges


























              0
















              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.






              share|improve this answer





























                0
















                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.






                share|improve this answer



























                  0














                  0










                  0









                  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.






                  share|improve this answer













                  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.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Apr 3 at 23:13









                  Tobias HofmannTobias Hofmann

                  112 bronze badges




                  112 bronze badges































                      draft saved

                      draft discarded















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                      SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                      은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현