Skip to content

Add IPv6 gateway support for container networking#1174

Open
yordsel wants to merge 1 commit intoapple:mainfrom
yordsel:feature/ipv6-support
Open

Add IPv6 gateway support for container networking#1174
yordsel wants to merge 1 commit intoapple:mainfrom
yordsel:feature/ipv6-support

Conversation

@yordsel
Copy link

@yordsel yordsel commented Feb 6, 2026

Summary

  • Add ipv6Gateway field to network Attachment and NetworkState structs
  • Update NetworkService and ReservedVmnetNetwork to populate IPv6 gateway
  • Pass IPv6 gateway to NATInterface/NATNetworkInterface in runtime strategies

Details

This PR adds the container-side support for IPv6 networking, complementing the IPv6 implementation in the containerization library (apple/containerization#519).

The changes add the ipv6Gateway field throughout the network stack so that containers can properly configure IPv6 routing.

Dependencies

Test plan

  • Verified IPv6 connectivity from host to container
  • Verified IPv6 connectivity between containers
  • Verified DNS resolution for both A and AAAA records
  • Verified backward compatibility with IPv4-only networks

🤖 Generated with Claude Code

@yordsel yordsel force-pushed the feature/ipv6-support branch from 461948b to d125a79 Compare February 6, 2026 22:01
Add ipv6Gateway field to network attachments and status to enable
proper IPv6 routing in containers. This complements the existing
ipv6Address/ipv6Subnet fields.

Changes:
- Attachment: Add ipv6Gateway field
- NetworkState: Add ipv6Gateway to NetworkStatus
- IsolatedInterfaceStrategy: Pass IPv6 gateway to NATInterface
- NonisolatedInterfaceStrategy: Pass IPv6 gateway to NATNetworkInterface
- NetworkService: Include ipv6Gateway in attachment creation
- ReservedVmnetNetwork: Calculate and store ipv6Gateway

Depends on: apple/containerization IPv6 support

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@yordsel yordsel force-pushed the feature/ipv6-support branch from 11e2415 to 40abf11 Compare February 6, 2026 22:50
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.

1 participant