Manage vNICs and security groups

This section contains the following topics:

Create a vNIC

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Storage > vNICs.

  1. Click Create.

  1. Configure vNIC parameters as needed.

  1. Click Create.

Table-1 Configure vNIC parameters

Parameter

Description

Owner

Specify the user that uses the vNIC.

A cloud administrator can select the current account or any other account. An organization administrator can select the current account or any other account in the organization. A common user can select only the current account.

Network

Specify the network to which the vNIC belongs.

IP Address

Specify an IP address for the vNIC.

If you do not specify an IP address, the system automatically assigns an IP address from the specified network to the vNIC.

MAC

Specify a MAC address for the vNIC.

If you do not specify a MAC address, the system automatically assigns a MAC address to the vNIC.

Security Groups

Specify security groups for the vNIC.

As a best practice, specify only one security group for a vNIC. This is because even if multiple groups are specified, only one randomly selected group takes effect, which might cause confusion.

 

Attach vNICs to a cloud host

For a cloud host to communicate with a network, you must first attach a vNIC for the network to the cloud host.

To attach vNICs to a cloud host:

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Compute > Cloud Hosts.

  1. Click the More Actions icon  for a cloud host, and then select Attach vNIC.

  1. Click the Attach icon  for the target vNICs. To configure the vNIC as the default gateway, click the icon next to the Attach icon.

Edit security groups for a vNIC

Perform this task to change the security groups to which a vNIC belongs.

As a best practice, specify only one security group for a vNIC. This is because even if multiple groups are specified, only one randomly selected group takes effect, which might cause confusion.

 

To edit security groups for a vNIC:

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Compute > vNICs.

  1. Click the Edit Security Group icon  for a vNIC.

  1. Add or remove security groups as needed.

  1. Click OK.

Configure excluded IPs

Perform this task to specify reserved IP addresses for a vNIC to allow the attached cloud host to communicate by using a reserved IP address. If a specified IP address is no longer in use, remove the IP address to release resources.

Make sure reserved IP addresses are configured for the legacy network. For more information, see networks in Network and Security.

 

To configure excluded IP addresses:

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Compute > vNICs.

  1. Click the Excluded IPs icon  for a vNIC.

  1. Enter an IP address to be excluded and then click Add. To remove an excluded IP, select the IP address, and then click Delete.

  1. Click OK.

Detach vNICs from a cloud host

If a cloud host does not need to communicate with a network, you can detach the vNIC for the network from the cloud host. If the vNIC is created along with the cloud host, the detach operation also deletes the vNIC. If the vNIC is created alone, it retains after the detach operation and can be attached to other cloud hosts.

To detach vNICs from a cloud host:

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Compute > Cloud Hosts.

  1. Click the More Actions icon  for a cloud host, and then select Detach vNIC.

  1. Click the Detach icon  for the target vNICs.

Delete vNICs

Perform this task to delete unused vNICs to release vNIC resources.

To delete vNICs:

  1. On the top navigation bar, click Cloud Services.

  1. From the left navigation pane, select Compute & Compute > vNICs.

  1. Perform either of the following tasks:

  1. Click OK.

Manage vNIC flavors

A resource flavor determines the specification of resources of this type that can be allocated to users.

Create a vNIC S-flavor

You can create only S-flavors and the flavor value can only be 1.

 

  1. On the top navigation bar, click Cloud O&M.

  1. From the left navigation pane, select Resource Flavors > Resource Flavors.

  1. Select vNIC from the Service Type list.

  1. On the S-Flavors tab, click Create.

  1. Create an S-flavor as needed.

  1. Click OK.

Delete vNIC S-flavors

  1. On the top navigation bar, click Cloud O&M.

  1. From the left navigation pane, select Resource Flavors > Resource Flavors.

  1. Select vNIC from the Service Type list.

  1. Perform either of the following tasks:

  1. Click OK.