IPv4 example

Red Hat Enterprise Linux 9.2 LPAR mode z/VM guest

In this example, there is only one range of IP addresses (192.168.10.0 to 192.168.10.255) that can be taken over by HiperSockets device enca1c0.

List the range of IP addresses (192.168.10.0 to 192.168.10.255) that can be taken over by HiperSockets device enca1c0.

# qethconf ipa list
ipa add 192.168.10.0/24 enca1c0
The following command adds a range of IP addresses that can be taken over by OSA device encf500.
# qethconf ipa add 192.168.11.0/24 encf500
qethconf: Added 192.168.11.0/24 to /sys/class/net/encf500/device/ipa_takeover/add4.
qethconf: For verification please use "qethconf ipa list"
Listing the activated IP addresses now shows both ranges of addresses.
# qethconf ipa list
ipa add 192.168.10.0/24 enca1c0
ipa add 192.168.11.0/24 encf500
The following command deletes the range of IP addresses that can be taken over by OSA device encf500.
# qethconf ipa del 192.168.11.0/24 encf500
qethconf: Deleted 192.168.11.0/24 from 
          sysfs entry /sys/class/net/encf500/device/ipa_takeover/del4.
qethconf: For verification please use "qethconf ipa list"