Bookmark this page

Lab: Managing RHV Networks

Performance Checklist

In this lab, you will create additional logical networks for a new cluster, and configure hosts in the cluster to use the new networks.

Outcomes

You should be able to create additional logical networks and associate those networks with appropriate hosts and clusters.

Log in to workstation as student, using student as the password.

On workstation, run the lab networks-review start command. This command runs a start script that determines if the Red Hat Virtualization environment is configured and working.

[student@workstation ~]$ lab networks-review start
  1. You have a working production data center, which has a cluster named clustertwo. That cluster consists of the host hostc.lab.example.com.

    In the production data center, create a new logical network called prod-vm-net on VLAN 20 as a VM Network to separate virtual machine traffic from RHV management traffic. Assign this logical network to clustertwo.

    1. Log in to workstation as student user, using student as password. Open Firefox and log in to the Administration Portal, using the https://rhvm.lab.example.com URL. Use the admin user with the internal profile, and redhat as the password.

    2. In the Administration Portal dashboard, click Network, and then click Networks to access the network configuration for the data centers. Click the New button to create a new network. In the New Logical Network window, complete in the fields using the following information:

      Table 6.3. 

      Field Value
      Data Centerproduction
      Nameprod-vm-net
      DescriptionVM LAB network
      CommentNetwork for VM LAB traffic
      Enable VLAN TaggingEnabled
      In the text field next to Enable VLAN tagging, specify the VLAN number:20
      VM NetworkEnabled

    3. Leave the other options with their default values and click the OK button to create the network.

    4. Notice that the new network displays on the list of available networks. This confirms the creation of the new logical network.

  2. In the same data center, create another logical network called prod-storage. This network should not be VLAN tagged. The new logical network will be used to separate storage traffic from other traffic. Assign the logical network to clustertwo.

    1. Click the New button to create the new logical network.

    2. In the New Logical Network window, fill in the fields using the following information:

      Table 6.4. 

      Field Value
      Data Centerproduction
      Nameprod-storage
      DescriptionStorage Network LAB
      CommentNetwork for LAB storage traffic
      Enable VLAN TaggingDisabled
      VM networkDisabled

    3. Leave the other options with their default values and click the OK button to create the network.

    4. Notice that the new network appeared on the list of available networks. This confirms the creation of the new logical network.

  3. Attach the logical networks to network interfaces on hostc.

    Attach the prod-vm-net logical network to the eth0 network interface. The network configuration comes from the Dynamic Host Configuration Protocol (DHCP) server.

    Attach the prod-storage logical network to the eth1 network interface. Set the IPv4 address to 172.24.0.12, with the 255.255.255.0 netmask. Do not set a gateway for this logical network.

    1. Click the Compute then Hosts menu.

    2. From the list of available hosts, choose hostc.lab.example.com by clicking on it.

    3. Click on the Network Interfaces tab.

    4. Click the Setup Host Networks button to change that host network configuration.

    5. In the Setup Host hostc.lab.example.com Networks window, click and drag the prod-storage box from the right side to the left side of the window. Drop this box onto the no network assigned field, next to the eth1 network interface.

    6. Click and drag the prod-vm-net (VLAN 20) box from the right side to the left side of the window. Drop this box onto the eth0 interface field. After dropping, you should see two logical networks assigned to eth0 interface.

    7. Click the pencil icon inside the prod-storage box. In the Edit Network prod-storage dialog window, under Boot Protocol, select Static as the Boot Protocol.

    8. In the IP field, type in 172.24.0.12 as the IP address of hostc in that network.

    9. In the Netmask/Routing Prefix field, type 255.255.255.0 as the netmask.

    10. Click the OK button to save the settings.

    11. Ensure that the check boxes for the Verify connectivity between Host and Engine and Save network configuration options are selected.

    12. Click the OK button to confirm and save the new network configuration for that host.

    13. Both new logical networks in the clustertwo cluster are now accessible by the hostc host.

Evaluation

On workstation, run the lab networks-review grade command to confirm that you have completed this exercise successfully.

[student@workstation ~]$ lab networks-review grade

Finish

On workstation, run the lab networks-review finish script to complete this exercise.

[student@workstation ~]$ lab networks-review finish

This concludes the lab.

Revision: rh318-4.3-c05018e