Skip to content

IPv6 Neighbor discovery

Discover/list other hosts:
ping6 -I eth0 ff02::1
ip -6 neigh show

To connect to a host using the link-local address you need to specify which interface to use (see "zone index"):
ssh -6 fe80::a00:aaaa:bbbb:cccc%eth0

Enable IPv6 on OSMC (wired and wireless)

Despite having read the opposite, it looks like IPv6 is disabled by default on the latest OSMC release (2015.06-1). I've tried adding a sysctl.d file to set /proc/sys/net/ipv6/conf/eth0/disable_ipv6 to 0, but this did not help. It worked only when I ran the command manually. By going through numerous forum posts I eventually found out that you need to use the connmanctl CLI tool:
root@osmc:~# connmanctl
connmanctl> services
*AO Wired ethernet_b827ebaabbcc_cable
connmanctl> config ethernet_b827ebaabbcc_cable --ipv6 auto preferred
connmanctl> quit
root@osmc:~#
This enables IPv6 with autoconfiguration, turns on Privacy Extensions and prefers these ephemeral addresses over the autoconfigured ones.

The same command works for wireless as well, you just need to select the appropriate interface (the service name will start with wifi_).

"help" will display basic usage info.

If for some reason you would like to disable IPv6, the command would be "config ... --ipv6 off".

Random MAC address generator for Arduino Ethernet Shield (static MAC generator)

I wanted a simple random MAC address generator for Arduino Ethernet Shields that lack one. I couldn't find one, so I wrote my own, which you can find here: https://ssl.crox.net/arduinomac/.

Inspired by http://nicegear.co.nz/blog/autogenerated-random-persistent-mac-address-for-arduino-ethernet/. The reason I'm not using this approach is that in most cases I want the MAC address to be static.

Huawei E3276s-150 (Swisscom branded - 12d1:1597) LTE stick with Linux


This works for me:
usb_modeswitch -W -c 12d1:156a -v 12d1 -p 1597
(after having unpacked /usr/share/usb_modeswitch/configPack.tar.gz to a temporary directory)

Update 2016-01-19: back in 2014 I reported this to the maintainers of various "modeswitch databases", and it seems it's made it's way into the Debian/Ubuntu version at least, according to the changelog (version 20151101-1).