This topic describes how to unset an IP address on a network interface.
Removing a Single IP Address
Log in to the Delphix Engine as the sysadmin user and switch to the network interface context. Then use the
list
command to view the available network interfaces, and select the interface.guild.dcol1> network interface guild.dcol1 network interface> list NAME MACADDRESS MTU ens160 02:dc:02:00:7f:06 1500 guild.dcol1 network interface> select ens160 guild.dcol1 network interface 'ens160'> get type: NetworkInterface name: ens160 addresses: 0: type: InterfaceAddress address: 10.43.70.135/16 addressType: DHCP enableSSH: true sessionInUse: false state: OK device: ens160 macAddress: 02:dc:02:00:7f:06 mtu: 1500 mtuRange: 68-9000 reference: NETWORK_INTERFACE-ens160 state: OK
Run the
update
command and unset address.guild.dcol1 network interface 'ens160'> update guild.dcol1 network interface 'ens160' update *> unset addresses guild.dcol1 network interface 'ens160' update *> get type: NetworkInterface name: ens160 addresses: (unset) (*) mtu: 1500
Commit
the operation.guild.dcol1 network interface 'ens160' update *> commit guild.dcol1 network interface 'ens160'> get type: NetworkInterface name: ens160 addresses: (empty) device: ens160 macAddress: 02:dc:02:00:7f:06 mtu: 1500 mtuRange: 68-9000 reference: NETWORK_INTERFACE-ens160 state: OK
Removing a Multiple IP Addresses
Log in to the Delphix Engine as the sysadmin user and switch to the network interface context. Then use the
list
command to view the available network interfaces, and select the interface.guild.dcol1> network interface guild.dcol1 network interface> list NAME MACADDRESS MTU ens160 02:dc:02:00:7f:06 1500 guild.dcol1 network interface> select ens160 guild.dcol1 network interface 'ens160'> get type: NetworkInterface name: ens160 addresses: 0: type: InterfaceAddress address: 10.11.12.13/24 addressType: STATIC enableSSH: true sessionInUse: false state: OK 1: type: InterfaceAddress address: 10.43.70.135/16 addressType: DHCP enableSSH: true sessionInUse: false state: OK device: ens160 macAddress: 02:dc:02:00:7f:06 mtu: 1500 mtuRange: 68-9000 reference: NETWORK_INTERFACE-ens160 state: OK guild.dcol1 network interface 'ens160'> update
Run the
update
command and unset address.guild.dcol1 network interface 'ens160' update *> get type: NetworkInterface name: ens160 addresses: 0: type: InterfaceAddress address: 10.11.12.13/24 addressType: STATIC enableSSH: true 1: type: InterfaceAddress address: 10.43.70.135/16 addressType: DHCP enableSSH: true mtu: 1500 guild.dcol1 network interface 'ens160' update *> unset addresses.0 guild.dcol1 network interface 'ens160' update *> get type: NetworkInterface name: ens160 addresses: 0: type: InterfaceAddress (*) address: 10.43.70.135/16 (*) addressType: DHCP (*) enableSSH: true (*) mtu: 1500
Commit
the operation.guild.dcol1 network interface 'ens160' update *> commit guild.dcol1 network interface 'ens160'> get type: NetworkInterface name: ens160 addresses: 0: type: InterfaceAddress address: 10.43.70.135/16 addressType: DHCP enableSSH: true sessionInUse: false state: OK device: ens160 macAddress: 02:dc:02:00:7f:06 mtu: 1500 mtuRange: 68-9000 reference: NETWORK_INTERFACE-ens160 state: OK