...
Warning |
---|
|
...
Interface Naming on Linux Hosts with Enhanced Networking
...
On instances without support for enhanced networking the Linux interface names are also usually eth0, eth1, etc.
However, on instances with support for enhanced networking, the names on the AWS level differ from those on the Linux level there may be a naming inconsistency after adding a second interface to the instance:
- The first (primary) interface is called ensX (where X is an integer denoting the interface number; example: ens5).
- When a second interface is added to a running instance, it may initially be called eth0.
However, the commandethtool -i eth0
shows that the enhanced network driver (ena) will be used for this interface. This interface will change its name to ensY (where Y is X+1) after restarting the instance. This means that any configuration file created for this interface must use the final name of the interface instead of eth0. Otherwise, the instance may become unreachable after a restart because there is no valid interface configuration (NetworkManager is not enabled on Charon-SSP AWS, so a configuration file must exist to configure the interface properly).
Please note: this numbering sequence may change in the future. It is based on the PCI slot on which the Ethernet controller is presented and which is incremented by one for each additional Ethernet interface added. On the Charon host system, the slot can be verified with the following command:# lspci -vv | grep -A20 Ethernet
...