Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux_wiki:persistent_interface_name [2016/06/08 23:33] billdozor [Generate UUID] |
linux_wiki:persistent_interface_name [2019/05/25 23:50] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
**General Information** | **General Information** | ||
- | Persistent network interface names. | + | Persistent network interface names prevent interfaces being renamed from " |
+ | Instead, a name based upon BIOS/ | ||
**Checklist** | **Checklist** | ||
Line 10: | Line 11: | ||
---- | ---- | ||
- | ====== | + | ====== |
- | Generate a UUID for your network interface.<code bash>uuidgen < | + | Install biosdevname<code bash>yum install biosdevname</ |
- | * Example:< | + | |
- | 490b4373-17a1-4193-99ed-cf7916ea25bd</ | + | |
- | Edit network interface config file and add the id. | + | Enable biosdevname as a parameter passed to the kernel |
- | * Example<code bash>vim /etc/sysconfig/network-scripts/ | + | * EL7<code bash>vim /etc/default/grub |
- | ...other config lines... | + | |
- | UUID=490b4373-17a1-4193-99ed-cf7916ea25bd</ | + | # Add to GRUB_CMDLINE_LINUX values |
+ | GRUB_CMDLINE_LINUX=" | ||
+ | </ | ||
+ | * EL6<code bash>vim / | ||
+ | |||
+ | # Append biosdevname=1 to all kernel lines. Example: | ||
+ | kernel /vmlinuz-2.6.32-279.22.1.el6.x86_64 ro root=/ | ||
+ | </ | ||
+ | |||
+ | Update Grub config | ||
+ | * EL 7<code bash> | ||
+ | * EL 6: manual changes already made above. | ||
+ | |||
+ | * Ubuntu< | ||
+ | |||
+ | ===== Naming Scheme Preference ===== | ||
+ | |||
+ | The following preference order is used for biosdevname: | ||
+ | - Firmware/ | ||
+ | - Example: eno2 | ||
+ | - Not Available?: Fallback to number 2 | ||
+ | - Firmware/ | ||
+ | - Example: ens2 | ||
+ | - Not Available?: Fallback to number 3 | ||
+ | - Physical Location of the connector | ||
+ | - Example: enp3s0 | ||
+ | - Not Available?: Fallback to number 5 | ||
+ | - Interfaces MAC address (not used by default, but can be user selected) | ||
+ | - Example: enx080027e468c1 | ||
+ | - Not Available?: Fallback to number 5 | ||
+ | - Traditional unpredictable naming | ||
+ | - Example: eth0 | ||
---- | ---- | ||