Matching devices with the corresponding interfaces

6.18 LPAR mode z/VM guest KVM guest

If you define multiple interfaces on a Linux® instance, you must keep track of the interface names assigned to your network devices.

Methods to list network interface names include:

For all network devices that are 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.