I place the following script in /etc/network/if-pre-up.d. It renames the interfaces, and then renames them to what I want. Make to sure to add this script to your /var/lib/lrpkg/local.local file so that it is retained!

- Bob


=====
#!/bin/sh

#Only run once.  lo comes up first, so this
#guarantees the other interfaces are down.
if [ "$IFACE" == "lo" ]; then
 rm /etc/mactab
 echo change_eth0 00:0c:29:e2:7b:6f  > /etc/mactab
 echo change_eth1 00:0c:29:e2:7b:79 >> /etc/mactab
 echo change_eth2 00:0c:29:e2:7b:83 >> /etc/mactab

 /sbin/nameif

 rm /etc/mactab
 echo eth0 00:0c:29:e2:7b:6f  > /etc/mactab
 echo eth1 00:0c:29:e2:7b:79 >> /etc/mactab
 echo eth2 00:0c:29:e2:7b:83 >> /etc/mactab

 /sbin/nameif

fi
=====

- Bob

On 5/29/2017 12:32 PM, sadam wrote:
eth0 with MAC2 and
eth1 with MAC1.
I don't know why.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to