3G Modem MC8805:qmicli succesfuly connected but no IP after dhclient
Benoît
benoitne at gmail.com
Mon Nov 9 09:15:24 PST 2015
Many thanks Bjørn let me reply to this one
Just out of curiousity: Why does the mac address matter to you? It's a
fake address used solely on the USB link between the modem and the
host. It has no meaning outside this link. Or it should not have,
AFAIK.
You are right that changing the Mac address is not my final objective
My aim is to be able to change the wwan0 name to something else and
because I am using the udev rules to do it and it is based on the Mac
address this is the reason I would like to fix it
but perhaps there is another solution?
(I have tried and it is like I am not able as something force the name
to be wwan0)
I have tried to add NAME="" but when I do that the interface is not
visible in the system at all :(
don't hesitate if you have a tips to change the name without changing
the MAC would be very cool :)
belette
On 09/11/15 17:02, Bjørn Mork wrote:
> Benoît <benoitne at gmail.com> writes:
>
>> Just a little one do you know if there is any udev rule I can append
>> to your command
>> (SUBSYSTEM=="usb",ATTR{idVendor}=="413c",ATTR{idProduct}=="81a3",ATTR{bConfigurationValue}=="2"
>> ATTR{bConfigurationValue}="1")
>> to fix the MAC Address of the interface?
> Something like this should do it:
>
> SUBSYSTEM=="net",ACTION=="add",ATTRS{idVendor}=="413c",ATTRS{idProduct}=="81a3",RUN+="/sbin/ip link set %k address 02:00:de:ad:be:ef"
>
> Adjust the path of "ip" if different. And the mac address of course :)
>
>
>> In fact I figured out that everytime I poweroff my system a new MAC is
>> generated randomly :(
> Yup, a random mac is generated every time you reload usbnet.ko. This is
> used if we can't read a mac from a CDC ether descriptor, which we
> usually can't for QMI devices.
>
>> I would love to fix one as soon as the interface is shown to the
>> system and I think udev is the right place but I don't have the right
>> attribute (I know the one to fix the name but unfortunately it is
>> based on MAC..)
> The mac address attribute isn't writable, so you have to use netlink to
> change it.
>
> Just out of curiousity: Why does the mac address matter to you? It's a
> fake address used solely on the USB link between the modem and the
> host. It has no meaning outside this link. Or it should not have,
> AFAIK.
>
> (except of course if you try to bridge the netdev, but then you probably
> have to do some more mangling)
>
>
> Bjørn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libqmi-devel/attachments/20151109/fed7dc57/attachment.html>
More information about the libqmi-devel
mailing list