Route configuration cleanup#76
Merged
Merged
Conversation
After a8580fa ("Skip routing rules for default mac interface"), we no longer create a secondary routing table for the primary interface, so we no longer need to emit configuration to install routes into that table. Following this change, the primary ENI (that with device-number=0) will get an eni.conf similar to: [Match] MACAddress=06:4b:8d:43:93:59 [Network] DHCP=yes [DHCPv4] RouteMetric=512 [DHCPv6] RouteMetric=512 While a secondary ENI would continue to get additional stanzas creating routes in the secondary routing table, as in: [Match] MACAddress=06:8a:d8:09:9c:bf [Network] DHCP=yes [DHCPv4] RouteMetric=513 [DHCPv6] RouteMetric=513 [Route] Table=10001 Gateway=_ipv6ra [DHCPv4] RouteTable=10001 [IPv6AcceptRA] RouteTable=10001 [Route] Gateway=_dhcp4 Table=10001
Instead of incrementing metric values by 1 per interface, increment by 10. This leaves room between interfaces for custom configuration that may want to override our routing configuration.
|
A c6g.large instance, 3 ENIs, two with IPv6 enabled: Ping tests to public IPs, two of them EIPs: Same against two interfaces with IPv6 enabled, using online tools: The actual configuration files: It all seems be looking good. |
halfdime-code
approved these changes
Oct 7, 2022
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.
Issue #, if available: n/a
Description of changes:
This change contains two minor fixes to our routing configuration:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.