Re: IPv6 with umb(4)

2024-04-13 Thread Jason McIntyre
On Thu, Apr 11, 2024 at 11:22:54AM +0200, Julian Huhn wrote:
> Moin!
> 
> On Wed, Apr 10, 2024 at 04:24:48PM +0200, Julian Huhn wrote:
> >I tried unsuccessfully to obtain an IPv6 address with an umb(4) interface. 
> >As 
> >umb(4) supports IPv6 since 6.7, I seem to be doing something wrong. Can 
> >anyone 
> >give me a hint what I need to do?
> 
> After some further investigation I found a commit for sys/dev/usb/if_umb.c 
> from 
> 2020 which says
> 
>IPv6 is no longer on by default. It must be enabled with "inet6 eui64".
> 
> This piece was missing for me. Should this be mentioned in the manpage or in 
> the FAQ?
> 
> For the sake of completeness my new umb0 config is attached.
> 
> --Huhn
> 
> x270$ cat /etc/hostname.umb0
> inet6 eui64
> apn internet
> pin 
> roaming
> up
> 

hi.

after speaking to some other developers, it seems that that commit
message was slightly misleading. ip6 is handled for umb like for
everything. you can use static or the autoconf method. "inet6 eui64" is
if you just want link level address (i am advised!)

so whatever works for you, fine, but it is not that umb is a special
case.

having said that, we're discussing whether the page warrants an example
config or not...

glad you got it working though, and great you managed to dig through
commit logs to find answers!

jmc



Re: IPv6 with umb(4)

2024-04-11 Thread Willy Manga

.

On 11/04/2024 16:43, Julian Huhn wrote:

Moin!

On Thu, Apr 11, 2024 at 04:01:49PM +0400, Willy Manga wrote:

On 10/04/2024 18:24, Julian Huhn wrote:

x270$ ifconfig umb0
umb0: flags=8851 mtu 1500
    index 5 priority 6 llprio 3
    roaming enabled registration home network
    state up cell-class LTE rssi -89dBm speed 47.7Mbps up 286Mbps 
down

    SIM initialized PIN valid (3 attempts left)
    subscriber-id  ICC-id 
    device EM7455 IMEI  firmware SWI9X30C_02.24.03.00
    phone# +49xxx APN internet provider Telekom.de 
provider-id 26201

    dns 10.74.210.210 10.74.210.211
    groups: egress
    status: active
    inet 10.72.239.216 --> 10.72.239.217 netmask 0xfff0



I don't see a link-local address (fe80::/10). Can you confirm that 
after you enabled IPv6 as per your second email that you can see one?


The link-local address shows as soon as I enter

   # ifconfig umb0 inet6 eui64


Great because you will (always) need a link-local before you get any 
other type of IPv6 address.



After successfull authentication, I also get my global IPv6 address.


Good news. Can you check if your network support other mechanisms than 
eui64: temporary , soii ?


'ifconfig umb0 inet6 temporary' or 'ifconfig umb0 inet6 soii'

Don't know if you can combine these options though..


--
Willy Manga



Re: IPv6 with umb(4)

2024-04-11 Thread Willy Manga

Hi,

On 10/04/2024 18:24, Julian Huhn wrote:

Moin!
[...]

x270$ ifconfig umb0
umb0: flags=8851 mtu 1500
     index 5 priority 6 llprio 3
     roaming enabled registration home network
     state up cell-class LTE rssi -89dBm speed 47.7Mbps up 286Mbps down
     SIM initialized PIN valid (3 attempts left)
     subscriber-id  ICC-id 
     device EM7455 IMEI  firmware SWI9X30C_02.24.03.00
     phone# +49xxx APN internet provider Telekom.de provider-id 
26201

     dns 10.74.210.210 10.74.210.211
     groups: egress
     status: active
     inet 10.72.239.216 --> 10.72.239.217 netmask 0xfff0



I don't see a link-local address (fe80::/10). Can you confirm that after 
you enabled IPv6 as per your second email that you can see one?




--
Willy Manga



Re: IPv6 with umb(4)

2024-04-11 Thread Julian Huhn

Moin!

On Thu, Apr 11, 2024 at 04:01:49PM +0400, Willy Manga wrote:

On 10/04/2024 18:24, Julian Huhn wrote:

x270$ ifconfig umb0
umb0: flags=8851 mtu 1500
    index 5 priority 6 llprio 3
    roaming enabled registration home network
    state up cell-class LTE rssi -89dBm speed 47.7Mbps up 286Mbps down
    SIM initialized PIN valid (3 attempts left)
    subscriber-id  ICC-id 
    device EM7455 IMEI  firmware SWI9X30C_02.24.03.00
    phone# +49xxx APN internet provider Telekom.de 
provider-id 26201

    dns 10.74.210.210 10.74.210.211
    groups: egress
    status: active
    inet 10.72.239.216 --> 10.72.239.217 netmask 0xfff0



I don't see a link-local address (fe80::/10). Can you confirm that after you 
enabled IPv6 as per your second email that you can see one?


The link-local address shows as soon as I enter

  # ifconfig umb0 inet6 eui64

After successfull authentication, I also get my global IPv6 address.

Or as shown in /etc/hostname.umb0, then everything just works automatically.

--Huhn

umb0: flags=8851 mtu 1500
index 5 priority 6 llprio 3
roaming enabled registration home network
state up cell-class LTE rssi -91dBm speed 47.7Mbps up 286Mbps down
SIM initialized PIN valid (3 attempts left)
subscriber-id  ICC-id 
device EM7455 IMEI  firmware SWI9X30C_02.24.03.00
phone# +49 APN internet provider Telekom.de provider-id 26201
dns 10.74.210.210 10.74.210.211 2a01:598:7ff:0:10:74:210:210 
2a01:598:7ff:0:10:74:210:211
groups: egress
status: active
inet6 fe80::e670:xxx%umb0 -->  prefixlen 64 scopeid 0x5
inet 10.107.183.79 --> 10.107.183.80 netmask 0xffe0
inet6 2a01:599:642:xxx --> 2a01:599:642:xxx prefixlen 128



Re: IPv6 with umb(4)

2024-04-11 Thread Julian Huhn

Moin!

On Wed, Apr 10, 2024 at 04:24:48PM +0200, Julian Huhn wrote:
I tried unsuccessfully to obtain an IPv6 address with an umb(4) interface. As 
umb(4) supports IPv6 since 6.7, I seem to be doing something wrong. Can anyone 
give me a hint what I need to do?


After some further investigation I found a commit for sys/dev/usb/if_umb.c from 
2020 which says


  IPv6 is no longer on by default. It must be enabled with "inet6 eui64".

This piece was missing for me. Should this be mentioned in the manpage or in 
the FAQ?

For the sake of completeness my new umb0 config is attached.

--Huhn

x270$ cat /etc/hostname.umb0
inet6 eui64
apn internet
pin 
roaming
up



IPv6 with umb(4)

2024-04-10 Thread Julian Huhn

Moin!

I tried unsuccessfully to obtain an IPv6 address with an umb(4) interface. As 
umb(4) supports IPv6 since 6.7, I seem to be doing something wrong. Can anyone 
give me a hint what I need to do?


For testing purposes, I have already deactivated pf and tried to use dhcpcd. But 
I still had no success.


I have attached my umb0 config and an excerpt from dmesg. If more information is 
needed for assistance, I will provide it later.


--Huhn

x270$ cat /etc/hostname.umb0   
apn internet

pin 
roaming
up

x270$ ifconfig umb0
umb0: flags=8851 mtu 1500
index 5 priority 6 llprio 3
roaming enabled registration home network
state up cell-class LTE rssi -89dBm speed 47.7Mbps up 286Mbps down
SIM initialized PIN valid (3 attempts left)
subscriber-id  ICC-id 
device EM7455 IMEI  firmware SWI9X30C_02.24.03.00
phone# +49xxx APN internet provider Telekom.de provider-id 26201
dns 10.74.210.210 10.74.210.211
groups: egress
status: active
inet 10.72.239.216 --> 10.72.239.217 netmask 0xfff0

x270$ dmesg
OpenBSD 7.5-current (GENERIC.MP) #19: Mon Apr  8 08:39:06 MDT 2024
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
[...]
umb0 at uhub0 port 3 configuration 1 interface 12 "Sierra Wireless, Incorporated 
Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A" rev 2.00/0.06 addr 2
ugen0 at uhub0 port 3 configuration 1 "Sierra Wireless, Incorporated Sierra Wireless 
EM7455 Qualcomm Snapdragon X7 LTE-A" rev 2.00/0.06 addr 2
[...]