0

I have created a network namespace, but after I have reboot, it've been removed. I don't found an answer at this problem on the internet, so this is why I'm asking you : Is there a way to keep a network namespace up with its configuration after reboot ?

1
  • You can't keep anything after a reboot. So make a script that creates your namespace(s) with the correct configuration, and execute the script after boot (or as part of the boot process).
    – dirkt
    Sep 26 '18 at 12:38
0

You can create a script that is run at startup and arrange to have it run by calling it from /etc/rc.local or link it (ie. hook it) to another script that runs at startup, or even link it to the init system (init scripts/systemd etc). I found, on some systems, that it works if you add it to /etc/network/interfaces

1
  • 1
    Thanks for your answer. I will create a script and see what's happen when I restart !
    – Pepec
    Sep 27 '18 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.