-
|
I am trying to set up a dual-homed Bottlerocket EC2 instance, where the primary ENI is in a subnet that has a route to an Internet Gateway, while the other ENI is in a private subnet. I managed to get a basic setup working by manually introducing # /.bottlerocket/rootfs/.bottlerocket/net.toml
version = 1
[eth0]
dhcp4 = true
primary = true
[eth1]
dhcp4 = trueIs there a more canonical and automate-able approach that I can take? I tried to see if there was a way to use kernel command line flags and I also tried to see it there was a cargo metadata option that I could use from I would appreciate any inputs on how this can be done. Thanks! 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes! There are actually several ways to do this! PR #714 added Using bootstrap-commands: The base64 decodes to your net.toml. The instance boots, writes the config, reboots, and comes up with both interfaces configured. Other approaches:
Some gotchas to be aware of:
|
Beta Was this translation helpful? Give feedback.
@rajivr,
Yes! There are actually several ways to do this!
PR #714 added
apiclient network configurewhich lets you writenet.toml.Using bootstrap-commands:
The base64 decodes to your net.toml. The instance boots, writes the config, reboots, and comes up with both interfaces configured.