Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static IPv6 Fallback not getting enabled when DHCPv6 and SLAAC is disabled #433

Open
Kenny-a11y opened this issue Jan 15, 2025 · 6 comments

Comments

@Kenny-a11y
Copy link

Kenny-a11y commented Jan 15, 2025

`
hostname
clientid
persistent
option rapid_commit
option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
option interface_mtu
require dhcp_server_identifier
noipv6rs
slaac private

reboot 10

interface eth0
metric 100

fallback static_ipv4

profile static_ipv4
static ip_address=10.xxx.xxx.100/24
static routers=10.xxx.xxx.101
static domain_name_servers=8.8.8.8 1.1.1.1

fallback static_ipv6

profile static_ipv6
static ip6_address=2001:xxxx:xxxx:xxxx::10/64
static ip6routers=2001:xxxx:xxxxx:xxxx::2`

Could it be that my static_ipv6 profile is not getting triggered?
My intended aim is to make dhcpcd.conf file work for 4 cases

Case 1: DHCPv4 and DHCPv6 works, get dynamic IPv4 and IPv6 (successful)

Case 2: DHCPv4 does not work and DHCPv6 works, set static IPv4 and get dynamic IPv6 (successful)

Case 3: DHCPv4 works and DHCPv6 does not works, get dynamic IPv4 and set static IPv6 (unsuccessful as static IPv6 is not set)

Case 4: DHCPv4 does not work and DHCPv6 does not works, set static IPv4 and IPv6 (unsuccessful as static IPv6 is not set)

@Kenny-a11y
Copy link
Author

Kenny-a11y commented Jan 15, 2025

Also this is version 8.1.2 running on debian raspi (linux 11)

@perkelix
Copy link
Contributor

Debian stable has 9.4.1 and testing currently has 10.1.0. You might wanna test using one of these instead.

@rsmarples
Copy link
Member

fallback is currently only for DHCP, not DHCPv6.

@Kenny-a11y
Copy link
Author

Ok thanks for the confirmation

@Kenny-a11y
Copy link
Author

Kenny-a11y commented Jan 21, 2025

also quick question what is the line i should add to to let me add a ipv6 dns server? I want to it to append it to resolv.conf

@rsmarples
Copy link
Member

dhcpcd doesn't support prefixing/appending configs directly.

But you have a few options:

  • Massage the new_dhcp6_name_servers variable in dhcpcd.enter-hook
  • Configure resolvconf(8) to do append any dns server you want

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants