operating_systems:linux:debian:interface_name
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
operating_systems:linux:debian:interface_name [2017/10/31 10:16] – kroduit | operating_systems:linux:debian:interface_name [2022/02/01 13:34] (current) – ateixeira | ||
---|---|---|---|
Line 59: | Line 59: | ||
[...]</ | [...]</ | ||
- If you have some trouble, you can add log.< | - If you have some trouble, you can add log.< | ||
+ | |||
+ | <note tip>Why interface name suggested are lanX instead of ethX?</ | ||
+ | I've made some tests with debian 8 and i encounter this problem: | ||
+ | If i comment 1 line in udev rules (for example eth4), eth4 retrieve his old default name (eth2) and eth2 get the name " | ||
+ | If i comment the lan4 line in udev rules, lan4 (eth4 physical) become eth2, but lan2 stay lan2 and eth4 physical simply doesn' | ||
+ | |||
+ | | ||
+ | [[https:// | ||
+ | |||
+ | found Path and MAC address | ||
+ | < | ||
+ | ifconfig | ||
+ | udevadm info -e | grep -A 5 -B 18 " | ||
+ | </ | ||
+ | |||
+ | add files like 1x-lanx.link in / | ||
+ | < | ||
+ | [Match] | ||
+ | Path=< | ||
+ | MACAddress=00: | ||
+ | |||
+ | [Link] | ||
+ | Name=lan0 | ||
+ | </ | ||
+ | |||
+ | |||
+ | <note important> | ||
+ | |||
+ | add file 99-default.link in / | ||
+ | < | ||
+ | [Link] | ||
+ | NamePolicy=kernel database onboard slot path | ||
+ | MACAddressPolicy=persistent | ||
+ | </ | ||
+ | |||
+ | to permit user-defined name of USB network interfaces, it's necessary to enable the 80-net-setup-link.rules rule with this command : | ||
+ | < | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | | ||
+ | |||
+ | found ID_PATH and MAC address | ||
+ | < | ||
+ | udevadm info -e | grep -A 5 -B 18 " | ||
+ | ip a | ||
+ | </ | ||
+ | |||
+ | edit files like 1x-lanx.link in / | ||
+ | < | ||
+ | [Match] | ||
+ | Path=< | ||
+ | MACAddress=00: | ||
+ | |||
+ | [Link] | ||
+ | Name=lan0 | ||
+ | </ | ||
+ | |||
+ | make sure file 99-default.link is present in / | ||
+ | < | ||
+ | [Link] | ||
+ | NamePolicy=kernel database onboard slot path | ||
+ | MACAddressPolicy=persistent | ||
+ | </ | ||
+ | |||
+ | to permit user-defined name of USB network interfaces, it's necessary to enable the 80-net-setup-link.rules rule with this command : | ||
+ | < | ||
+ | sudo ln -s / | ||
+ | </ |
operating_systems/linux/debian/interface_name.1509444960.txt.gz · Last modified: 2017/10/31 10:16 by kroduit