Bookmark this page

Guided Exercise: Configuring Hosts to Use Logical Networks

In this exercise, you will configure hosts to use logical networks to separate different types of traffic in a cluster.

Outcomes

You should be able to connect the new logical networks from the preceding exercise to RHV-H hosts in the clusterone cluster:

  • vm-net (on VLAN 10) is on the host's eth0 network interface for each host.

  • storage-net is on the host's eth1 network interface for each host.

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

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

[student@workstation ~]$ lab networks-host start
  1. Log in to workstation and open Firefox. Using the https://rhvm.lab.example.com URL, go to the RHV-M web interface. Click on the Administration Portal link and log in to the web interface as the admin user with the internal profile, using redhat as password.

  2. Attach the existing storage-net and vm-net logical networks to the hostb host. The logical network vm-net should be on eth0, and using DHCP to get an address. The logical network storage-net should be on eth1, and should statically set its IPv4 address on this host to 172.24.0.11 with a 255.255.255.0 netmask.

    1. Click the Compute on the menu and select Hosts.

    2. From the list of available hosts, click on hostb.lab.example.com to select it.

    3. In the upper part of the page, click on the Network Interfaces tab.

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

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

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

    7. Click on the pencil icon inside the storage-net box. In the Edit Network storage-net dialog window, under Boot Protocol, click the radio button next to Static label.

    8. In the IP field, type 172.24.0.11 as the IP address of hostb on the network.

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

    10. Click OK to save the settings.

    11. Ensure that 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.

Finish

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

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

This concludes the guided exercise.

Revision: rh318-4.3-c05018e