| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| docs:guide-user:network:ipv6:configuration [2023/12/04 15:22] – [Protocol "dhcpv6", IPv6] add extendprefix manassam | docs:guide-user:network:ipv6:configuration [2024/08/06 22:16] – [Table] fblaese |
|---|
| ====== IPv6 configuration ====== | ====== IPv6 configuration ====== |
| See also: | See also: |
| [[docs:guide-user:network:routing:examples:routing_with_ipv6|Routing example: IPv6]], | [[docs:guide-user:network:routing:routes_configuration#ipv6_routes|Static IPv6 routes]], |
| | [[docs:guide-user:network:routing:examples:routing_with_ipv6|IPv6 routing example]], |
| [[docs:guide-user:network:ipv6_ipv4_transitioning|IPv4/IPv6 transitioning]], | [[docs:guide-user:network:ipv6_ipv4_transitioning|IPv4/IPv6 transitioning]], |
| [[docs:guide-user:network:ipv6:ipv6_extras|IPv6 extras]] | [[docs:guide-user:network:ipv6:ipv6_extras|IPv6 extras]] |
| | ''dns'' | list of ip addresses | no | //(none)// | Supplement DHCP-assigned DNS server(s), or use only these if peerdns is 0 | | | ''dns'' | list of ip addresses | no | //(none)// | Supplement DHCP-assigned DNS server(s), or use only these if peerdns is 0 | |
| | ''peerdns'' | boolean | no | ''1'' | Use DHCP-provided DNS server(s) | | | ''peerdns'' | boolean | no | ''1'' | Use DHCP-provided DNS server(s) | |
| | | ''keep_ra_dnslifetime'' | boolean | no | ''0'' | Ignore default lifetime for RDNSS records [[https://github.com/openwrt/odhcp6c/commit/d420f49396c627ce1072b83170889baf0720bc8b|More info]] | |
| | ''defaultroute'' | boolean | no | ''1'' | Whether to create an IPv6 default route via the received gateway | | | ''defaultroute'' | boolean | no | ''1'' | Whether to create an IPv6 default route via the received gateway | |
| | ''reqopts'' | list of numbers | no | //(none)// | Specifies a list of additional DHCP options to request | | | ''reqopts'' | list of numbers | no | //(none)// | Specifies a list of additional DHCP options to request | |
| | ''ra_holdoff'' | integer | no | ''3'' | Minimum time in seconds between accepting RA updates | | | ''ra_holdoff'' | integer | no | ''3'' | Minimum time in seconds between accepting RA updates | |
| | ''noclientfqdn'' | boolean | no | ''0'' | Don't send Client FQDN option (Option 39). The unset default uses the system hostname e.g. ''OpenWrt'' | | | ''noclientfqdn'' | boolean | no | ''0'' | Don't send Client FQDN option (Option 39). The unset default uses the system hostname e.g. ''OpenWrt'' | |
| | | ''noacceptreconfig'' | boolean | no | ''0'' | Don't send Accept Reconfigure option [[https://github.com/openwrt/odhcp6c/commit/dc30922e418be6271ad177f3f9d4ecf0c1eb3f01|More info]] | |
| | | ''noserverunicast'' | boolean | no | ''0'' | Ignore Server Unicast option [[https://github.com/openwrt/odhcp6c/commit/67ae6a71b5762292e114b281d0e329cc24209ae6|More info]] | |
| | | ''skpriority'' | integer | no | ''0'' | Set packet kernel priority [[https://github.com/openwrt/odhcp6c/commit/bcd283632ac13391aac3ebdd074d1fd832d76fa3|More info]] | |
| | | ''verbose'' | boolean | no | ''0'' | Increase logging verbosity | |
| |
| **Note:** To automatically configure ds-lite from dhcpv6, you need to create an interface with ''option auto 0'' and put its name as the 'iface_dslite' parameter. In addition, you also need to add its name to a suitable firewall zone in /etc/config/firewall. | **Note:** To automatically configure ds-lite from dhcpv6, you need to create an interface with ''option auto 0'' and put its name as the 'iface_dslite' parameter. In addition, you also need to add its name to a suitable firewall zone in /etc/config/firewall. |
| |
| ==== Protocol "static", IPv6 ==== | ==== Protocol "static", IPv6 ==== |
| ^ Name ^ Type ^ Required ^ Default ^ Description ^ | ^ Name ^ Type ^ Required ^ Default ^ Description ^ |
| | ''ip6addr'' | ipv6 address | yes, if no ''ipaddr'' is set | //(none)// | Assign given IPv6 address to this interface (CIDR notation) | | | ''ip6addr'' | ipv6 address | yes, if no ''ipaddr'' is set | //(none)// | Assign given IPv6 address to this interface (CIDR notation) | |
| | ''ip6ifaceid'' | ipv6 suffix | no | ::1 | Allowed values: 'eui64', 'random', fixed value like '::1:2'. \\ When IPv6 prefix (like 'a:b:c:d::') is received from a delegating server, use the suffix (like '::1') to form the IPv6 address ('a:b:c:d::1') for this interface. Useful with several routers in LAN. The option was introduced by [[http://git.openwrt.org/?p=project/netifd.git;a=commitdiff;h=0b0e5e2fc5b065092644a5c4717c0a03a9098dcf;hp=e9d2014a478807c7fac0581bb4a145901a3f23b4|this commit]] to netifd in Jan 2015. | | | ''ip6ifaceid'' | ipv6 suffix | no | ::1 | Allowed values: 'eui64', 'random', fixed value like '::1:2'. \\ When IPv6 prefix (like 'a:b:c:d::') is received from a delegating server, use the suffix (like '::1') to form the IPv6 address ('a:b:c:d::1') for this interface. Useful with several routers in LAN. The option was introduced by [[http://git.openwrt.org/?p=project/netifd.git;a=commitdiff;h=0b0e5e2fc5b065092644a5c4717c0a03a9098dcf;hp=e9d2014a478807c7fac0581bb4a145901a3f23b4|this commit]] to netifd in Jan 2015. | |
| | ''ip6gw'' | ipv6 address | no | //(none)// | Assign given IPv6 default gateway to this interface | | | ''ip6gw'' | ipv6 address | no | //(none)// | Assign given IPv6 default gateway to this interface | |
| | ''ip6assign'' | prefix length | no | //(none)// | Delegate a prefix of given length to this interface (see Downstream configuration below) | | | ''ip6assign'' | prefix length | no | //(none)// | Delegate a prefix of given length to this interface (see Downstream configuration below) | |
| | ''ip6hint'' | prefix hint (hex) | no | //(none)// | Hint the subprefix-ID that should be delegated as hexadecimal number (see Downstream configuration below) | | | ''ip6hint'' | prefix hint (hex) | no | //(none)// | Hint the subprefix-ID that should be delegated as hexadecimal number (see Downstream configuration below) | |
| | ''ip6prefix'' | ipv6 prefix | no | //(none)// | IPv6 prefix routed here for use on other interfaces (Barrier Breaker and later only) | | | ''ip6prefix'' | ipv6 prefix | no | //(none)// | IPv6 prefix routed here for use on other interfaces (Barrier Breaker and later only) | |
| | ''ip6class'' | list of strings | no | //(none)// | Define the IPv6 prefix-classes this interface will accept | | | ''ip6class'' | list of strings | no | //(none)// | Define the IPv6 prefix-classes this interface will accept | |
| | ''dns'' | list of ip addresses | no | //(none)// | DNS server(s) | | | ''ip6deprecated'' | boolean | no | ''0'' | Set preferred lifetime of IPv6 addresses to zero | |
| | ''dns_metric'' | integer | no | ''0'' | [[commit>?p=project/netifd.git;a=commitdiff;h=7f6be657e2dabc185417520de4d0d0de2580c27d|DNS metric]] | | | ''dns'' | list of ip addresses | no | //(none)// | DNS server(s) | |
| | ''dns_search'' | list of domain names | no | //(none)// | Search list for host-name lookup, relevant only for the router | | | ''dns_metric'' | integer | no | ''0'' | [[commit>?p=project/netifd.git;a=commitdiff;h=7f6be657e2dabc185417520de4d0d0de2580c27d|DNS metric]] | |
| | ''metric'' | integer | no | ''0'' | Specifies the default route metric to use | | | ''dns_search'' | list of domain names | no | //(none)// | Search list for host-name lookup, relevant only for the router | |
| | | ''metric'' | integer | no | ''0'' | Specifies the default route metric to use | |
| |
| ===== Downstream configuration for LAN interfaces ===== | ===== Downstream configuration for LAN interfaces ===== |