Skip to content

GCE instances configured with IPv6 alias IP ranges expose CIDR prefixes under ipv6-aliases in instance metadata, which previously went unparsed in Guest Agent and left IPv6 alias prefixes unrouted inside Linux guests. - #684

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_1029537610

Conversation

@copybara-service

@copybara-service copybara-service Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

GCE instances configured with IPv6 alias IP ranges expose CIDR prefixes under ipv6-aliases in instance metadata, which previously went unparsed in Guest Agent and left IPv6 alias prefixes unrouted inside Linux guests.

Parse ipv6-aliases from metadata and add an optional ipv6_aliases setting under [IpForwarding] that defaults to ip_aliases when unset so operators can toggle IPv6 alias routing independently or inherit existing alias settings. Update the Linux route backend to pass -6 to ip route for IPv6 destinations and query both IPv6 and IPv4 local routing tables without scope host on IPv6, since ip -6 route ignores host scope on local prefix routes. Extend Cloud Image Tests network alias IP coverage to verify IPv6 alias routes across boot, reboot, agent restart, ipv6_aliases = false override, and ggactl_plugin routes setup.

…es under `ipv6-aliases` in instance metadata, which previously went unparsed in Guest Agent and left IPv6 alias prefixes unrouted inside Linux guests.

Parse `ipv6-aliases` from metadata and add an optional `ipv6_aliases` setting under `[IpForwarding]` that defaults to `ip_aliases` when unset so operators can toggle IPv6 alias routing independently or inherit existing alias settings. Update the Linux route backend to pass `-6` to `ip route` for IPv6 destinations and query both IPv6 and IPv4 local routing tables without `scope host` on IPv6, since `ip -6 route` ignores host scope on local prefix routes. Extend Cloud Image Tests `network` alias IP coverage to verify IPv6 alias routes across boot, reboot, agent restart, `ipv6_aliases = false` override, and `ggactl_plugin routes setup`.

PiperOrigin-RevId: 1029537610
@copybara-service copybara-service Bot changed the title GCE instances configured with IPv6 alias IP ranges expose CIDR prefixes under ipv6-aliases in instance metadata, which previously went unparsed on both Linux and Windows and left alias prefixes unrouted inside the guest OS. Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant