GNS3 / gns3-server

GNS3 server
GNU General Public License v3.0
798 stars 263 forks source link

Docker containers MAC addresses change after a restart #2412

Closed yoennb closed 1 week ago

yoennb commented 1 month ago

Hello,

I use the GNS3 VM version 2.2.49 on VMWare ESXi. I added a few docker containers in my project (based on different images, e.g webterm), and noticed that their MAC address changes after being stopped and restarted. This makes it inconvenient to create static DHCP mappings.

I did not observe this behavior when running containers on my docker engine, and I see that docker network is disabled on containers managed by GNS3, so I assume docker has no control over this.

Is this the expected behavior? I did not find any documentation on that topic.

Thanks for the help!

grossmj commented 1 week ago

This is unsupported for Docker containers. We have to check how we could add it.

grossmj commented 1 week ago

I remember we already tried to implement this and this is my answer at that time: https://github.com/GNS3/gns3-server/issues/2034#issuecomment-1277180857

grossmj commented 1 week ago

We have added support for configuring custom MAC addresses.

yoennb commented 1 week ago

Excellent, thank you!