![]() ![]() The second command generates a MACVLAN interface named mynet-shim on the Docker host The first command generates a Docker MACVLAN with the reserved IP address 192.168.178.223, so that it is not used by Docker when creating containers. Ip link add mynet-shim link eno1 type macvlan mode bridge This is a confoguration example for docker macvlan with host connection how I did it: docker network create -d macvlan -o parent=eno1 \ It can also communicate with other devices on the network without any problems.īut be careful: It can no longer communicate with the Docker Host, because the host network and possible MACVLANS or other Docker networks are decoupled.įor this you have to set up a loopback an tell your host machine how to cummincate with your macvlan containers. If you generate a MACVLAN and assign a unique address to your container, it will become a standalone device on your network. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |