Advertisement
Guest User

Untitled

a guest
May 8th, 2018
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. # network interface settings; autogenerated
  2. # Please do NOT modify this file directly, unless you know what
  3. # you're doing.
  4. #
  5. # If you want to manage part of the network configuration manually,
  6. # please utilize the 'source' or 'source-directory' directives to do
  7. # so.
  8. # PVE will preserve these directives, but will NOT its network
  9. # configuration from sourced files, so do not attempt to move any of
  10. # the PVE managed interfaces into external files!
  11.  
  12. auto lo
  13. iface lo inet loopback
  14.  
  15. auto eth0
  16. iface eth0 inet manual
  17.  
  18. iface eth1 inet static
  19. address FO-IP
  20. netmask 255.255.255.255
  21. broadcast FO-IP
  22. gateway GATEWAY
  23. post-up route add GATEWAY dev eth1
  24. post-up route add default gw GATEWAY
  25. pre-down route del GATEWAY dev eth1
  26. pre-down route del default gw GATEWAY
  27.  
  28. auto vmbr1
  29. iface vmbr1 inet manual
  30. bridge_ports dummy0
  31. bridge_stp off
  32. bridge_fd 0
  33.  
  34. auto vmbr0
  35. iface vmbr0 inet static
  36. address PRIMARY-IP
  37. netmask 255.255.255.0
  38. gateway GATEWAY
  39. bridge_ports eth0
  40. bridge_stp off
  41. bridge_fd 0
  42.  
  43. iface vmbr0 inet6 static
  44. address IPV6
  45. netmask 64
  46. post-up /sbin/ip -f inet6 route add IPV6:ff:ff:ff:ff dev vmbr0
  47. post-up /sbin/ip -f inet6 route add default via IPV6:ff:ff:ff:ff
  48. pre-down /sbin/ip -f inet6 route del default via IPV6:ff:ff:ff:ff
  49. pre-down /sbin/ip -f inet6 route del IPV6:ff:ff:ff:ff dev vmbr0
  50.  
  51. auto vmbr172
  52. iface vmbr172 inet static
  53. address FO-IP
  54. netmask 255.255.255.248
  55. bridge_ports eth1
  56. bridge_stp off
  57. bridge_fd 0
  58. post-up route add GATEWAY dev vmbr172
  59. post-up route add default gw GATEWAY
  60. pre-down route del GATEWAY dev vmbr172
  61. pre-down route del default gw GATEWAY
  62.  
  63. iface vmbr172 inet6 static
  64. address IPV6
  65. netmask 64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement