https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/qwn:Renaming_a_network_interface&feed=atom&action=historyUser:Mattx86/qwn:Renaming a network interface - Revision history2024-03-28T09:52:21ZRevision history for this page on the wikiMediaWiki 1.40.0https://wiki.alpinelinux.org/w/index.php?title=User:Mattx86/qwn:Renaming_a_network_interface&diff=5059&oldid=prevMattx86: Created page with "Supppose I had an interface named <code>eth3</code> and I want to rename it as <code>neweth3</code>. Start out by specifying: {{Cmd|auto neweth3 iface neweth3 inet static}} Fol..."2011-03-15T10:42:18Z<p>Created page with "Supppose I had an interface named <code>eth3</code> and I want to rename it as <code>neweth3</code>. Start out by specifying: {{Cmd|auto neweth3 iface neweth3 inet static}} Fol..."</p>
<p><b>New page</b></p><div>Supppose I had an interface named <code>eth3</code> and I want to rename it as <code>neweth3</code>.<br />
<br />
Start out by specifying:<br />
{{Cmd|auto neweth3<br />
iface neweth3 inet static}}<br />
<br />
Followed by the <code>address</code>, <code>netmask</code>, <code>gateway</code>, etc., and then add this line:<br />
{{Cmd|pre-up nameif -s neweth3 00:11:22:33:44:55}}<br />
<br />
This sets the interface name to <code>neweth3</code>, where the MAC address of the interface is <code>00:11:22:33:44:55</code>.<br />
<br />
Here's a full example:<br />
{{Cmd|auto neweth3<br />
iface neweth3 inet static<br />
address 10.100.100.1<br />
netmask 255.255.255.0<br />
network 10.100.100.0<br />
broadcast 10.100.100.255<br />
pre-up nameif -s neweth3 00:11:22:33:44:55}}</div>Mattx86