IPv6 address not stable, when querying via --wds-get-current-settings (from same CID)

Bjørn Mork bjorn at mork.no
Tue Sep 26 19:11:17 UTC 2023


Martin Maurer <martin.maurer at mmeacs.de> writes:

> -> ok sudo ip -6 addr add 2A01:599:909:D01A:F123:8636:A591:D3C4/64 dev wwan0
>
> -> ok
>
> sudo ip -6 route add default via 2A01:599:909:D01A:7570:6BF3:49AD:DE30
> dev wwan0 -> RTNETLINK answers: No route to host sudo ip link set mtu
> 1500 dev wwan0 -> ok
>
> sudo ip link set dev wwan0 up
>
> -> ok
>
> According to above message, Bjørn told, I can ignore the gateway
> address, so I can simply skip the command with the error?

You still need the default route.  But you can do something like

 ip -6 addr add 2A01:599:909:D01A::F00/64 dev wwan0
 ip -6 route add default dev wwan0

The gateway address is redundant.  It doesn't harm, but it doesn't help
either.

The link must be up for the destination to be reachable.  I believe
that's why you get that error.

> Is it correct, how I set the IPv6 /64 bit address? Or do I somehow
> need to reduce the number to a shorter length due to /64?

Doesn't really matter much unless you want to use more than that single
address. Just use /64.

> Or not use the /64 because my (single) local IPv6 address must be 128
> bits in size?

The nice thing about IPv6 is that you can actually use all those 2^64
addresses.  But let's concentrate on a single address for now :-)





More information about the libqmi-devel mailing list