Repository navigation
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
Conversation
…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
Bot
force-pushed
the
test_1029537610
branch
from
November 25, 2026 04:38
c1b39d0 to
ed484e5
Compare
ipv6-aliases in instance metadata, which previously went unparsed on both Linux and Windows and left alias prefixes unrouted inside the guest OS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GCE instances configured with IPv6 alias IP ranges expose CIDR prefixes under
ipv6-aliasesin instance metadata, which previously went unparsed in Guest Agent and left IPv6 alias prefixes unrouted inside Linux guests.Parse
ipv6-aliasesfrom metadata and add an optionalipv6_aliasessetting under[IpForwarding]that defaults toip_aliaseswhen unset so operators can toggle IPv6 alias routing independently or inherit existing alias settings. Update the Linux route backend to pass-6toip routefor IPv6 destinations and query both IPv6 and IPv4 local routing tables withoutscope hoston IPv6, sinceip -6 routeignores host scope on local prefix routes. Extend Cloud Image Testsnetworkalias IP coverage to verify IPv6 alias routes across boot, reboot, agent restart,ipv6_aliases = falseoverride, andggactl_plugin routes setup.