Configuring 6LoWPAN with an ATUSB on Fedora.
dnf install wpan-tools
wpan0
network device should appear.ip link set wpan0 down
iwpan phy0 set channel 0 15
# Channels channel-11 2405 MHz channel-12 2410 channel-13 2415 channel-14 2420 channel-15 2425 channel-16 2430 channel-17 2435 channel-18 2440 channel-19 2445 channel-20 2450 channel-21 2455 channel-22 2460 channel-23 2465 channel-24 2470 channel-25 2475 channel-26 2480
iwpan dev wpan0 set pan_id 0xCAFE
iwpan dev wpan0 set short_addr 0x0001
ip link add link wpan0 name lowpan0 type lowpan ip link set wpan0 up ip link set lowpan0 up
wpan-ping -d 0x0002
# wpan-ping -a 0x0001 -s 5 -c5 PING 0x0001 (PAN ID 0xcafe) 5 data bytes 5 bytes from 0x0001 seq=0 time=5.3 ms 5 bytes from 0x0001 seq=1 time=5.3 ms 5 bytes from 0x0001 seq=2 time=5.3 ms 5 bytes from 0x0001 seq=3 time=7.9 ms 5 bytes from 0x0001 seq=4 time=7.2 ms --- 0x0001 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss rtt min/avg/max = 7.162/6.199/7.917 ms
ip addr add 2001:db8::1/64 dev lowpan0
ip addr add 2001:db8::2/64 dev lowpan0
# ping6 -c5 2001:db8::1 PING 2001:db8::1(2001:db8::1) 56 data bytes 64 bytes from 2001:db8::1: icmp_seq=1 ttl=64 time=14.6 ms 64 bytes from 2001:db8::1: icmp_seq=2 ttl=64 time=16.3 ms 64 bytes from 2001:db8::1: icmp_seq=3 ttl=64 time=17.6 ms 64 bytes from 2001:db8::1: icmp_seq=4 ttl=64 time=16.4 ms 64 bytes from 2001:db8::1: icmp_seq=5 ttl=64 time=15.1 ms --- 2001:db8::1 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4007ms rtt min/avg/max/mdev = 14.669/16.056/17.607/1.041 ms
ip link set lowpan0 down ip link set wpan0 down
iwpan phy0 set channel 0 26
iwpan phy phy0 interface add monitor%d type monitor
ip link set monitor0 up