If I understand your comment, that’s why you use a virtual switch.
There’s an FAQ For that (the topic title is a clickable Link):