Advertisement
gregorst

Hetzner subnet configuration

Jun 8th, 2020
1,433
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.73 KB | None | 0 0
  1. auto enp35s0
  2. iface enp35s0 inet static
  3.   address MAIN_IP
  4.   netmask 255.255.255.192
  5.   gateway GW_IP
  6.         post-up echo 1 > /proc/sys/net/ipv4/ip_forward
  7.         post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp
  8.  
  9.   up route add -net xxx.xxx.xxx.xxx netmask 255.255.255.192 gw xxx.xxx.xxx.xxx dev enp35s0
  10.  
  11. # SUBNET 1
  12. auto vmbr0
  13. iface vmbr0 inet static
  14. address SUBNET0_IP0
  15. # WILL Make SUBNET0_IP1 TO SUBNET0_IP6 available
  16. netmask 255.255.255.248
  17. bridge_ports none
  18. bridge_stp off
  19. bridge_fd 0
  20. bridge_maxwait 0
  21.  
  22. # SUBNET 2
  23. auto vmbr1
  24. iface vmbr1 inet static
  25. address SUBNET1_IP0
  26. # WILL Make SUBNET1_IP1 TO SUBNET1_IP6 available
  27. netmask 255.255.255.248
  28. bridge_ports none
  29. bridge_stp off
  30. bridge_fd 0
  31. bridge_maxwait 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement