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
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 SwitchThis example shows how to remove the IPnet ora_ipnet from the elastic virtual switch ORA.
# evsadm remove-ipnet ORA/ora_ipnet
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]
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.
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:
Displays all the output fields.
Name of the IPnet along with the name of the elastic virtual switch with which it is associated.
Name of the IPnet.
Name of the elastic virtual switch.
The name of the tenant that owns the elastic virtual switch.
Represents the subnet (either IPv4 or IPv6) for this IPnet.
Start address of the IP address range.
End address of the IP address range.
The IP address of the default router for the given IPnet.
A comma-separated list of available IP addresses that can be assigned to VPort.
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