Development Stuff for hardware and software configurations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.1 KiB

4 years ago
  1. # using netplan
  2. Netplan is the replacement for the non-deterministic `/etc/network/interfaces` that Debian *still* uses. It uses YAML format configuration files to configure your network.
  3. It works remarkably well, and isn't cryptic to read like the `interfaces` rules.
  4. ## Examples
  5. Here are some examples
  6. ### VLAN Tagged network
  7. This configuration is an example from hydra
  8. ```
  9. network:
  10. version: 2
  11. ethernets:
  12. enp65s0:
  13. dhcp4: false
  14. addresses: []
  15. enp2s0f0:
  16. dhcp4: false
  17. addresses: []
  18. enp2s0f1:
  19. dhcp4: false
  20. addresses: []
  21. bridges:
  22. br2:
  23. dhcp4: false
  24. addresses: [ 128.153.145.42/23 ]
  25. gateway4: 128.153.145.1
  26. nameservers:
  27. addresses: [ 128.153.145.3, 8.8.8.8 ]
  28. search: [ cslabs.clarkson.edu ]
  29. interfaces: [ v2_cosi_priv ]
  30. br4:
  31. dhcp4: false
  32. addresses: [ 128.153.146.42/24 ]
  33. interfaces: [ v4_cosi_146 ]
  34. br5:
  35. dhcp4: false
  36. interfaces: [ v5_cosi_voip ]
  37. vlans:
  38. v2_cosi_priv:
  39. id: 2
  40. link: enp65s0
  41. v4_cosi_146:
  42. id: 4
  43. link: enp65s0
  44. v5_cosi_voip:
  45. id: 5
  46. link: enp65s0
  47. ```