Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Example: Creating Virtual Networks and Containers

 

Log in to Contrail Web UI, navigate to Configuration->Networking->Policies, and create a network policy policy_1.

  1. Create two networks 10.xxx.1.0/24 and 10.xxx.2.0/24.
  2. Verify that the services contrail-vrouter-agent, contrail-vrouter-nodemgr, contrail-cnm-plugin, and Docker Daemon service are running on both the Windows computes by running the contrail-status.ps1 PoweShell script.

    You can obtain the script from https://github.com/Juniper/contrail-windows/blob/master/scripts/contrail-status.ps1.

    This script verifies that all the Windows services are running as shown in the following example:.

  3. Create compute1 on the first compute.
  4. Create docker containers on first compute.
  5. Review container1 on the first Windows compute node. Locate the endpoints information and verify that it has the correct IP address assigned from the previously configured IP address pool.
  6. Run interactive shell inside container1 on the first Windows compute node.
  7. Repeat steps 3 to 6 on compute2 to create container2 and network_2.
  8. Create a second docker container container3 on network_2 on the second Windows compute node.
  9. Run interactive shell inside container2 on the second Windows compute node.
  10. Enable security group on the controller to Allow ANY ingress and Allow ANY egress.
  11. Verify that you can ping container3 from container2.
  12. Verify that you can ping container1 from container2.
  13. Verify the TCP traffic from container3 to container1.
    1. Run the following commands from the interactive session in container3 on the second Windows compute node.

    2. Run the following command from the interactive session in container1 on the first Windows compute node. Verify that you receive the server response containing the web page you created in step 13.

  14. Set up UDP listener on container3 on the second Windows compute node.
  15. Send UDP packet from container1 on the first Windows compute node.
    1. Receive payload from UDP server.

    2. Verify the payload.

  16. Configure policy to deny TCP traffic alone.
  17. Verify that traffic in step 13 is blocked.
  18. Create floating IP pool and share it with admin project.
  19. Create Floating IP from Contrail Web UI. Assign the floating IP to the IP pool created in step 18 and set IP address to network_2.
  20. Assign the floating IP address created in step 18 to the port (Ports tab) that belongs to container2.
  21. Assign the floating IP created in step 18 to port (Ports tab) that belongs to container3.
  22. Set up a UDP listener on container2. Enter the following PowerShell instructions in the interactive console of container2 on the second Windows compute node.
  23. Repeat step 22 for container3.
  24. Send multiple UDP packets from container1 on the first Windows compute node. Use different source ports. Set the floating IP created in step 18 as destination address. Use 5000 as used in step 22 as the destination port.