2 Nic and 2 Gateways

pezi

New Member
Aug 2, 2011
28
0
1
I am evaluating PROXMOX with two NICs:
Nic 1 - private ip address range
Nic 2 - public ip address range
With the help of SQUID and Nic 2 the outcoming HTML request are routed to the OpenVZ VMs - reverse proxy.

My problem.
Nic 1 with gateway and OpenVZ VM with venet works fine - VM can contact the Internet, but the external Nic 2 is available from extern.

Nic 2 has a gateway, the host is accessible from extern. The OpenVZ VM can not contact the internet.

Nic 1 and Nic 2 with different gateway doesn' t work. The host is accessible from extern, but the OpenVZ VM can not contact the internet.

What is wrong with this configuration?
With best regards
Peter



PHP:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.123.210
        netmask  255.255.255.0
        gateway 192.168.123.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

1iface vmbr1 inet static
        address  82.125.165.125
        netmask  255.255.255.240
        gateway 85.125.165.113
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
 
I am evaluating PROXMOX with two NICs:
Nic 1 - private ip address range
Nic 2 - public ip address range
With the help of SQUID and Nic 2 the outcoming HTML request are routed to the OpenVZ VMs - reverse proxy.

My problem.
Nic 1 with gateway and OpenVZ VM with venet works fine - VM can contact the Internet, but the external Nic 2 is available from extern.

Nic 2 has a gateway, the host is accessible from extern. The OpenVZ VM can not contact the internet.

Nic 1 and Nic 2 with different gateway doesn' t work. The host is accessible from extern, but the OpenVZ VM can not contact the internet.

What is wrong with this configuration?
With best regards
Peter



PHP:
# network interface settings
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address  192.168.123.210
        netmask  255.255.255.0
        gateway 192.168.123.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0

1iface vmbr1 inet static
        address  82.125.165.125
        netmask  255.255.255.240
        gateway 85.125.165.113
        bridge_ports eth1
        bridge_stp off
        bridge_fd 0
Hi Peter,
two default gateways don't work (how should the linux know which unknown ip address is routable over which gateway?).
Do you need an ip-address on vmbr1? Normaly it's enough to define vmbr1 without ip-address and the VMs takes one ip-address each.
In this case your pve-host is available only via 192.168.123.210 and your VM with 82.125.165.125, 82.125.165.126, 82.125.165.127... or in the 192.168.123-netrwork if you use vmbr0.
Or you use only the default-gateway on vmbr1 and define only networkroutes for vmbr0 (like "ip route 192.168.100.0/24 via 192.168.123.254")

Udo
 

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!