Skip to content

Instantly share code, notes, and snippets.

@jaraddowning
Created June 25, 2023 00:28
Show Gist options
  • Save jaraddowning/db957dbbf268a6191d57bf56b8e14664 to your computer and use it in GitHub Desktop.
Save jaraddowning/db957dbbf268a6191d57bf56b8e14664 to your computer and use it in GitHub Desktop.
In order for this to work on Ubuntu the renderer must be networkd.
This will cause gnome to think your network is disconnected, I guess I need to do a pill request to fix that. :)
Some configurations depend on previous settings so be careful if you remove the bond from the config, just swap the adaptor name in for the bridge.
All networks have vlan1 so this will work even if all you have is a dumb switch.
network:
version: 2
renderer: networkd
ethernets:
enp0s25:
dhcp4: true
dhcp6: false
optional: false
wakeonlan: true
enp2s0f0:
dhcp4: false
dhcp6: false
optional: true
enp2s0f1:
dhcp4: false
dhcp6: false
optional: false
enp2s0f2:
dhcp4: false
dhcp6: false
optional: false
enp2s0f3:
dhcp4: false
dhcp6: false
optional: false
enp1s0f0:
dhcp4: false
dhcp6: false
optional: false
enp1s0f0:
dhcp4: false
dhcp6: false
optional: false
bonds:
bondlan:
interfaces: [enp2s0f0, enp2s0f1]
dhcp4: false
dhcp6: false
parameters:
mode: 802.3ad
lacp-rate: fast
ad-select: bandwidth
mii-monitor-interval: 100
min-links: 1
fail-over-mac-policy: none
bridges:
br10:
interfaces: [ mgmt.10 ]
dhcp4: false
dhcp6: false
addresses: []
parameters:
stp: false
priority: 65535
br20:
interfaces: [ bondlan ]
dhcp4: false
dhcp6: false
dhcp4-overrides:
route-metric: 50
addresses: [10.0.20.10/23]
routes:
- to: default
via: 10.0.21.254
nameservers:
addresses: [10.0.20.12,10.0.20.2]
parameters:
stp: false
priority: 65535
br30:
interfaces: [ guest.30 ]
dhcp4: false
dhcp6: false
addresses: []
parameters:
stp: false
priority: 65535
br40:
interfaces: [ security.40 ]
dhcp4: false
dhcp6: false
addresses: []
parameters:
stp: false
priority: 65535
br50:
interfaces: [ local.50 ]
dhcp4: false
dhcp6: false
addresses: []
parameters:
stp: false
priority: 65535
vlans:
mgmt.10:
id: 10
link: bondlan
dhcp4: false
dhcp6: false
guest.30:
id: 30
link: bondlan
dhcp4: false
dhcp6: false
security.40:
id: 40
link: bondlan
dhcp4: false
dhcp6: false
local.50:
id: 50
link: bondlan
dhcp4: false
dhcp6: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment