Multiple Interface with different Network

vinoth

New Member
Sep 20, 2018
6
0
1
38
Hi,
Am new to proxmox, one of my requirement is am want to have 4 interfaces for an instance with different network

VMbro 0 : 172.16.1.1
VMbro 1 : 10.0.0.1
VMbro 2 : 172.16.2.1
VMbro3 : 10.0.1.1

Can anyone please guide to configure the same in proxmox.

Note: I have only one interface card for proxmox server. Am running windows 10 in the intance.
 
Hi,

what do you want to do with this 4 network?
Do you have Vlan or this network internal only?
 
auto vmbr1
iface vmbr1 inet static
address 192.168.0.254
netmask 255.255.255.0
bridge_ports none
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 vmbr0 -j MASQERADE
post-down iptables -t nat -D POSTROUTING -s '192.168.0.0/24' -o vmbr0 -j MASQERADE
post-up iptables -t nat -A POSTROUTING -i vmbr0 -p tcp --dport 1080 -j DNAT --to 192.168.0.102:80
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1080 -j DNAT --to 192.168.0.102:80


auto vmbr2
iface vmbr2 inet static
address 172.16.0.254
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up iptables -t nat -A POSTROUTING -s '172.16.0.0/24' -o vmbr0 -j MASQERADE
post-down iptables -t nat -D POSTROUTING -s '172.16.0.0/24' -o vmbr0 -j MASQERADE
post-up iptables -t nat -A POSTROUTING -i vmbr0 -p tcp --dport 1080 -j DNAT --to 172.16.0.102:80
post-down iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport 1080 -j DNAT --to 172.16.0.102:80

Can you plz check the above config is correct. My proxmox IP address is 139.24.53.12
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!