Issue with assigned netmask.

Paul Gildea gildeap at tcd.ie
Thu Mar 22 11:29:43 UTC 2018


Thanks Bjørn, so the modem is just always "guessing" what mask and gateway
make the most sense from the IP's obtained, and it just bothers to do this
for convention sake? Libqmi then just reads this fake data.
Seems like I will ignore most of the things returned by --wds-get-settings
so!


--
Paul

On 21 March 2018 at 17:01, Bjørn Mork <bjorn at mork.no> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libqmi-devel/attachments/20180322/43cc69ab/attachment.html>


More information about the libqmi-devel mailing list