Skip to content

Instantly share code, notes, and snippets.

@kincl
Last active February 17, 2024 21:22
Show Gist options
  • Save kincl/424cebfae2545f90b8dc3df744369113 to your computer and use it in GitHub Desktop.
Save kincl/424cebfae2545f90b8dc3df744369113 to your computer and use it in GitHub Desktop.
NMState Snippets
interfaces:
- name: bond0
type: bond
state: up
ipv4:
address:
- ip: 192.168.126.30
prefix-length: 24
dhcp: false
enabled: true
link-aggregation:
mode: balance-rr
options:
miimon: '140'
port:
- ens1f0np0
- ens1f1np1
- name: ens1f0np0
state: up
type: ethernet
- name: ens1f1np1
state: up
type: ethernet
dns-resolver:
config:
server:
- 192.168.126.1
routes:
config:
- destination: 0.0.0.0/0
next-hop-address: 192.168.126.1
next-hop-interface: bond0
table-id: 254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment