Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Using the Contrail and VMWare vCenter User Interfaces to Manage the Network

You can install Contrail to work with the VMware vCenter Server in various vSphere environments and use the Contrail user interface and the vCenter user interface to configure and manage the integrated Contrail system.

Overview: User Interfaces for Contrail Integration with VMware vCenter

This topic shows how to use the Contrail user interface and the vCenter user interface to configure and manage features of a Contrail VMware integrated system.

The two user interfaces are available after installing the integrated Contrail system, see Installing and Provisioning VMware vCenter with Contrail .

When Contrail is integrated with VMware vCenter, the following two user interfaces are used to manage and configure features of the system.

Contrail Administration User Interface

The Contrail UI is an administrator’s user interface. It provides a view of all components managed by the Contrail controller.

To log in to the Contrail UI, use your Contrail server main IP address URL as follows:

https://<Contrail IP>:8143

Then log in using your registered Contrail account administrator credentials.

Contrail vCenter User Interface

The Contrail vCenter user interface (vCenter UI) is a subset of the Contrail administration UI. The Contrail vCenter UI provides a view of all of the virtual components within a Contrail vCenter project.

Note:

This is applicable only to the vCenter-only mode.

To access the login page for the Contrail vCenter UI, use your Contrail IP address URL as follows:

https://<Contrail URL>:8143/vcenter

Then use the vCenter registered account log in name and password to access the Contrail vCenter UI.

Upon successful login, the Contrail vCenter user interface is displayed, as in the following example.

Juniper Networks interface screenshot showing Networking under Monitor. Focus on Projects in default-domain:Center with vCenter and Raw VM icons.

Feature Configuration for Contrail vCenter

This section shows how to use the Contrail UI and the Contrail vCenter UI to configure features for the Contrail vCenter integrated system.

Creating a Virtual Network

This section describes how to create a virtual network using the Contrail UI and the Contrail vCenter UI.

Create Virtual Network – Contrail UI

After logging in to the Contrail UI, select Configure > Networking > Networks to access the Networks window.

Juniper Networks Contrail Networking dashboard interface for managing virtual networks with no current configurations.

At Networks, click the plus icon ( +)to access the Create Network window.

Complete the fields in the Create Network window. Provide a Primary VLAN value and a Secondary VLAN value as part of a Private VLAN configuration. Private VLAN pairs are configured on a Distributed Virtual Switch. Select the values for the Primary and Secondary VLANs from one of the configured, isolated, private-vlan pairs.

The following figure shows the creation of a virtual network named Green-VN.

Click Save to create the virtual network.

Create Network configuration screen with fields for Name Green-VN, Primary VLAN 100, Secondary VLAN 101, Network Policies dropdown, Subnets section with IPAM vCenter-ipam, CIDR 192.168.1.0/24, Allocation Pools, Gateway 192.168.1.1, DNS and DHCP checked. Expandable sections for Host Routes, Advanced Options, and Floating IP Pools. Cancel and Save buttons at the bottom.

The virtual network just created (Green-VN) is displayed with its details, as in the following figure.

Juniper Networks Contrail Networking section showing virtual network Green-VN with subnet 192.168.1.0/24, gateway 192.168.1.1, DNS and DHCP enabled.

Create Virtual Networks – Contrail vCenter UI

You can also create a virtual network in the vCenter UI, and view and manage it from either the vCenter UI or the Contrail UI.

Note:

This is applicable only to the vCenter-only mode.

In vCenter, a virtual network is called a port group, which is part of a distributed switch.

Log in to the vCenter client UI (https://<Contrail URL>:9443/vsphere-client).

To start creating a virtual network (distributed port group), click the distributed virtual switch (dvswitch) on the left panel.

The following figure shows the demo_dvswitch has been selected for this example.

To create a virtual network (vCenter port group), at the bottom of the window, click Create a new port group .

VMware vSphere Web Client interface displaying vSphere Distributed Switch configuration and tasks like adding hosts and managing the switch.

When you click Create a new port group, the Create Distributed Port Group window is displayed, as in the following figure.

Enter the name of the virtual network. Select the VLAN type, then select other details for the selected VLAN type.

The following figure shows the Create Distributed Port Group window with the example creation of a virtual network named Red-VN, with a Private VLAN and isolated private VLAN ports 102, 103.

When you are finished, click Next.

Create Distributed Port Group window in VMware vSphere with properties set: Name Red-VN, Number of Ports 128, VLAN type Private VLAN, Private VLAN Entry Isolated 102, 103.

The Ready to Complete window is displayed, see the following figure. It shows the details entered for the virtual network (distributed port group).

If changes are needed, click Back. If the details are correct, click Finish to verify the port group details and complete its creation.

Configuration screen for VMware vSphere Distributed Port Group. Name: Red-VN. 128 ports. VLAN: Private. Primary ID: 102, Secondary ID: 103, Type: Isolated. Options: Finish or Cancel.

Next, create IP pools for the virtual network port group. Select the datacenter name in the left side panel, then click the IP Pools tab.

The following figure shows the IP Pools tab for the datacenter named demo_dc.

Screenshot of VMware vSphere client showing VM demo_AK's network settings: IPv4 address, subnet mask, gateway, DNS; IPv6 not configured; network Green-In.

Near the top of the IP Tools window, click Add to open the New IP Pool Properties window, as in the following figure. The IP Pool Properties window has several tabs across the upper area. Ensure the IPv4 tab is selected, and enter a name for the IP pool. Then enter the IP pool IPv4 details, including subnet, gateway, and IP address ranges. To enable IP address pools, select Enable IP Pool.

Configuration window for new IP pool setup with fields for IP Pool Name ip-pool-for-Red-VN, Subnet 192.168.2.0/24, Gateway 192.168.2.1, and a checked Enable IP Pool option. Tabs include IPv4, IPv6, DHCP, and more. Buttons for Help, OK, and Cancel are present.

In the New IP Pool Properties window, click the Associations tab to select the networks that should use the IP address pool you are creating. This tab enables you to associate the IP pool with the port group.

The following figure of the Associations tab shows that the IP pool being created should be associated with the virtual network port group named Red-VN.

When you are finished, click OK.

New IP Pool Properties window for virtual network setup with IP Pool Name ip-pool-for-Red-VN. Red-VN network selected.

To verify that the virtual network is created and visible to Contrail, in the Contrail UI, select Configure > Networking > Networks to display Contrail network information.

The virtual network just created (Red-VN in this example) is displayed in the Networks window, see the following.

Networking configuration interface from Juniper Networks showing virtual networks Green-VN and Red-VN with subnets 192.168.1.0/24 and 192.168.2.0/24, both networks are up and not shared. Red-VN details include CIDR 192.168.2.0/24, gateway 192.168.2.1, DNS enabled, DHCP enabled. Navigation menu on left for managing ports, policies, security groups, IP address management, DNS. Header has alerts, user settings, search bar.

Delete Virtual Network – Contrail UI

You can delete a virtual network in either the Contrail UI or in the vCenter UI. This section shows you how to delete a virtual network in the Contrail UI.

In the Contrail UI, select Configure > Networking > Networks to display Contrail network information.

Select the network you want to delete, then click the trashcan icon.

Juniper Networks interface showing virtual networks Green-VN and Red-VN with subnets 192.168.1.0/24 and 192.168.2.0/24, policies disabled.

A Confirm window is displayed. Click Confirm to delete the selected network.

Juniper Networks interface showing a dialog box to confirm deletion of a virtual network with options Cancel and Confirm.

Delete Virtual Networks – vCenter UI

You can also delete a virtual network from the vCenter UI. From the vCenter UI, in the left side panel, right-click the port-group (virtual-network) you want to delete. In the menu, select Delete to delete the selected port group. An example is shown in the following.

VMware vSphere Web Client interface for managing a Distributed Port Group with diagram, tasks link, and context menu options.

When deleting a port group (virtual network) using the vCenter UI, you must also delete the IP pool associated with the port group. Select the IP Pools tab, and right click the name of the IP pool associated with the port group being deleted. From the menu, select Remove to delete the IP pool.

The following shows the deletion of the IP pool associated with the Red-VN from the vCenter UI.

Networking configuration interface screenshot from a virtualization platform showing demo_dc data center details, IP Pools tab with IPv4 settings: Subnet 192.168.2.0, Gateway 192.168.2.1, Range 192.168.2.2-192.168.2.253.

Creating a Virtual Machine

Use the vCenter client interface to create a virtual machine for your VMware vCenter Contrail integrated system. This section describes how to create a virtual machine using a virtual machine template from the vCenter client interface.

Create a Virtual Machine – vCenter UI

From the vCenter UI, select the virtual machine template from the left side panel. At the bottom of the right side pane, click Deploy to deploy a new virtual machine.

The following figure shows the vm-template-ubuntu-12.04.2 virtual machine selected.

VMware vSphere interface showing VMs and Templates section with navigation panel, template explanation, and task links.

The Deploy Template Name and Location window is displayed, as in the following. Specify a name for the virtual machine and select the datacenter on which the virtual machine is to be spawned.

When you are finished, click Next.

Deploy Template wizard in VMware vSphere, Name and Location step. VM name entered as Red-VM-v1-1. Inventory options: demo_dc, kd_1node_dc, sunil_dc. Navigation steps: Host/Cluster, Resource Pool, Guest Customization, Ready to Complete.

The Host/Cluster window is displayed, as in the following. Select the cluster on which to spawn the virtual machine.

When you are finished, click Next.

Deploy Template wizard in VMware vSphere showing Host/Cluster selection step with data center demo_dc and cluster demo_cluster visible.

The Specify a Specific Host window is displayed, as in the following. Select the ESXi host on which to spawn the virtual machine.

When you are finished, click Next.

Deploy Template wizard step to select a specific host within a cluster in VMware vSphere. Host 10.84.23.39 selected with validation succeeded. Navigation buttons Back, Next, and Cancel are available.

In the Storage window, select the destination storage location for the virtual machine.

When you are finished, click Next.

Deploy Template wizard in VMware vSphere showing Storage step with dropdown for disk format selection, VM Storage Profile details, available datastores, and navigation buttons.

On the Guest Customization window, the typical selection is Do not customize. Select Do not customize.

When you are finished, click Next.

Deploy Template wizard in Guest Customization step with options to not customize, use Customization Wizard, or existing specification.

On the Ready to Complete window, review all of the virtual machine definitions that you have selected for the template.

If all the selections are correct, click Finish. This spawns the virtual machine.

Screenshot of software interface for deploying a virtual machine. Shows Ready to Complete step with settings like template vm-template-ubuntu-12.042 and name Red-VM-VM1. Includes buttons for Help Back Finish and Cancel.

To complete the settings for the virtual machine, select the virtual machine to be edited in the left column of the main window of the vCenter UI. Then click Edit virtual machine settings.

The Virtual Machine Properties window is displayed, as in the following. From here you can update the virtual machine properties.

Virtual machine management interface showing memory configuration details of a VM with hardware specifics highlighted.

Click the Hardware tab in the Virtual Machine Properties window. Next, click Add to add a NIC and select the appropriate network. Select Connect at power on, as in the following.

When you are finished, click OK.

Virtual Machine Properties window in VMware vSphere Client showing the addition of a new NIC with network label Red-VN demo_dvswitch. Connect at power on is selected. Adapter type is VMXNET 3. MAC address is set to Automatic. DirectPath IO is inactive. Network label dropdown includes Red-VN demo_dvswitch, contrail-fab-gg, VM Network, demo dvportgroup demo_dvswitch.

You are returned to the main vCenter UI window. Select the Getting Started tab. Select Power on the virtual machine. The virtual machine launches.

VMware vSphere Client screenshot showing virtual machines and hosts inventory with Red-VN-VM-1 details, including tasks like power on and edit settings.

Once the virtual machine is launched, you can view it from the Contrail UI. Select Monitor > Networking > Instances. The virtual machines are displayed in the Instances Summary window, as in the following.

Juniper Networks Contrail dashboard Instances Summary showing VM Red-VN-VM-1 on Red-VN vCenter network with IP 192.168.22.54.

You can also see real-time running information for the virtual machine in the vCenter UI. Select the virtual machine and the Console tab. Real-time information is displayed, including ping statistics, as in the following.

Virtual machine console in VMware vSphere showing Linux terminal with ifconfig and ping commands.

Configuring the vCenter Network in Contrail UI

The following items can be configured for the vCenter network by using the Contrail UI.

  • Network policy is configured by using the Contrail UI.

  • Security policy is configured by using the Contrail UI.

  • Public networks, floating IP address pools, and floating IP addresses are configured using the Contrail Administrator UI.

    When you configure a virtual network using the administrator UI, the network is a Contrail-only network. No resources are consumed on vCenter to implement this type of network. You can configure a floating IP address pool on the network, allocate floating IP addresses, and associate floating IP addresses to virtual machine interfaces (ports).