Advertisement
Guest User

Untitled

a guest
Sep 30th, 2021
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.22 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 parts 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 read 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. iface eno2 inet manual
  16.  
  17. auto eno1
  18. iface eno1 inet dhcp
  19.         pre-up /etc/network/preup.sh
  20.         post-down /etc/network/postdown.sh
  21.  
  22.  
  23. auto vmbr0
  24. iface vmbr0 inet static
  25.         address 172.31.1.25/16
  26.         bridge-ports eno2
  27.         bridge-stp off
  28.         bridge-fd 0
  29.         hwaddress ac:1f:6b:e9:7e:60
  30.  
  31.  
  32. auto vmbr1
  33. iface vmbr1 inet static
  34.         address  10.10.10.1/24
  35.         bridge-ports none
  36.         bridge-stp off
  37.         bridge-fd 0
  38.         hwaddress ac:1f:6b:e9:7e:61
  39.         post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
  40.         post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
  41.         post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
  42.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement