doc:appunti:linux:sa:if_rename
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:appunti:linux:sa:if_rename [2021/12/13 09:27] – [With Debian 10 Buster] niccolo | doc:appunti:linux:sa:if_rename [2024/04/12 18:01] (current) – [Debian 9 predictable network interface names] niccolo | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== With Debian 10 Buster ===== | ===== With Debian 10 Buster ===== | ||
- | According some sources, there is at least two methods | + | How to rename a network interface |
- | + | ||
- | The simplest | + | |
< | < | ||
- | rename enx00e04c885302=lan0 | + | #/ |
+ | [Match] | ||
+ | MACAddress=00: | ||
+ | [Link] | ||
+ | Name=lan0 | ||
</ | </ | ||
- | Another methos should be to create a file **/etc/systemd/ | + | **WARNING**: |
+ | |||
+ | **WARNING**: | ||
+ | |||
+ | A workaround can be the following: tell the kernel to use the old '' | ||
< | < | ||
- | #/ | ||
[Match] | [Match] | ||
MACAddress=00: | MACAddress=00: | ||
+ | OriginalName=eth* | ||
[Link] | [Link] | ||
Name=lan0 | Name=lan0 | ||
Line 114: | Line 119: | ||
SUBSYSTEM==" | SUBSYSTEM==" | ||
</ | </ | ||
+ | |||
+ | :!: **ATTENZIONE**: | ||
+ | |||
+ | :!: **ATTENZIONE**: | ||
+ | |||
===== Debian 9 Network Interface Naming ===== | ===== Debian 9 Network Interface Naming ===== | ||
doc/appunti/linux/sa/if_rename.1639384039.txt.gz · Last modified: 2021/12/13 09:27 by niccolo