Stage 3: Issuing a command to take over the address

6.10 LPAR mode z/VM guest

To complete taking over a specific IP address and remove it from the CHPID or LPAR that previously held it, issue the ip addr command.

Before you begin

About this task

Be aware of the information in Confirming that an IP address has been set under layer 3 when using IP takeover.

Examples

IPv4 example:
To make a device hsi0 take over IP address 192.168.10.22 issue:
# ip addr add 192.168.10.22/24 dev hsi0

For IPv4, the IP address you are taking over must be different from the one that is already set for your device. If your device already has the IP address it is to take over, you must issue two commands: First remove the address to be taken over if it is already there. Then add the IP address to be taken over.

For example, to make a device hsi0 take over IP address 192.168.10.22 if hsi0 is already configured to have IP address 192.168.10.22 issue:
# ip addr del 192.168.10.22/24 dev hsi0
# ip addr add 192.168.10.22/24 dev hsi0
IPv6 example:
To make a device eth2 take over fec0::111:25ff:febd:d9da/64 issue:
# ip addr add fec0::111:25ff:febd:d9da/64 nodad dev eth2
For IPv6, setting the nodad (no duplicate address detection) option ensures that the eth2 interface uses the IP address fec0::111:25ff:febd:d9da/64. Without the nodad option, the previous owner of the IP address might prevent the takeover by responding to a duplicate address detection test.

The IP address you are taking over must be different from the one that is already set for your device. If your device already has the IP address it is to take over you must issue two commands: First remove the address to be taken over if it is already there. Then add the IP address to be taken over.

For example, to make a device eth2 take over IP address fec0::111:25ff:febd:d9da/64 when eth2 is already configured to have that particular IP address issue:

# ip addr del fec0::111:25ff:febd:d9da/64 nodad dev eth2
# ip addr add fec0::111:25ff:febd:d9da/64 nodad dev eth2