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

fix: properly configure IPv6 through Gateway6+IPV6Address #41

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

pborn-ionos
Copy link
Contributor

Issue #, if available:
Fixes #39

Description of changes:

Although the primary change is around having Gateway6 properly set in the cloud-init network configuration, so gateway ::/0 can be set, i figured it might make sense to still separate it a bit more into Gateway6 and IPV6Address, so it's more clear what's referenced with those variables.

Testing performed:

Extensive redeployments and cloud-init config extraction.

DUALSTACK

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      match:
        macaddress: DA:A3:1B:83:BF:A4
      dhcp4: 'no'
      addresses:
        - 192.168.0.61/24
        - 2001:dead:beef:aaaa::a/64
      routes:
        - to: 0.0.0.0/0
          via: 192.168.0.1
        - to: '::/0'
          via: 2001:dead:beef:be24:11ff:fe20:b2ed
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

IPV6-only

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      match:
        macaddress: 3E:87:D2:F9:17:AE
      dhcp4: 'no'
      addresses:
        - 2001:dead:beef:aaaa::a/64
      routes:
        - to: '::/0'
          via: 2001:dead:beef:be24:11ff:fe20:b2ed
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

IPv4-only

network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      match:
        macaddress: 26:BB:01:A4:8C:84
      dhcp4: 'no'
      addresses:
        - 192.168.0.61/24
      routes:
        - to: 0.0.0.0/0
          via: 192.168.0.1
      nameservers:
        addresses:
          - 8.8.8.8
          - 8.8.4.4

Copy link
Member

@mcbenjemaa mcbenjemaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pborn-ionos pborn-ionos marked this pull request as ready for review December 17, 2023 16:06
@pborn-ionos pborn-ionos enabled auto-merge (squash) December 17, 2023 16:07
@pborn-ionos
Copy link
Contributor Author

@mcbenjemaa as the PR wasn't ready-to-review when you had a look at it, would you mind giving it the approval ✅, so the auto-merge can run through? :)

Copy link

@pborn-ionos pborn-ionos merged commit 8f39b1a into main Dec 18, 2023
9 checks passed
@pborn-ionos pborn-ionos deleted the fix/39 branch December 18, 2023 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incorrect cloudinit template (network gateway) with ipv6only setup
3 participants