burchbri

VLAN configuration: netplan bad

Nov 27th, 2018
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. network:
  2. version: 2
  3. renderer: networkd
  4.  
  5. ethernets:
  6. enp3s0:
  7. # udev is confused on this system
  8. #
  9. match:
  10. macaddress: e0:d5:5e:2f:ee:3a
  11.  
  12. # delay boot if this crucial internal interface is down
  13. #
  14. optional: false
  15.  
  16. # Merlot provides DHCP Services on this interface
  17. #
  18. dhcp4: false
  19. dhcp6: false
  20. accept-ra: false
  21.  
  22. # Infrastructure Vlan 3 subnet 253
  23. #
  24. addresses:
  25. - 10.1.253.153/24
  26. - 2401:a400:4503:5820:253::153/80
  27.  
  28. # very few explicit routes are needed
  29. # because the ip4 routes are implicit above,
  30. # but the individual ip6 subnets are all /80
  31. #
  32. routes:
  33. # for the moment, define our entire ip6 delegated prefix on merlot
  34. #
  35. - to: 2401:a400:4503:5820::/60
  36. via: 2401:a400:4503:5820:253::1
  37.  
  38. # ip6 default route must not depend on enp2s0 being up...
  39. #
  40. - to: "::0/0"
  41. via: 2401:a400:4503:5820:253::1
  42.  
  43. nameservers:
  44. search: [ pingtoo.com ]
  45. addresses: [ "10.1.253.11", "2401:a400:4503:5820:253::11" ]
  46.  
  47.  
  48. # define the vlans at the same level as ethernets key above
  49. #
  50. vlans:
  51.  
  52. # membership on the unsafe 802.1Q VLAN
  53. #
  54. usafe:
  55.  
  56. # assign the VLAN identity number
  57. #
  58. id: 4
  59.  
  60. # select the underlying real device for this virtual interface
  61. #
  62. link: enp3s0
  63.  
  64. addresses:
  65. - 10.1.250.153/24
  66. - 2401:a400:4504:5820:250::153/80
  67.  
  68. routes:
  69. - to: 2401:a400:4503:5820:250::/80
  70. via: 2401:a400:4503:5820:250::1
  71. on-link: true
RAW Paste Data