Docker & multiple mac addresses?

ncage

Member
Jan 28, 2022
12
1
23
51
I have docker hosted in a VM. Some of my docker containers (not all ) need traffic shaping at network appliance. So i need these containers to have their own mac address. In docker speak i'm using a macvlan network. The vm is using a proxmox bridge adapter. In the vm i set promiscuous mode on the adapter. I have two linux containers on this docker macvlan network. I found the containers could ping each other but neither could communicate with the network appliance (on the same subnet). The way the network appliance is configured is with a vlan but some of the containers. in the vm are on the default vlan (1).

1. I have not configured a vlan on the proxmox adapter. I assume i need to do this but if i do will i break the other containers that are not on the vlan?
2. Do i need to ssh into the promox server & set promiscuous on on the specific network interface.

To make things slightly more complicated this VM is setup to live migrate (on a 3 node cluster).

any help would be appreciated.

thanks....