SHARE
TWEET

Systemd VLAN definitions

burchbri Nov 27th, 2018 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # define the 802.1Q unsafe VLAN virtual device
  2. # with the file 20-enp3s0.usafe.netdev
  3.  
  4. [NetDev]
  5. Description=Unsafe Port-mapped VLAN device
  6. Name=enp3s0.usafe
  7. Kind=vlan
  8.  
  9. [VLAN]
  10. Id=4
  11.  
  12.  
  13. # define the real interface
  14. # with the file 30-enp3s0.network
  15.  
  16. # We will use static definitions of our internal network
  17. # until prefix delegation can be scripted
  18. [Match]
  19. Name=enp3s0
  20.  
  21. [Address]
  22. Address=10.1.253.153/24
  23.  
  24. [Address]
  25. Address=2401:a400:4503:5820:253::153/64
  26.  
  27. [Network]
  28. Description=Internal network interface
  29.  
  30. DNS=10.1.253.11
  31. DNS=2401:a400:4503:5820:253::11
  32.  
  33. Domains=pingtoo.com
  34.  
  35. VLAN=enp3s0.usafe
  36.  
  37. [Route]
  38. Destination=2401:a400:4503:5820:253::/80
  39.  
  40. [Route]
  41. Gateway=10.1.253.1
  42.  
  43. [Route]
  44. Gateway=2401:a400:4503:5820:253::1
  45. [Match]
  46. Name=enp3s0.usafe
  47.  
  48.  
  49. # define the virtual interface
  50. # with the file 40-enp3s0.usafe.network
  51.  
  52. [Network]
  53. Description=Unsafe VLAN addressing
  54. DHCP=no
  55.  
  56. [Address]
  57. Address=10.1.250.153/24
  58.  
  59. [Address]
  60. Address=2401:a400:4503:5820:250::153/64
  61.  
  62. [Route]
  63. Destination=2401:a400:4503:5820:250::/80
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top