Issue with assigned netmask.

Bjørn Mork bjorn at mork.no
Wed Mar 21 17:01:58 UTC 2018


Paul Gildea <gildeap at tcd.ie> writes:

> Hi,
>
> Experiencing a problem with getting an incorrect netmask. A SW MC7455 is
> connected to a private network which is trying to assign a /32 address,
> however when queried with libqmi (--wds-get-current-settings) the modem
> reports it has received a /29 address. It has been confirmed that /32
> addresses are being handed out via a cisco device, which works correctly.
>
> There doesn't seem to be any way to get the current mask using AT commands
> (to determine what address the modem is receiving or if libqmi is not
> reading the value correctly somehow). Anybody experienced a problem like
> this or have an idea what might be happening?

The mask is always bogus.  It is made up by the modem to support an
"ethernet virtual reality".  The size of it will vary depending on the
assigned address.  It cannot be a "network" or "broadcast" address, so
the mask must be adjusted accordingly.

You can safely ignore the netmask and use a static /32 if you want.
You'll need to drop the gateway address (another made up value) too of
course, and just point the routes out the correct interface.



Bjørn


More information about the libqmi-devel mailing list