Before creating elastic virtual switches, understand your virtual topology first. Determine the L2 segments you need, network related information such as the subnet and the default router, and virtual port configuration.
An EVS controller can support multiple switches. Thus, in a switch configuration, you can specify property settings that differ from what have been defined for the controller.
Before You Begin
The following must be completed:
Required EVS packages are installed. SeeInstalling the Required Packages.
SSH authentication forevsuser is completed. SeeAbout SSH Authentication and the evsuser.
The controller node is configured. SeeConfiguring the EVS Controller.
$evsadm set-prop -p controller=value
SeeStep 1 ofHow to Configure an EVS Controller for an explanation of this step.
evsuser@controller$evsadm create-evs [-Ttenant-name] \[-p {prop=value[,...]}[,..]]EVS-switch-nameName of the tenant. If unspecified, the default tenant is the global zone and assigned the namesys-global.
Comma-separated list of other properties such asmaxbw andpriority. Properties that you set are inherited by the virtual ports connected to this switch, unless you configure those virtual ports differently.
For a list of a switch's configurable properties, typeevsadm show-evsprop.
Name of the elastic virtual switch.
evsuser@controller$evsadm add-ipnet [-Ttenant-name] \-p subnet=value[{,prop=value[,...]}[,...]]EVS-switch-name/IPnet-nameYou must specify a subnet. Other properties, including the tenant, are optional.
For a list of a subnet's configurable properties, typeevsadm show-ipnetprop.
evsuser@controller$evsadm add-vport [-Ttenant-name] \ [-p {prop=value[,...]}[,...]]EVS-switch-name/VPort-name–pprop specifies a comma-separated list of VPort properties. For a list of Vport properties, seeFigure 4, Table 4, Virtual Port Properties. Or, typeevsadm show-vportprop.
Typically, you do not need to add a virtual port. When you configure a VNIC to connect to a switch, the EVS controller generates a system virtual port. These virtual ports follow the naming conventionsys-vportname, such assys-vport0. The system virtual port inherits the elastic virtual switch properties.
evsuser@controller$evsadm
The following example shows how to configure an elastic virtual switch with an IP subnet and a virtual port.
evsuser@controller$evsadm create-evs ORAevsuser@controller$evsadm add-ipnet -p subnet=192.0.2.2/27 ORA/ora_ipnetevsuser@controller$evsadm add-vport ORA/vport0evsuser@controller$evsadmNAME TENANT STATUS VNIC IP HOSTORA sys-global idle -- ora_ipnet -- vport0 -- free -- 192.0.2.2/27 --Example 54 Configuring an Elastic Virtual Switch for a Tenant
The following example shows how to create the elastic virtual switchORA with a subnet and a virtual port for a tenant.
evsuser@controller$evsadm create-evs -T tenantA ORAevsuser@controller$evsadm add-ipnet -T tenantA -p subnet=192.0.2.0/27 ORA/ora_ipnetevsuser@controller$evsadm add-vport -T tenantA ORA/vport0evsuser@controller$evsadmNAME TENANT STATUS VNIC IP HOSTORA tenantA idle -- ora_ipnet -- vport0 -- free -- 192.0.2.2/27 --Example 55 Configuring a Tenant's Switch With an Address Pool
The following example shows how to add the IPnetora_ipnet toORA. In this example, you restrict the block from which the IP address is automatically allocated to a VPort. The IP address is allocated from the specified pool of IP addresses instead of the entire subnet.
evsuser@controller$evsadm add-ipnet -T ABC -p subnet=192.0.2.0/27, \pool=192.0.2.10-192.0.2.15,192.0.2.20-192.0.2.25 ORA/ora_ipnetevsuser@controller$evsadm show-ipnetprop -p pool ORA/ora_ipnetNAME TENANT PROPERTY PERM VALUE DEFAULT POSSIBLEORA/ora_ipnet ABC pool rw 192.0.2.10-192.0.2.15, -- -- 192.0.2.20-192.0.2.25
In this example, the IP addresses that are allocated to the virtual ports are within the pools192.0.2.10-192.0.2.15 and192.0.2.20-192.0.2.25. The number of virtual ports must not exceed the available addresses in the pool.