Differences
This shows you the differences between two versions of the page.
|
doc:howto:ipv6 [2012/11/25 14:14] strelok-ac |
doc:howto:ipv6 [2013/04/26 10:54] (current) steven |
||
|---|---|---|---|
| Line 5: | Line 5: | ||
| ===== Obtain IPv6 support ===== | ===== Obtain IPv6 support ===== | ||
| - | Follow [[doc:howto:ipv6.essentials]] to obtain full IPv6 support. Then come back and read about the configuration here: | + | :!: ** Barrier Breaker and later has native IPv6 support built into the default images. ** |
| - | There are two big, different steps: | + | See the [[/doc/uci/network6|IPv6 examples page]] for generic configuration examples. |
| - | - Set up a working IPv6 connection on the OpenWrt router, either by tunneling (SixXs, TSP, 6to4), or natively. | + | |
| - | - Propagate the IPv6 subnet to the LAN with [[#RADVD]] or [[#DHCPv6]]. | + | |
| ==== Native IPv6 access ==== | ==== Native IPv6 access ==== | ||
| Line 92: | Line 90: | ||
| * **2001:0db8:1f0a:1359::2/64** is the local IPv6 tunnel endpoint (labeled "Client IPv6 Address" on the Tunnel Details page in your HE account). | * **2001:0db8:1f0a:1359::2/64** is the local IPv6 tunnel endpoint (labeled "Client IPv6 Address" on the Tunnel Details page in your HE account). | ||
| * **tunnelid**, **username**, and **password** are provided by the tunnel broker. \\ \\ :!: For Hurricane Electric tunnels, the username is NOT the username for tunnelbroker.net. The username is the user id listed on the main page of your tunnelbroker.net account (called the "API Key" elsewhere). The password is the md5 hash of the tunnelbroker.net password. For details, see [[https://ipv4.tunnelbroker.net/ipv4_end.php|https://ipv4.tunnelbroker.net/ipv4_end.php]] | * **tunnelid**, **username**, and **password** are provided by the tunnel broker. \\ \\ :!: For Hurricane Electric tunnels, the username is NOT the username for tunnelbroker.net. The username is the user id listed on the main page of your tunnelbroker.net account (called the "API Key" elsewhere). The password is the md5 hash of the tunnelbroker.net password. For details, see [[https://ipv4.tunnelbroker.net/ipv4_end.php|https://ipv4.tunnelbroker.net/ipv4_end.php]] | ||
| + | |||
| + | With Attitude Adjustment, once you have added the above interface definition you have to run /etc/init.d/network restart in order to have it effected. | ||
| :!: Note that Hurricane Electric has changed their dynamic negotiation protocol, and the 6in4 package is not yet (August 2011) updated accordingly. See [[https://dev.openwrt.org/ticket/10019|discussion in ticket 10019]]. Based on the discussion HE users need to install the wget package to get HTTPS support in wget and possibly also modify the URL in 6in4 script. | :!: Note that Hurricane Electric has changed their dynamic negotiation protocol, and the 6in4 package is not yet (August 2011) updated accordingly. See [[https://dev.openwrt.org/ticket/10019|discussion in ticket 10019]]. Based on the discussion HE users need to install the wget package to get HTTPS support in wget and possibly also modify the URL in 6in4 script. | ||
| Line 280: | Line 280: | ||
| **option prefixlen 64** | **option prefixlen 64** | ||
| option ifprefix br-lan | option ifprefix br-lan | ||
| + | |||
| + | :!: prefixlen 64 did not work for me; prefixlen 56 works ! | ||
| #DNS server list to which the reverse prefix | #DNS server list to which the reverse prefix | ||
| Line 372: | Line 374: | ||
| config prefix | config prefix | ||
| option interface 'lan' | option interface 'lan' | ||
| - | # If not specified, a non-link-local prefix of the interface is used | + | # Optional: only necessary if the lan interface has multiple |
| - | **option prefix '2001:123:456:789::/64'** # Optional - only necessary if the lan interface has multiple global IP addresses assigned to it | + | # global IP addresses assigned to it; or the subnet is larger than /64 |
| + | **option prefix '2001:123:456:789::/64'** # Optional | ||
| **option ignore 0** # Or delete the line altogether | **option ignore 0** # Or delete the line altogether | ||
| Line 391: | Line 394: | ||
| /etc/init.d/radvd start | /etc/init.d/radvd start | ||
| </code> | </code> | ||
| + | |||
| + | use logread to check for start up messages | ||
| ==== wide-dhcpv6-server ==== | ==== wide-dhcpv6-server ==== | ||
| Line 404: | Line 409: | ||
| |''config 'dhcp6s' 'basic' | |''config 'dhcp6s' 'basic' | ||
| **option 'enabled' '1'** | **option 'enabled' '1'** | ||
| - | option 'interface' 'lan' | + | option 'interface' 'br-lan' |
| option 'config_file' '/etc/dhcp6s.conf' | option 'config_file' '/etc/dhcp6s.conf' | ||
| ''| | ''| | ||
| Line 415: | Line 420: | ||
| pool pool1 { | pool pool1 { | ||
| - | range 2001:xxxx:yyyy:zzzz::1000 to 2001:xxxx:yyyy:zzzz:2000 ; | + | range 2001:123:456:789::1000 to 2001:123:456:789::2000 ; |
| }; | }; | ||
| ''| | ''| | ||
| Line 424: | Line 429: | ||
| |''host somehostname { | |''host somehostname { | ||
| duid 00:01:02:03:04:05:06:07:08:09:10:11:12:13; | duid 00:01:02:03:04:05:06:07:08:09:10:11:12:13; | ||
| - | address 2001:xxxx:yyyy:zzzz::3000 infinity; | + | address 2001:123:456:789::3000 infinity; |
| }; | }; | ||
| ''| | ''| | ||
| Line 440: | Line 445: | ||
| Then restart the services and you're away (hopefully!) | Then restart the services and you're away (hopefully!) | ||
| + | |||
| + | == troubleshooting == | ||
| + | |||
| + | If ps does not show dhcp6s running then you can run it interactively: | ||
| + | |dhcp6s -s /etc/dhcp6s.conf -d -f -D br-lan| | ||
| + | (where br-lan is your local lan interface). Things to check include: | ||
| + | - the network interface (br-lan in the above) does not match | ||
| + | - typos in /etc/dhcp6s.conf | ||
| + | |||
| ==== dnsmasq-dhcpv6 ==== | ==== dnsmasq-dhcpv6 ==== | ||
doc/howto/ipv6.1353849295.txt.bz2 · Last modified: 2012/11/25 14:14 by strelok-ac
