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.