Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # network interface settings; autogenerated
- # Please do NOT modify this file directly, unless you know what
- # you're doing.
- #
- # If you want to manage parts of the network configuration manually,
- # please utilize the 'source' or 'source-directory' directives to do
- # so.
- # PVE will preserve these directives, but will NOT read its network
- # configuration from sourced files, so do not attempt to move any of
- # the PVE managed interfaces into external files!
- auto lo
- iface lo inet loopback
- iface eno2 inet manual
- auto eno1
- iface eno1 inet dhcp
- pre-up /etc/network/preup.sh
- post-down /etc/network/postdown.sh
- auto vmbr0
- iface vmbr0 inet static
- address 172.31.1.25/16
- bridge-ports eno2
- bridge-stp off
- bridge-fd 0
- hwaddress ac:1f:6b:e9:7e:60
- auto vmbr1
- iface vmbr1 inet static
- address 10.10.10.1/24
- bridge-ports none
- bridge-stp off
- bridge-fd 0
- hwaddress ac:1f:6b:e9:7e:61
- post-up echo 1 > /proc/sys/net/ipv4/ip_forward
- post-up iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
- post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o eno1 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement