6.23.2 Removing Network Interfaces from an Existing Guest
For existing guests with IPv6 and IPv4 network interfaces, you can use OEDACLI to remove either the IPv4 or IPv6 interfaces network interfaces. This is typically done as the final phase of a migration between IPv4 and IPv6 (in either direction).
Note:
The following examples focus on removing IPv4 interfaces. However, you can adapt the same commands to remove IPv6 interfaces. Substitute your own hostname and IP address values as required.
Removing a Network Interface
To remove a network interface from an existing guest, use the OEDACLI DELETE NETWORK command.
For example, the following command sequence removes the specified IPv4 client network interface from an existing guest:
oedacli> DELETE NETWORK WHERE IP=203.0.113.100 NETWORKTYPE=CLIENT
oedacli> save action
oedacli> merge action
oedacli> deploy actionsIn the example, NETWORKTYPE=CLIENT specifies the removal of a client network interface. Alternatively, you could use NETWORKTYPE=ADMIN to remove a management network interface.
Note:
If the interface you are removing is associated with the default gateway, you will get an error instructing you to move the default gateway to another network. For example, if you are trying to remove a client network interface, you can move the default gateway to the management network using the following command sequence:
oedacli> ALTER MACHINE DEFAULTGATEWAYNETHOSTNAME=exa01vm01-admin WHERE HOSTNAME=exa01vm01-client
oedacli> save action
oedacli> merge action
oedacli> deploy actionsIn the example, exa01vm01-client represents the hostname associated with the client network and exa01vm01-admin represents the hostname associated with the management network.
Removing a Cluster VIP
To remove a cluster virtual IP (VIP) from an existing guest, use the OEDACLI DELETE VIP command.
For example, the following command sequence removes an IPv4 VIP from an existing guest:
oedacli> DELETE VIP WHERE VIPIP=203.0.113.101
oedacli> save action
oedacli> merge action
oedacli> deploy actionsRemove a Cluster SCAN
To remove a cluster Single Client Access Name (SCAN) from an existing cluster, use the OEDACLI DELETE SCAN command.
For example, the following command sequence removes an IPv4 SCAN from an existing cluster:
oedacli> DELETE SCAN WHERE SCANNAME=exa01-scan SCANTYPE=ipv4 CLUSTERNUMBER=1
oedacli> save action
oedacli> merge action
oedacli> deploy actionsIn the example:
-
SCANTYPE=ipv4specifies that the SCAN being removed uses IPv4. Alternatively, you could useSCANTYPE=ipv6to remove an IPv6 SCAN. -
The other arguments identify the SCAN using the cluster number and SCAN name, as recorded in the Exadata XML configuration file (
es.xml).
Parent topic: Using IPv4 and IPv6 in an Existing Deployment