Is there a way I can move a secondary IP into its own namespace while keeping the primary IP on the original device?
If I have 10.0.0.1 and 10.0.0.2 on device eth0, but I want 10.0.0.2 to be in its own netns
test, the closest I've come to that involves adding a veth pair and a bridge, and moving the eth0 primary IP to the bridge:
netns: test netns: default ============== =============================== vethB:10.0.0.2 <-> vethA <-> br0:10.0.0.1 <-> eth0
Unfortunately moving the 10.0.0.1 IP off of eth0 will confuse a few opaque legacy applications on the box, so I'd prefer to keep that on eth0.