I'm working on a wifi lab project for my students where they can learn about wifi without needing physical equipment. I've stumbled upon a couple of projects: mininet-wifi for simulating wifi stations and Containernet to containerize each station. My goal is to have the containers in my simulated network run on a bare-metal server with their own IPs. Specifically, I want to give the VM three network interfaces and allow the two containers to use those interfaces, maybe in a bridge-like setup. I've read that it's not ideal to give containers direct access to the host network but I really need this setup. Any suggestions on how to make this work?
2 Answers
Yeah, definitely go with macvlan. This way, your containers can communicate on the same network as your bare-metal server without cramming everything through the host's IP. Just make sure to set it up correctly in your Docker Compose file to avoid network conflicts!
You might want to use the macvlan driver instead of the host network mode. The host mode allows the container to share the host's IP and network stack, but macvlan creates a unique MAC address for each container. That way, your containers can request a separate IP address on the network, which should fit well with what you’re trying to achieve.

Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically