-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[READY] - dev-server to support bond and vlans for test environment #809
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
24efa91
to
0df594c
Compare
0df594c
to
24efa91
Compare
Without this a `nixos-rebuild switch` would hang until the systemd.network.wait-online service timedout and failed to start. Co-authored-by: Owen DeLong <[email protected]>
b5463f1
to
fb38bfb
Compare
This change introduces a 4 nic LACP and bridges for each expo vlan. This allows the tech team the ability to test across any of the networks we deploy in the expo building. Most likely we will only be using the management vlan (vlan103) initially. Co-authored-by: Owen DeLong <[email protected]>
This might be problematic if we try to pass bridges into a hypervisor which want ipv6 addresses. But we'll cross that "bridge" when we get to it. Co-authored-by: Owen DeLong <[email protected]>
…stuff TODO: this would probably be disabled across the board for all ipv6 nixos hosts. Co-authored-by: Owen DeLong <[email protected]>
Unlike the hypervisors during the show: The dev-server has multiple networks that its apart of: HE Tunnel + Scale Expo Network. Thus we must be explicit about which route the entire 10.0.0.0/8 should take. Co-authored-by: Owen DeLong <[email protected]>
Explicit routes for ipv6 since we have multiple networks in the colo at HE: HE itself and Scale Expo Network. Co-authored-by: Owen DeLong <[email protected]>
fb38bfb
to
e98c5da
Compare
enable = true; | ||
netdevs = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wasn't familiar with netdev configuration, so thanks for the TIL! :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the explicit approach here. (crafty loops intending to lower the line count seem to make things harder to grok)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Way more VLANs than I was expecting. Will help if we ever want to test implementing proper ACLs and test from any subnet. Awesome work @owendelong and @sarcasticadmin !
"net.ipv6.conf.bridge112.autoconf" = false; | ||
"net.ipv6.conf.bridge499.autoconf" = false; | ||
# completely disable IPv6 temporary addresses | ||
"net.ipv6.conf.default.use_tempaddr" = lib.mkForce 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Totally agree here. This could have been a really ugly combination of attribute set and map function or something even more sinister. |
Thanks for the reviews @ruebenramirez and @kylerisse . Glad you both appreciate the approach |
Description of PR
Relates to #807
In an effort to stand up a working ipv6 network with a expo network configuration on the dev-server in the colo. We've added a 4 port LACP interface
bond0
with VLANs to simulate expo building along with the various out network configuration that was needed.Previous Behavior
New Behavior
bond0
interfacebond0
interface10.0.3.5
for the dev-server10.0.0.0/8
and2001:470:f026::/48
networksTests
nixos-rebuild switch --flake github:socallinuxexpo/scale-network/rh/issue-807-dhcp#devServer --refresh
works cleanlybond0
to HE gateway