Open almightiest opened 2 years ago
Hi,
You can add your script before this line:
It is so hard to take an abstraction of how everyone use netns, so please just treat my scripts as a template and roll your own ones that fit your requirements.
Thank you - i'll see if i can make that change and enable it via config and submit a PR - once i find some time :-D
Is there a way (that I'm currently not able to figure out) to configure netns to simply bring in an external "eno2" ethernet device and run dhcp4 on it? Bonus to disable ipv6. All of my vlan and routing is done in hardware (switch layer 2+, router). I'm just trying to isolate certain systemctl services to a single network, which gets pretty complicated outside of netns.
Here's the script I have to run after running
systemctl start netns@my_ns.service
:Ideally this would be done as part of the service itself. I took a look inside
netnsninit
script but didn't see any kind of option for this. Maybe I'm just overlooking it!