Replies: 3 comments 5 replies
-
Per ⋮
ia_pd [iaid [/ prefix / prefix_len] [interface [/ sla_id [/ prefix_len [/suffix]]]]]
Request a DHCPv6 Delegated Prefix for iaid. This option must be
used in an interface block. Unless a sla_id of 0 is assigned
with the same resultant prefix length as the delegation, a reject
route is installed for the Delegated Prefix to stop unallocated
addresses being resolved upstream. If no interface is given then
we will assign a prefix to every other interface with a sla_id
equivalent to the interface index assigned by the OS. Otherwise
addresses are only assigned for each interface and sla_id. Each
assigned address will have a suffix, defaulting to 1. If the
suffix is 0 then a SLAAC address is assigned. You cannot assign
a prefix to the requesting interface unless the DHCPv6 server
supports the RFC 6603 Prefix Exclude Option.
⋮ As you can see if you don't specify any interface, then it "will assign a prefix to every other interface with a sla_id equivalent to the interface index assigned by the OS". I believe "every other interface" means the set of interfaces you have The following is what my router$ cat /etc/dhcpcd.conf
noipv6rs
denyinterfaces !(em0)
allowinterfaces em0
script ""
interface em0
duid
iaid 0
ia_na 0
ia_pd 0/::/60
ipv6rs
leasetime -1
nooption domain_name,domain_name_servers,domain_search,fqdn,host_name,ntp_servers,time_offset,time_servers
option rapid_commit
persistent
require dhcp_server_identifier
waitip 64 I have many interfaces on my machine besides |
Beta Was this translation helpful? Give feedback.
-
Is there a question here? Resolving, but feel free to reopen if you have a question. |
Beta Was this translation helpful? Give feedback.
-
@rsmarples I think this might be a limitation of the @Kentzo what happens if you specify a non-existent interface name on that line? (I have no easy way to test this idea right now.) |
Beta Was this translation helpful? Give feedback.
-
I'm requesting a prefix so I can distribute it among my IPsec clients (virtual IPs). This I only need dhcpcd to request and maintain binding as well as call the hook to reflect changes.
My current approach is to assign the prefix to the same interface that requested it. It works because my Router doesn't support
OPTION_PD_EXCLUDE
. But it's a unreliable long-term.Beta Was this translation helpful? Give feedback.
All reactions