cloudstack 15.6. Using Multiple Guest Networks

来源:互联网 发布:怎样开淘宝网店知乎 编辑:程序博客网 时间:2024/06/06 07:10

15.6. Using Multiple Guest Networks

In zones that use advanced networking, additional networks for guest traffic may be added at any time after the initial installation. You can also customize the domain name associated with the network by specifying a DNS suffix for each network.
A VM's networks are defined at VM creation time. A VM cannot add or remove networks after it has been created, although the user can go into the guest and remove the IP address from the NIC on a particular network.
Each VM has just one default network. The virtual router's DHCP reply will set the guest's default gateway as that for the default network. Multiple non-default networks may be added to a guest in addition to the single, required default network. The administrator can control which networks are available as the default network.
Additional networks can either be available to all accounts or be assigned to a specific account. Networks that are available to all accounts are zone-wide. Any user with access to the zone can create a VM with access to that network. These zone-wide networks provide little or no isolation between guests.Networks that are assigned to a specific account provide strong isolation.

15.6.1. Adding an Additional Guest Network

  1. Log in to the CloudStack UI as an administrator or end user.
  2. In the left navigation, choose Network.
  3. Click Add guest network. Provide the following information:
    • Name: The name of the network. This will be user-visible.
    • Display Text: The description of the network. This will be user-visible.
    • Zone. The name of the zone this network applies to. Each zone is a broadcast domain, and therefore each zone has a different IP range for the guest network. The administrator must configure the IP range for each zone.
    • Network offering: If the administrator has configured multiple network offerings, select the one you want to use for this network.
    • Guest Gateway: The gateway that the guests should use.
    • Guest Netmask: The netmask in use on the subnet the guests will use.
  4. Click Create.

15.6.2. Reconfiguring Networks in VMs

CloudStack provides you the ability to move VMs between networks and reconfigure a VM's network. You can remove a VM from a network and add to a new network. You can also change the default network of a virtual machine. With this functionality, hybrid or traditional server loads can be accommodated with ease.
This feature is supported on XenServer, VMware, and KVM hypervisors.

15.6.2.1. Prerequisites

Ensure that vm-tools are running on guest VMs for adding or removing networks to work on VMware hypervisor.

15.6.2.2. Adding a Network

  1. Log in to the CloudStack UI as an administrator or end user.
  2. In the left navigation, click Instances.
  3. Choose the VM that you want to work with.
  4. Click the NICs tab.
  5. Click Add network to VM.
    The Add network to VM dialog is displayed.
  6. In the drop-down list, select the network that you would like to add this VM to.
    A new NIC is added for this network. You can view the following details in the NICs page:
    • ID
    • Network Name
    • Type
    • IP Address
    • Gateway
    • Netmask
    • Is default
    • CIDR (for IPv6)

15.6.2.3. Removing a Network

  1. Log in to the CloudStack UI as an administrator or end user.
  2. In the left navigation, click Instances.
  3. Choose the VM that you want to work with.
  4. Click the NICs tab.
  5. Locate the NIC you want to remove.
  6. Click Remove NIC button. remove-nic.png: button to remove a NIC
  7. Click Yes to confirm.

15.6.2.4. Selecting the Default Network

  1. Log in to the CloudStack UI as an administrator or end user.
  2. In the left navigation, click Instances.
  3. Choose the VM that you want to work with.
  4. Click the NICs tab.
  5. Locate the NIC you want to work with.
  6. Click the Set default NIC button. set-default-nic.png: button to set a NIC as default one.
  7. Click Yes to confirm.

15.6.3. Changing the Network Offering on a Guest Network

A user or administrator can change the network offering that is associated with an existing guest network.
  1. Log in to the CloudStack UI as an administrator or end user.
  2. If you are changing from a network offering that uses the CloudStack virtual router to one that uses external devices as network service providers, you must first stop all the VMs on the network.
  3. In the left navigation, choose Network.
  4. Click the name of the network you want to modify.
  5. In the Details tab, click Edit. EditButton.png: button to edit a network
  6. In Network Offering, choose the new network offering, then click Apply.
    A prompt is displayed asking whether you want to keep the existing CIDR. This is to let you know that if you change the network offering, the CIDR will be affected.
    If you upgrade between virtual router as a provider and an external network device as provider, acknowledge the change of CIDR to continue, so choose Yes.
  7. Wait for the update to complete. Don’t try to restart VMs until the network change is complete.
  8. If you stopped any VMs, restart them.
0 0
原创粉丝点击