What is the best way to make network namespaces persistant?

Latest response

Hi,

Using RHEL 7.3, what would be the best way to create persistant network namespaces? I have multiple NICs on my servers and I need to place each of them in a separate netns (i.e: ip link set eth1 netns mpls1).

I can write a script that will do this at boot time, but I need to handle cases where the user might do a "systemctl restart network" and probably some other cases I didn't think about. Does RHEL support a way to do this in the networking scripts?

Responses