Persist OVS Port Mirror After Reboots

0xBEN

Member
May 6, 2020
13
0
21
I'll keep the post short and to the point:

I have successfully configured a port mirror using ovs-vsctl.
I have read somewhere that I can add the mirror to /etc/network/interfaces in order for it to persist reboots.
However, I don't know the exact syntax to use. Can anyone advise how to add the mirror to the interfaces file?

Thank you in advance.
 
What about issuing that command in a post-up line of the interface? Disclaimer: I don't really have much experience with OVS.
 
What about issuing that command in a post-up line of the interface? Disclaimer: I don't really have much experience with OVS.
Sad to say that did not seem to do the trick.
Guess I'm going to have to do what everyone else seems to do -- write a script.
Thanks for the suggestion, though.