-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure interfaces to mimic default AL2023
- Loading branch information
Nikolay Kvetsinski
committed
Nov 15, 2024
1 parent
054479d
commit 28afb86
Showing
7 changed files
with
123 additions
and
41 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
9 changes: 8 additions & 1 deletion
9
nodeadm/internal/system/_assets/10-eks_primary_eni_only.conf.template
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
[Match] | ||
PermanentMACAddress={{.PermanentMACAddress}} | ||
PermanentMACAddress={{.PermanentMACAddress}} | ||
|
||
[DHCPv4] | ||
RouteMetric=512 | ||
|
||
[IPv6AcceptRA] | ||
RouteMetric=512 | ||
UseGateway=true |
48 changes: 42 additions & 6 deletions
48
nodeadm/internal/system/_assets/interface.network.template
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,59 @@ | ||
[Match] | ||
Driver=ena ixgbevf vif | ||
PermanentMACAddress={{.PermanentMACAddress}} | ||
|
||
[Link] | ||
MTUBytes=9001 | ||
|
||
[Link] | ||
MTUBytes=9001 | ||
|
||
[Network] | ||
DHCP=ipv4 | ||
DHCP=yes | ||
IPv6DuplicateAddressDetection=0 | ||
LLMNR=no | ||
DNSDefaultRoute=yes | ||
IPv6AcceptRA=no | ||
|
||
[DHCPv4] | ||
UseHostname=no | ||
UseDNS=yes | ||
UseNTP=yes | ||
UseDomains=yes | ||
RouteTable={{.RouteTableId}} | ||
RouteMetric={{.RouteTableMetric}} | ||
UseRoutes=true | ||
UseGateway=true | ||
|
||
[DHCPv6] | ||
UseHostname=no | ||
UseDNS=yes | ||
UseNTP=yes | ||
WithoutRA=solicit | ||
|
||
[RoutingPolicyRule] | ||
From={{.IpV4Address}} | ||
Table={{.RouteTableId}} | ||
Priority={{.RouteTableId}} | ||
|
||
[RoutingPolicyRule] | ||
From={{.IPAddress}} | ||
From={{.IpV6Address}} | ||
Table={{.RouteTableId}} | ||
Priority={{.RouteTableId}} | ||
|
||
[IPv6AcceptRA] | ||
RouteMetric={{.RouteTableMetric}} | ||
UseGateway=true | ||
|
||
[Route] | ||
Table={{.RouteTableId}} | ||
Gateway=_ipv6ra | ||
|
||
[Route] | ||
Table={{.RouteTableId}} | ||
Destination={{.IpV6Subnet}} | ||
|
||
[Route] | ||
Gateway=_dhcp4 | ||
Table={{.RouteTableId}} | ||
|
||
[Route] | ||
Table={{.RouteTableId}} | ||
Priority={{.RoutePriority}} | ||
Destination={{.IpV4Subnet}} |
9 changes: 8 additions & 1 deletion
9
nodeadm/internal/system/_assets/test_10-eks_primary_eni_only.conf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
[Match] | ||
PermanentMACAddress=0e:f7:72:74:2d:43 | ||
PermanentMACAddress=0e:f7:72:74:2d:43 | ||
|
||
[DHCPv4] | ||
RouteMetric=512 | ||
|
||
[IPv6AcceptRA] | ||
RouteMetric=512 | ||
UseGateway=true |
This file contains 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