Advertisement
cadre_78

netplan

Jan 18th, 2024 (edited)
166
0
59 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.20 KB | None | 0 0
  1. Computer 1
  2.  
  3. network:
  4.   version: 2
  5.   renderer: networkd
  6.   ethernets:
  7.     enp1s0:
  8.       dhcp4: true
  9.     enp4s0:
  10.       addresses:
  11.        - xxx.xxx.xxx.xxx/24
  12.       routes:
  13.         - to: default
  14.           via: 10.0.0.1
  15.   tunnels:
  16.     wg0:
  17.       mode: wireguard
  18.       port: 51820
  19.       key: XXX
  20.       addresses:
  21.        - 10.0.0.1/24
  22.       peers:
  23.         - allowed-ips: [10.0.0.0/24]
  24.           endpoint: xxx.xxx.xxx.xxx:51820
  25.           keys:
  26.             public: XXX
  27.     vxlan0:
  28.       mode: vxlan
  29.       id: 100
  30.       local: 10.8.0.1
  31.       remote: 10.8.0.2
  32.       port: 4789
  33.       link: enp4s0
  34.  
  35. Computer 2
  36.  
  37. network:
  38.   version: 2
  39.   renderer: networkd
  40.   ethernets:
  41.     enp1s0:
  42.       dhcp4: true
  43.     enp4s0:
  44.       addresses:
  45.        - xxx.xxx.xxx.xxx/24
  46.       routes:
  47.         - to: default
  48.           via: 10.0.0.2
  49.   tunnels:
  50.     wg0:
  51.       mode: wireguard
  52.       port: 51820
  53.       key: XXX
  54.       addresses:
  55.        - 10.0.0.1/24
  56.       peers:
  57.         - allowed-ips: [10.0.0.0/24]
  58.           endpoint: xxx.xxx.xxx.xxx:51820
  59.           keys:
  60.             public: XXXX
  61.     vxlan0:
  62.       mode: vxlan
  63.       id: 100
  64.       local: 10.8.0.2
  65.       remote: 10.8.0.1
  66.       port: 4789
  67.       link: enp4s0
  68.  
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement