Prepare for the Macvlan environment-5 minutes a day to play Docker container Technology (54)

Source: Internet
Author: User
Tags prepare

In addition to Overlay,docker, another Driver:macvlan has been developed to support cross-host container networks.

The Macvlan itself is the Linxu kernel module, which allows multiple MAC addresses to be configured on the same physical network card, that is, multiple interface, each of which can be configured with its own IP. Macvlan is essentially a network card virtualization technology, it's not surprising that Docker implements a container network with Macvlan.

The biggest advantage of Macvlan is the excellent performance, compared to other implementations, Macvlan does not need to create a Linux bridge, but instead connects directly to the physical network via an Ethernet interface. Now let's create a Macvlan network.

Prepare the lab environment

We will create Macvlan using a separate NIC Enp0s9 on Host1 and Host2. To ensure that the network packets for multiple MAC addresses are available from ENP0S9, we need to turn on the promiscuous mode of the NIC.

IP link set enp0s9 promisc on

Make sure the Enp0s9 status up and Promisc mode is in effect.


Because Host1 and Host2 are VirtualBox virtual machines, you also need to set promiscuous mode on the NIC configuration Options page.

Current Lab Environment:

Ready, next section we create a Macvlan network.

Prepare for the Macvlan environment-5 minutes a day to play Docker container Technology (54)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.