-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Description
Description
Not sure, if this is a bug or if I just configured it not correct. I already wrote an email, but I guess this setup is a bit too complicated for an email.
Fritzbox cable acts as a Modem (bridge mode) and is connected to an Archer C7 v2. The Archer acts as the main router to the internet. The router gets an /56 range via prefix delegation.
I compiled a fresh OpenWRT (v19.07.1) with all necessary 6lowpan_bluetooth modules.
The Archer C7 uses a BLE USB Stick. After connecting the nrf52832 device to the router, I tried to add a global and ULA address to the interface.
The issue also happens when Bluetooth is not connected.
ifconfig 9 add 2aaa:8aaa:baaa:b710::2/64
and
ifconfig 9 add fdc9:515d:129c::2/64
Both don't work and the shell is not responding. Instead I can just execute the next command. After checking the interface with ifconfig again, the interface still has only the link local address.
> ifconfig 9 add fdc9:515d:129c::2
ifconfig
2020-02-04 13:22:17,985 # ifconfig
2020-02-04 13:22:17,988 # Iface 9 HWaddr: CC:C6:52:01:8E:8C
2020-02-04 13:22:17,993 # L2-PDU:1280 MTU:1280 HL:64 RTR
2020-02-04 13:22:17,995 # 6LO IPHC
2020-02-04 13:22:18,000 # Source address length: 6
2020-02-04 13:22:18,001 # Link type: wireless
2020-02-04 13:22:18,011 # inet6 addr: fe80::ccc6:52ff:fe01:8e8c scope: link VAL
2020-02-04 13:22:18,012 # inet6 group: ff02::2
2020-02-04 13:22:18,013 # inet6 group: ff02::1
2020-02-04 13:22:18,015 # inet6 group: ff02::1:ff01:8e8c
2020-02-04 13:22:18,018 # inet6 group: ff02::1a
2020-02-04 13:22:18,019 #
2020-02-04 13:22:18,022 # Statistics for Layer 2
2020-02-04 13:22:18,025 # RX packets 0 bytes 0
2020-02-04 13:22:18,030 # TX packets 0 (Multicast: 0) bytes 852
2020-02-04 13:22:18,033 # TX succeeded 0 errors 0
2020-02-04 13:22:18,035 # Statistics for IPv6
2020-02-04 13:22:18,039 # RX packets 45 bytes 5620
2020-02-04 13:22:18,043 # TX packets 32 (Multicast: 18) bytes 2018
2020-02-04 13:22:18,047 # TX succeeded 32 errors 0
2020-02-04 13:22:18,047 #
The configured interface in OpenWRT looks like this and this.
Steps to reproduce the issue
- Modem to the internet with IPv6 (Fritz!Box 6490 in my case)
- Configured prefix delegation of /56 (/48 should also work) at the modem
- OpenWRT (v19.07.1) with compiled 6lowpan_bluetooth kernel modules. Described here.
- Configured OpenWRT interfaces as described here.
- Flash gnrc_networking example on the nrf52832
- Get BLE Mac address of the nrf52832 with executing
ble infoon the RIOT shell. - Connect the nrf52 with the OpenWRT router. Execute the following on the OpenWRT router:
MAC_ADDR for example CC:C5:51:01:8E:8C
echo "connect MAC_ADDR 2" >/sys/kernel/debug/bluetooth/6lowpan_control
- Get the link local address of the nrf52 and ping this address on the OpenWRT router with:
Replace fe80::ccc6:52ff:fe01:8e8c with the address of your nrf52 device
ping6 fe80::ccc6:52ff:fe01:8e8c%bt0
You should be able to reach the device. If not, something went already wrong.
9. Try to add your global and ULA address to your nrf52. If your bt0 interface has the prefix:
2aaa:8aaa:baaa:b700::1/60 or 2aaa:8aaa:baaa:b700::1/64
Give the nrf52 the suffix ::2. In this case:
ifconfig 9 add 2aaa:8aaa:baaa:b700::2/64
The same doesn't work the configured ULA:
ifconfig 9 add fdc9:515d:129c::2/64
You need to get the ID of your interface first with ifconfig. In this case 9.
Expected results
A configured network interface with the ULA and global address.
or
Error message
Actual results
No response from the shell
Versions
OpenWRT 19.07.1
Compiles and flashed RIOT on commit c310bfb