I have 2 IP addresses, but I want to Masquerade using secondary IP, guests using KVM-WinXP with LAN IP.
My primary IP is 192.95.31.41 (eth0) and secondary IP is 198.50.153.144.
Here is my /etc/network/interface:
Above settings won't Masquerade using vmbr2 (but using vmbr0 was fine). Should I use eth0:0 for secondary IP?
Any advice how to setup this in Proxmox way?
My primary IP is 192.95.31.41 (eth0) and secondary IP is 198.50.153.144.
Here is my /etc/network/interface:
Code:
# network interface settings
auto lo
iface lo inet loopback
iface eth0 inet manual
auto vmbr1
iface vmbr1 inet static
address 192.168.0.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up /etc/pve/kvm-networking.sh
auto vmbr0
iface vmbr0 inet static
address 192.95.31.41
netmask 255.255.255.0
gateway 192.95.31.254
broadcast 192.95.31.255
bridge_ports eth0
bridge_stp off
bridge_fd 0
network 192.95.31.0
auto vmbr2
iface vmbr2 inet static
address 198.50.153.144
netmask 255.255.255.0
bridge_ports eth0
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '192.168.0.0/24' -o vmbr2 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr2 -j MASQUERADE
Above settings won't Masquerade using vmbr2 (but using vmbr0 was fine). Should I use eth0:0 for secondary IP?
Any advice how to setup this in Proxmox way?
Last edited: