<div dir="auto">That seems to be working as expected.<div dir="auto"><br></div><div dir="auto">The initial, kernel-assigned name is always going to be an incrementing eth#, wlan#, or something similar. It's up to the userspace (i.e. udev) to rename it to something custom.</div><div dir="auto"><br></div><div dir="auto">However, interfaces can only be renamed while they're *not* up, otherwise the kernel refuses it with EBUSY. If some program brings eth1 up without waiting for udev to finish rule processing, renaming will fail and it'll just remain eth1.</div><br><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">On Mon, Aug 10, 2020, 21:45 Matt Zagrabelny <<a href="mailto:mzagrabe@d.umn.edu">mzagrabe@d.umn.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Greetings,</div><div><br></div><div>I am using systemd-networkd and I am wondering how/why the interface names get chosen.</div><div><br></div><div>Scenario:</div><div><br></div><div>I am expecting an interface name to be enp1s0. Instead I get eth1.<br></div><div><br></div><div>It appears that eth1 is being referenced in things like:</div><div>/etc/default/isc-dhcp-server</div><div>/etc/default/minissdpd</div><div><br></div><div>If I change those instances of eth1 to enp1s0, then the interface rename happens as expected:<br></div><div><br></div><div># dmesg | grep eth1<br></div><div>[ 1.751611] tg3 0000:01:00.0 eth1: Tigon3 [partno(BCM95722A2202G) rev a200] (PCI Express) MAC address 00:10:18:59:c3:6f<br>[ 1.751613] tg3 0000:01:00.0 eth1: attached PHY is 5722/5756 (10/100/1000Base-T Ethernet) (WireSpeed[1], EEE[0])<br>[ 1.751614] tg3 0000:01:00.0 eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] TSOcap[1]<br>[ 1.751616] tg3 0000:01:00.0 eth1: dma_rwctrl[76180000] dma_mask[64-bit]<br>[ 17.763317] tg3 0000:01:00.0 enp1s0: renamed from eth1</div><div><br></div><div>Is this expected behavior with the kernel, udev, etc.?</div><div><br></div><div>Thanks for any help!</div><div><br></div><div>-m<br></div></div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div></div>