<div dir="auto"><div>Personally, if you're just trying to solve for a single program that hasn't been updated to accept modern configurations, I would consider it to be the minority outlier and just make an alias to resolve the issue. <div dir="auto"><br></div><div dir="auto">alias netwatch="<span style="font-family:monospace">netwatch -e </span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">enx7cc2c6305483"</span></span></div><div dir="auto"><font color="#000000" face="monospace"><br></font></div><div dir="auto"><font color="#000000" face="monospace">Or a function in your .bashrc like "MyNetwatch" or something like that, that handles an option if you need to not modify how "netwatch" launches by default. <br></font><br><div data-smartmail="gmail_signature" dir="auto">Thanks,<br>Alexander<br><br>Sent from my Samsung Galaxy S22+</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 4, 2022, 16:04 Jim via PLUG-discuss <<a href="mailto:plug-discuss@lists.phxlinux.org">plug-discuss@lists.phxlinux.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<p><font face="Helvetica, Arial, sans-serif">Last night I renamed my
ethernet adapter </font><span style="font-family:monospace"><font face="Helvetica, Arial, sans-serif"><span style="color:#000000;background-color:#ffffff">enx7cc2c6305483
(only one I have) to eth0.</span></font> I found the
instructions online. I went into /etc/netplan. First I renamed
01-network-manager-all.yaml to </span><span style="font-family:monospace"><span style="font-family:monospace">o1-network-manager-all.yaml.bak
Then I created a new </span></span><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace">01-network-manager-all.yaml
and made the changes I wanted. I did this because I
sometimes use netwatch, but it expects eth0 to be there. I
got tired of having to specify the ethernet interface
(g</span></span></span><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace">).
After I made the change and rebooted, ifconfig showed eth0
and netwatch worked without me having to use -e </span></span></span></span><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff">enx7cc2c6305483</span>.
Today I found that Discovery gave me an error saying it
was offline, even thought it told me there are new
updates available. Also my vpn client stopped working.
This was the only changed I made since yesterday, so I
undid the changes I made in /etc/netplan and rebooted.
Discover and the VPN client worked like they're supposed
to. How can I rename the interface to eth0 and fix it
so nothing complains that the interface it's looking for
isn't there? Thanks. Below are the two versions of </span></span></span></span></span><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace">01-network-manager-all.yaml</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><br>
</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace">Original, what I went
back to today</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"># Let NetworkManager
manage all devices on this system<br>
network:<br>
version: 2<br>
renderer: NetworkManager<br>
</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><br>
</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace">New one <br>
# Let NetworkManager manage all devices on this
system<br>
network:<br>
version: 2<br>
ethernets:<br>
eth0:<br>
dhcp4: true<br>
match:<br>
macaddress: 7c:c2:c6:30:54:83<br>
set-name: eth0<br>
<br>
</span></span></span></span></span></span></span></p>
<p><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"><span style="font-family:monospace"></span></span></span></span></span></p>
</div>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank" rel="noreferrer">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="https://lists.phxlinux.org/mailman/listinfo/plug-discuss" rel="noreferrer noreferrer" target="_blank">https://lists.phxlinux.org/mailman/listinfo/plug-discuss</a></blockquote></div></div></div>