meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:docker:network [2020/03/17 07:51] – niziak | linux:docker:network [2020/03/20 20:13] (current) – niziak | ||
---|---|---|---|
Line 10: | Line 10: | ||
By default docker try to choose not conflicting addressing scheme: | By default docker try to choose not conflicting addressing scheme: | ||
- | < | + | < |
- | 172.17.0.0/ | + | |
- | " | + | |
- | </ | + | |
but sometimes it doesn' | but sometimes it doesn' | ||
Line 27: | Line 24: | ||
Will assign 16 bit class for docker daemon, and docker daemon will create 24 bit network per each network. | Will assign 16 bit class for docker daemon, and docker daemon will create 24 bit network per each network. | ||
+ | |||
+ | Another example: | ||
+ | <file json | / | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | {" | ||
+ | {" | ||
+ | ] | ||
+ | } | ||
+ | </ | ||
====== How to connect container to real network ====== | ====== How to connect container to real network ====== | ||
Line 97: | Line 105: | ||
* Shared MAC address can affect DHCP operations. If your VMs or containers use DHCP to acquire network settings, make sure they use unique ClientID in the DHCP request and ensure your DHCP server assigns IP addresses based on ClientID, not client’s MAC address. | * Shared MAC address can affect DHCP operations. If your VMs or containers use DHCP to acquire network settings, make sure they use unique ClientID in the DHCP request and ensure your DHCP server assigns IP addresses based on ClientID, not client’s MAC address. | ||
* Autoconfigured EUI-64 IPv6 addresses are based on MAC address. All VMs or containers sharing the same parent interface will auto-generate the same IPv6 address. Ensure that your VMs or containers use static IPv6 addresses or IPv6 privacy addresses and disable SLAAC. | * Autoconfigured EUI-64 IPv6 addresses are based on MAC address. All VMs or containers sharing the same parent interface will auto-generate the same IPv6 address. Ensure that your VMs or containers use static IPv6 addresses or IPv6 privacy addresses and disable SLAAC. | ||
+ | |||
+ | **NOTE**: Both modes requires support from HW to use multiple MAC. Without it device needs to be switched into promiscuous mode, which is not easy. Working methods: | ||
+ | * Virtualbox on host machine - during host machine startup it sets own driver | ||
==== macvlan details ==== | ==== macvlan details ==== |