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.
For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.
# evsadm create-evs [-T tenant-name] [-p {prop=value[,...]}[,..]] EVS-switch-name
For more information, see Creating 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.
# 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.
# evsadm
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 --