Go to main content

Managing Network Virtualization and Network Resources in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

How to Configure an Elastic Virtual Switch

Before You Begin

You need to set the EVS controller on the compute node on which you want to configure the elastic virtual switch. For information, see the step 2 in How to Configure an EVS Controller.

  1. Become an administrator or user with the Elastic Virtual Switch Administration rights profile.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Create an elastic virtual switch.
    # evsadm create-evs [-T tenant-name] [-p {prop=value[,...]}[,..]] EVS-switch-name

    For more information, see Creating an Elastic Virtual Switch.


    Note -  If you set a property explicitly for a virtual port, that property value overrides the corresponding elastic virtual switch property value.
  3. Add an IPnet to an elastic virtual switch.
    # evsadm add-ipnet [-T tenant-name] -p subnet=value[{,prop=value[,...]}[,...]] \
    EVS-switch-name/IPnet-name

    For more information, see Adding an IPnet to an Elastic Virtual Switch.

  4. (Optional) Add a VPort to an elastic virtual switch.
    # evsadm add-vport [-T tenant-name] [-p {prop=value[,...]}[,...]] EVS-switch-name/VPort-name

    When a VPort is added to the elastic virtual switch, it is assigned a random MAC address and an IP address from the IPnet address range. Therefore, you must first add an IPnet to the elastic virtual switch and then add the VPort. For more information about the evsadm add-vport command, see Adding a VPort to an Elastic Virtual Switch.


    Note -  You do not need to always add a virtual port to an elastic virtual switch. When a VNIC is created, you can specify only the name of the elastic virtual switch to which the VNIC must connect. In such cases, the EVS controller generates a system virtual port. These virtual ports follow the naming convention sys-vportname, for example, sys-vport0. The system virtual port inherits the elastic virtual switch properties.
  5. (Optional) Display the configured elastic virtual switch.
    # evsadm
Example 52  Configuring an Elastic Virtual Switch

The following example shows how to create the elastic virtual switch ORA, add the IPnet ora_ipnet, and add the VPort vport0 to the elastic virtual switch.

# evsadm create-evs ORA
# evsadm add-ipnet -p subnet=192.0.2.2/27 ORA/ora_ipnet
# evsadm add-vport ORA/vport0
# evsadm
NAME          TENANT        STATUS VNIC         IP                HOST
ORA           sys-global    idle   --           ora_ipnet         --
   vport0     --            free   --           192.0.2.2/27   --

The following example shows how to create the elastic virtual switch ORA with the tenant tenantA, add the IPnet ora_ipnet, and add the VPort vport0 to the elastic virtual switch.

# evsadm create-evs -T tenantA ORA
# evsadm add-ipnet -T tenantA -p subnet=192.0.2.0/27 ORA/ora_ipnet
# evsadm add-vport -T tenantA ORA/vport0
# evsadm
NAME          TENANT        STATUS VNIC         IP                HOST
ORA           tenantA       idle   --           ora_ipnet         --
   vport0     --            free   --           192.0.2.2/27   --