Matching devices with the corresponding interfaces
If you define multiple interfaces on a Linux® instance, you must keep track of the interface names assigned to your network devices.
Red Hat® Enterprise Linux 9.2 uses predictable network names, which make it easy to match network devices with their interface names. The interface names are preserved across reboots.
How to keep track of the mapping between interface names and devices depends on the network device driver. For qeth, you can use the lszdev qeth command to obtain a mapping.
After setting a device online, issue journalctl to find the associated interface name in the messages that are issued in response to the device being set online.
For each network device that is online, there is a symbolic link of the form /sys/class/net/<interface>/device where <interface> is the interface name. This link points to a sysfs directory that represents the corresponding network device. You can read this symbolic link with readlink to confirm that an interface name corresponds to a particular network device.
Device views in sysfs tells you where you can find the device directories with their attributes in sysfs.