josefkyrian

netplan config

May 24th, 2022 (edited)
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.85 KB | None | 0 0
  1. # cat /etc/netplan/01-netcfg.yaml
  2. # This is the network config written by 'subiquity'
  3. network:
  4.   version: 2
  5. #  renderer: networkd
  6. #  renderer: NetworkManager
  7.   ethernets:
  8.     eth-local:
  9.       match:
  10.         macaddress: ac:1f:6b:26:b8:9a
  11.       dhcp4: no
  12.       set-name: eth-local
  13.  
  14.   vlans:
  15.     vlan-uplink:
  16.       id: 10
  17.       link: eth-local
  18.       addresses: [192.168.168.2/24]
  19.       routes:
  20.         - to: 0.0.0.0/0
  21.           via: 192.168.168.3
  22.     vlan-60:
  23.       id: 60
  24.       link: eth-local
  25.       addresses: [100.100.60.110/24]
  26.  
  27.   bridges:
  28.     br-local:
  29.       macaddress: b6:3b:97:ae:4d:b4
  30.       dhcp4: no
  31.       dhcp6: no
  32.       accept-ra: no
  33.       interfaces: [eth-local]
  34.       addresses:
  35.       - 192.168.1.110/24
  36.        - 2a01:430:240:104:0::110/64
  37.       nameservers:
  38.         addresses: [127.0.0.1, 8.8.8.8]
  39.         search: [g]
  40.  
Add Comment
Please, Sign In to add comment