Managing Network Virtualization and Network Resources in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Commands for Configuring an Elastic Virtual Switch

This section describes how to perform the following tasks to configure an elastic virtual switch:

  • Creating an elastic virtual switch

  • Adding an IPnet to an elastic virtual switch

  • Adding a VPort to an elastic virtual switch

Creating an Elastic Virtual Switch

You use the evsadm create-evs command to create an elastic virtual switch. The command syntax is:

# evsadm create-evs [-T tenant-name] [-p {prop=value[,...]}[,..]] EVS-switch-name
–T tenant-name

Specifies the tenant. If you specify a tenant, then the elastic virtual switch is created within the namespace of that tenant. Otherwise, the elastic virtual switch is created in the default tenant sys-global. A tenant is a read-only property that represents the tenant with which an elastic virtual switch is associated.

–p prop

Specifies a comma-separated list of properties that you can set to the specified values on the elastic virtual switch. You can set the following properties:

  • maxbw - Sets the full-duplex bandwidth for the ports of the elastic virtual switch. The bandwidth is specified as an integer with a scale suffix (K, M, or G for Kbps, Mbps, and Gbps). If units are not specified, the input value is read as Mbps. There is no default bandwidth limit.

  • priority - Sets the relative priority for the ports of the elastic virtual switch. The possible values are high, medium, or low. The default value is medium. The priority is not reflected in any protocol priority fields on the wire but is used for packet processing scheduling within the system. A VPort with a high priority offers more latency depending on the availability of system resources.

EVS-switch-name

Specifies the name of the elastic virtual switch.

For an example that shows how to create an elastic virtual switch, see Example 6–3.

Adding an IPnet to an Elastic Virtual Switch

You use the evsadm add-ipnet command to add an IPnet to an elastic virtual switch. The command syntax is:

# evsadm add-ipnet [-T tenant-name] -p subnet=value[{,prop=value[,...]}[,...]]\
EVS-switch-name/IPnet-name
–T tenant-name

Specifies the name of the tenant. If you specify the tenant name, the IPnet is associated with the EVS in the tenant namespace.

–p prop

A comma-separated list of IPnet properties that you must set for the specific elastic virtual switch.

The supported properties for an IPnet are:

  • subnet - Mandatory. Represents the block of either IPv4 or IPv6 addresses. You must specify the subnet property when you add an IPnet. Otherwise, adding an IPnet fails.

  • defrouter - Optional. Specifies the gateway's IP address for the given subnet. When defrouter is not specified, the first address in the range is selected as the default router IP address.

EVS-switch-name/IPnet-name

Specifies the name of the elastic virtual switch with the associated IPnet.

For more information about IPnet properties, see the evsadm(1M) man page. For an example that shows how to add an IPnet to an elastic virtual switch, see Example 6–3.

Adding a VPort to an Elastic Virtual Switch

You use the evsadm add-vport command to add a VPort to an elastic virtual switch. The command syntax is:

# evsadm add-vport [-T tenant-name] [-p {prop=value[,...]}[,...]] EVS-switch-name/VPort-name
–p prop

Specifies a comma-separated list of VPort properties that you can set for the VPort. For more information about the supported VPort properties, see Table 5–1.

EVS-switch-name/VPort-name

Specifies the name of the elastic virtual switch with the associated VPort.

For an example that shows how to add a VPort to an elastic virtual switch, see Example 6–3.