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:26] – kroduit | operating_systems:linux:debian:interface_name [2022/02/01 13:34] (current) – ateixeira | ||
|---|---|---|---|
| Line 62: | Line 62: | ||
| <note tip>Why interface name suggested are lanX instead of ethX?</ | <note tip>Why interface name suggested are lanX instead of ethX?</ | ||
| I've made some tests with debian 8 and i encounter this problem: | 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 1 line in udev rules (for example eth4), eth4 retrieve his old default name (eth2) and eth2 get the name " |
| - | If i comment the vlan4 line in udev rules, | + | If i comment the lan4 line in udev rules, |
| + | | ||
| + | [[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.1509445560.txt.gz · Last modified: 2017/10/31 10:26 by kroduit