- Subject: Re: how to change mac address using udev
- From: Sasha Alko <alkosasha@xxxxxxxxx>
- Date: Tue, 18 Oct 2011 13:49:20 +0400
- In-reply-to: <CAMY8tishW7Dwn4ZMXw5te=3rX0Y+fLaBjuNkjM9ZAEGn-C79rw@mail.gmail.com>
Hi,
Does anybody have an example how to change MAC address using udev?
Kind regards,
S
2011/10/12 Sasha Alko <alkosasha@xxxxxxxxx>:
> Hi,
>
> I am trying to change mac address in this way:
>
> subsystem=="usb", action=="add", attrs{idvendor},
> attr{address}="00:11:22:33:44:55"
>
> But this generates the error "error opening
> ATTR{/sys/deivces/.../net/eth1/address} for writing: Permission denied
>
> I know that NetworkManager is able to change mac address and I guess
> NM uses udev to change mac.
>
> Could you please advice me how to change mac using udev.
>
> Kind regards,
> S
>
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux DVB]
[Video Technology]
[Asterisk]
[Photo]
[DCCP]
[Netdev]
[Xorg]
[Util Linux NG]
[Xfree86]
[Devices]
[Fedora Women]
[ALSA Devel]
[Linux USB]