This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
resources:tools-software:linux-drivers:net-mac-phy:adin1110 [12 May 2022 13:22] – Alexandru Tachici | resources:tools-software:linux-drivers:net-mac-phy:adin1110 [05 Oct 2022 17:27] – Added udev rules example Alexandru Tachici | ||
---|---|---|---|
Line 150: | Line 150: | ||
Link detected: yes | Link detected: yes | ||
</ | </ | ||
+ | |||
+ | ==== Example: Renaming ethernet interface ==== | ||
+ | Renaming an ethernet interface from the generic ethx name to a custom name is done by adding a udev rule. | ||
+ | Check: | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Create a .rules file under: | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | Coppy the phys_switch_id to the bellow udev rule: | ||
+ | |||
+ | < | ||
+ | root@analog:/ | ||
+ | SUBSYSTEM==" | ||
+ | </ | ||
+ | |||
+ | phys_switch_id can differ from device to device. It is a unique identifier for each device on that specific system. | ||
==== Example: changing link autonegotiation ==== | ==== Example: changing link autonegotiation ==== |