Support for changing the MAC address on an ethernet interface

Bernd Petrovitsch <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Organization http://www.firmix.at/
Message-ID <[email protected]>
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                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.