OpenWRT routers: Difference between revisions
Appearance
Content deleted Content added
Using Luci on DSA Tags: Mobile edit Mobile web edit |
Reorder sections Tags: Mobile edit Mobile web edit |
||
| Line 69: | Line 69: | ||
Do not have an interface named ''wan6'', the IPv6 configuration will be handled automatically. |
Do not have an interface named ''wan6'', the IPv6 configuration will be handled automatically. |
||
The ''option ipv6 auto'' line will cause a virtual interface named ''wan_6'' to be created, and an instance of the DHCPv6 client to be run on it. This will request an IPv6 Internet address, and a single Prefix to be Delegated. You can't get the DHCPv6 client started this way to accept more options. |
The ''option ipv6 auto'' line will cause a virtual interface named ''wan_6'' to be created, and an instance of the DHCPv6 client to be run on it. This will request an IPv6 Internet address, and a single Prefix to be Delegated. You can't get the DHCPv6 client started this way to accept more options. |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | Then on the ''lan'' interface Advanced settings configure the IPv6 prefix filter to ''wan_6'' and set the IPv6 assignment length to 64. There is a choice of the suffix to append to the prefix - popular choices would be ''::1'' (to use that fixed value), or ''eui64'' (to use an address based on the MAC address). |
||
| ⚫ | |||
For prefix delegation to the lan interface, "/etc/config/network" should look like: |
|||
config interface 'lan' |
config interface 'lan' |
||
option device 'br-lan' |
option device 'br-lan' |
||
option proto 'static' |
option proto 'static' |
||
option defaultroute '1' |
option defaultroute '1' |
||
list ipaddr ' |
list ipaddr '192.168.1.1/24' |
||
list ip6class 'wan_6' |
list ip6class 'wan_6' |
||
option ip6ifaceid 'eui64' |
option ip6ifaceid 'eui64' |
||
option ip6assign '64' |
option ip6assign '64' |
||
The ''list ip6class wan_6'' line causes the lan to use the delegated prefix from wan_6. ''option ip6ifaceid |
The ''list ip6class wan_6'' line causes the lan to use the delegated prefix from wan_6. ''option ip6ifaceid ::1'' makes the local IPv6 address on the lan use ::1 as the 64 bit suffix (you might choose to use ''eui64'' instead to use the 64 bits derived from the MAC address as the suffix). ''option ip6assign 64'' defines the netmask associated with the prefix delegation. |
||
== Multiple routed IPv6 /64 blocks == |
== Multiple routed IPv6 /64 blocks == |
||
| Line 127: | Line 139: | ||
... |
... |
||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
= Advanced configuration of the local network = |
= Advanced configuration of the local network = |
||