IPv6
Jump to navigation
Jump to search
- Basic info for figuring out ISP prefix + IPv4 address ($V6PREFIX)
printf "2602:%02x:%02x%02x:%02x00::1\n" $(echo YOUROUTSIDEIPADDRESSHERE | tr . ' ')
Cisco IOS 6rd Centurylink
interface Tunnel1 description Qwest_IPv6 no ip address no ip redirects ipv6 address $V6PREFIX:XX00::1/64 tunnel source Dialer0 tunnel mode ipv6ip 6rd tunnel 6rd prefix 2602::/24 tunnel 6rd br 205.171.2.64 ! ipv6 route ::/0 Tunnel1 2602:CD:AB02:4000:: ! interface GigabitEthernet0/1 description LAN ipv6 address $V6PREFIX:XX01::1/64 ipv6 enable ipv6 mtu 1452
TomatoUSB 6rd Centurylink
This configuration allows for stateful(static) and DHCPv6
Basic->IPv6
Service Type: Other
Wan Interface: tun6rd
Static DNS: 2001:428::1
2001:428::2
Enable RA: (leave unchecked)
Accept RA: (leave unchecked)
Administration->Scripts->Init
insmod tunnel4 insmod sit
Administration->Scripts->WAN Up
WANIP=$(nvram get wan_ipaddr)
if [ -n "$WANIP" ]; then
ip tunnel del tun6rd
V6PREFIX=$(printf '2602:%02x:%02x%02x:%02x00' $(echo $WANIP | tr . ' '))
ip tunnel add tun6rd mode sit local $WANIP ttl 64
ip addr add ${V6PREFIX}::1/24 dev tun6rd
ip addr add ${V6PREFIX}::1/64 dev br0
ip link set tun6rd up
ip -6 route add ::/0 via ::205.171.2.64 dev tun6rd
fi
Advanced->DHCP/DNS
Custom config: dhcp-range=V6PREFIX:XX01::9, V6PREFIX:XX01::ffff, ra-names, 24h enable-ra dhcp-option=option6:dns-server,V6PREFIX:XX01::1