WebHosting Paid by #1Payday.Loans


   The ROCK Linux project has been discontinued in 2010. Here are the old data for the historical record!

[rock-devel] Support for changing the MAC address on an etheā€¦

ROCK Mailing List Archives

Attachments
Entire message
+ (text/plain)
Author: 
Date:   
To: 
Subject: [rock-devel] Support for changing the MAC address on an ethernet interface
Adding the following code to /etc/network/modules/iproute2.sh adds
support for changing the MAC address for an interface
---- snip ----
public_address() {
        code="ip link set $if address $1" ; shift
        addcode up 5 3 "$code"
        iproute2_init_if
}
---- snip ----

Tested it (on an eth interface) and it works (for me;-)
Don't ask me what 5 and 3 for `addcode` mean.

        Bernd
-- 
Firmix Software GmbH                   https://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



_______________________________________________
rock-devel mailing list

https://www.rocklinux.net/mailman/listinfo/rock-devel