Multiple IP address on ProxMox host

rholder

Renowned Member
Feb 25, 2013
2
0
66
G'day.

I have searched for an answer, and not found it, so please excuse me if I am asking something that has been answered.

Set-up:

There are two physical NICs in the server. I have the following:
192.168.1.238 on vmbr1 which goes via eth1
192.168.2.238 on vmbr0 which goes via eth0
192.168.3.238 on vmbr2 which goes via eth0
eth0 is plugged into a switch with the other servers in the 192.168.2.0 and 192.168.3.0 servers.
eth1 is plugged into a switch with the 192.168.1.0 network machines.
192.168.1.0 ==> LAN
192.168.2.0 ==> DMZ
192.168.3.0 ==> DMZ

Problem:
I cannot ping the 192.168.3.238 from any network.
I cannot ping any 192.168.3.x address from the ProxMox host.

Additional info:
I can ping 192.168.1.x and 192.168.2.x from the ProxMox host.
I can ping 192.168.1.238 and 192.168.2.238 from the respective networks.
I can ping all the ProxMox host IP addresses from within the host itself, so I know they are configured and answering.

I have rebooted, a couple times, for various reasons.

I appreciate any suggestions.

Cheers.
Bobby
 
You should use vlans that your setup is working as expected.
We are talking about /24 networks right?

The best is to do a 802.3ad on eth0 and eth1. Then 3 vlans on the etherchannel and your setup should work fine.
Here is an example for such a setup:

Code:
pmx-00:~# cat /etc/network/interfaces 
# Physical interfaces
auto lo
iface lo inet loopback
iface eth0 inet manual
iface eth1 inet manual


# 802.3ad
auto bond0
iface bond0 inet manual
    slaves eth0 eth1
    bond_miimon 100
    bond_mode 4


# VLANS
auto bond0.101
iface bond0.101 inet manual
    vlan-raw-device bond0


auto bond0.102
iface bond0.102 inet manual
    vlan-raw-device bond0


auto bond0.110
iface bond0.110 inet manual
    vlan-raw-device bond0


auto bond0.111
iface bond0.111 inet manual
    vlan-raw-device bond0


auto bond0.120
iface bond0.120 inet manual
    vlan-raw-device bond0


# Bridges
auto vmbr0
iface vmbr0 inet static
    address 10.0.8.101
        netmask 255.255.255.0
        gateway 10.0.8.1
    bridge_ports bond0.102
    bridge_stp off
    bridge_fd 0


auto vmbr1
iface vmbr1 inet manual
    bridge_ports bond0.101
    bridge_stp off
    bridge_fd 0


auto vmbr2
iface vmbr2 inet manual
        bridge_ports bond0.110
        bridge_stp off
        bridge_fd 0


auto vmbr3
iface vmbr3 inet manual
        bridge_ports bond0.111
        bridge_stp off
        bridge_fd 0


auto vmbr4
iface vmbr4 inet manual
        bridge_ports bond0.120
        bridge_stp off
        bridge_fd 0

As you see i only have one ip address for the proxmox server.

Why are need 3 ips on the proxmox hos? Your firewall/router should route the traffic to the right ip address.
 
...
192.168.1.238 on vmbr1 which goes via eth1
192.168.2.238 on vmbr0 which goes via eth0
192.168.3.238 on vmbr2 which goes via eth0
eth0 is plugged into a switch with the other servers in the 192.168.2.0 and 192.168.3.0 servers.
...
Hi Bobby,
you can't connect one nic to two different bridges.

In you case you can use vlan-tagging like hec allready wrote (but your switch must support this).

Then you can use something like
vmbr0 -> eth0.2 (subnet 192.168.2/24)
vmbr2 -> eth0.3 (subnet 192.168.3/24)
if you define vlan2+3 on the switch.

Udo
 
  • Like
Reactions: El Tebe

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!