What is the network structure of calico? -5 minutes a day to play Docker container technology (68)

Source: Internet
Author: User

In the previous section we deployed the Calico network, and today we will run the container and analyze the Calico network structure.

Run the container bbox1 in host1 and connect to Cal_net1:

Docker container run--net cal_net1--name bbox1-tid busybox

View the Bbox1 network configuration.

Cali0 is a calico interface, with an assigned IP of 192.168.119.2. Cali0 corresponds to the interface cali5f744ac07f0 of host1 number 11.

Host1 will be the router responsible for forwarding the destination address to the BBOX1 packet.

All data sent to Bbox1 will be sent to cali5f744ac07f0 because Cali5f744ac07f0 and Cali0 are a pair of Veth Pair,bbox1 can receive data.

The HOST1 network structure is shown in the following illustration:

Next we run the container bbox2 in host2 and connect to Cal_net1:

Docker container run--net cal_net1--name bbox2-tid busybox

IP is 192.168.183.65.

Host2 added two routes:

The destination address is the route of the Host1 container subnet 192.168.119.0/26.

The destination address is the route of the local Bbox2 container 192.168.183.65.

Similarly, host1 also automatically adds routes to 192.168.183.64/26.

Having completed these preparations, we will discuss the connectivity of the Calico network in the next section.


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.