Managing Network Virtualization and Network Resources in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Administering an IPnet Configuration

This section describes how to perform the following tasks for an IPnet after you add an IPnet for an elastic virtual switch:

  • Removing an IPnet configured for an elastic virtual switch

  • Displaying information about IPnets

Removing an IPnet

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

# evsadm remove-ipnet [-T tenant-name] EVS-switch-name/IPnet-name 

This command removes the specified IPnet from the specified elastic virtual switch. You cannot remove an IPnet if any one of the VPorts is in use. A VPort is in use if it has a VNIC connected to it.

Example 6-9  Removing an IPnet Configured for an Elastic Virtual Switch

This example shows how to remove the IPnet ora_ipnet from the elastic virtual switch ORA.

# evsadm remove-ipnet ORA/ora_ipnet

Displaying IPnets

You use the evsadm show-ipnet command to display information about IPnets managed by the EVS controller or for the specified IPnet. The command syntax is:

# evsadm show-ipnet [-f {fname=value[,...]}[,...]] [[-c] -o field[,...]] [IPnet-name]
–f {fname=value[,...]}[,...]

A comma-separated name-value pair used to filter the output (row selection). If multiple filters are specified, then the displayed output is a result of an AND operation among the filters. If the filter value is multivalued, then the displayed output is a result of an OR operation among the filter values. The supported filters are tenant, evs, ipnet, and host.

–o field[,...]

Specifies a case-insensitive, comma-separated list of output fields to display. You can specify the following fields, which appear as columns in the output:

all

Displays all the output fields.

NAME

Name of the IPnet along with the name of the elastic virtual switch with which it is associated.

IPNET

Name of the IPnet.

EVS

Name of the elastic virtual switch.

TENANT

The name of the tenant that owns the elastic virtual switch.

SUBNET

Represents the subnet (either IPv4 or IPv6) for this IPnet.

START

Start address of the IP address range.

END

End address of the IP address range.

DEFROUTER

The IP address of the default router for the given IPnet.

AVAILRANGE

A comma-separated list of available IP addresses that can be assigned to VPort.

Example 6-10  Displaying IPnet for an Elastic Virtual Switch

This example displays the IPnet configured for the elastic virtual switch ORA.

# evsadm show-ipnet
NAME          TENANT     SUBNET          DEFROUTER    AVAILRANGE
ORA/ora_ipnet sys-global 192.168.10.0/24 192.168.10.1 192.168.10.3-192.168.10.254