Skip to content

Instantly share code, notes, and snippets.

@stargieg
stargieg / dynv6.sh
Last active January 2, 2017 21:51 — forked from corny/dynv6.sh
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
@corny
corny / dynv6.sh
Last active August 2, 2024 03:18
Update script for dynv6.com to set your IPv4 address and IPv6 prefix
#!/bin/sh -e
hostname=$1
device=$2
file=$HOME/.dynv6.addr6
[ -e $file ] && old=`cat $file`
if [ -z "$hostname" -o -z "$token" ]; then
echo "Usage: token=<your-authentication-token> [netmask=64] $0 your-name.dynv6.net [device]"
exit 1
fi
@sumikawa
sumikawa / gist:1108785
Created July 27, 2011 06:24
ip6addctl on MacOSX 10.7
% uname -a
Darwin prince.local 11.0.0 Darwin Kernel Version 11.0.0: Sat Jun 18 12:56:35 PDT 2011; root:xnu-1699.22.73~1/RELEASE_X86_64 x86_64
% curl -o ip6addrctl.c 'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/usr.sbin/ip6addrctl/ip6addrctl.c?rev=1.3.32.1;content-type=text%2Fplain'
% gcc -o ip6addrctl ip6addrctl.c
% ./ip6addrctl
Prefix Prec Label Use
::1/128 60 0 18
fc00::/7 50 1 0
::/0 40 2 2953
::ffff:0.0.0.0/96 30 3 1043