Hello,
we have a proxmox 4.4 node hosted on Hetzner and configured with bridged networking. The machine works fine with this setup and hosts 4 KVMs with additional IPs (no subnet) with separate MACs.
Each VM has a single IP and is working as expected (Centos cPanel VMs).
We are trying to add a second IP to one of the VMs. We added a second network interface from Proxmox interface with the appropriate separate MAC from Hetzner and added the /etc/sysconfig/network-scripts/ifcfg-eth1 in Centos VM.
When we enable the interface it comes up and it is reacheable. The other IP however (eth0) cannot be reached after we enable eth1 (is up in Centos but not reachable from the outside world). In simple words only one IP can be functional at a time.
The main IP of the server and the first IP of the VPS are in the same subnet 136.243.1XX.XXX but the new additional IP is from a different one 138.201.4X.XXX.
Does anyone has an idea what is going on. I am attaching the network config files of the node and KVM.
ps Sorry for the long post and thank you in advance for your time.
Proxmox node /etc/network/interfaces
KVM /etc/sysconfig/network-scripts/ifcfg-eth0
KVM /etc/sysconfig/network-scripts/ifcfg-eth1
we have a proxmox 4.4 node hosted on Hetzner and configured with bridged networking. The machine works fine with this setup and hosts 4 KVMs with additional IPs (no subnet) with separate MACs.
Each VM has a single IP and is working as expected (Centos cPanel VMs).
We are trying to add a second IP to one of the VMs. We added a second network interface from Proxmox interface with the appropriate separate MAC from Hetzner and added the /etc/sysconfig/network-scripts/ifcfg-eth1 in Centos VM.
When we enable the interface it comes up and it is reacheable. The other IP however (eth0) cannot be reached after we enable eth1 (is up in Centos but not reachable from the outside world). In simple words only one IP can be functional at a time.
The main IP of the server and the first IP of the VPS are in the same subnet 136.243.1XX.XXX but the new additional IP is from a different one 138.201.4X.XXX.
Does anyone has an idea what is going on. I am attaching the network config files of the node and KVM.
ps Sorry for the long post and thank you in advance for your time.
Proxmox node /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
auto eth0
iface eth0 inet manual
# device: eth0
auto vmbr0
iface vmbr0 inet static
#pre-up iptables-restore < /etc/iptables.rules
address 136.243.XXX.XXX
netmask 255.255.255.YYY
pointopoint 136.243.XXX.ZZZ
gateway 136.243.XXX.ZZZ
bridge_ports eth0
bridge_stp off
bridge_fd 1
bridge_hello 2
bridge_maxage 12
# default route to access subnet
up route add -net 136.243.XXX.YYY netmask 255.255.255.YYY gw 136.243.XXX.ZZZ vmbr0
iface vmbr0 inet6 static
address 2a01:XXXX:XXXX:XXXX::2
netmask 64
gateway fe80::1
up sysctl -p
auto vmbr1
iface vmbr1 inet static
address 10.0.0.1
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 '10.0.0.0/24' -o vmbr0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.0.0.0/24' -o vmbr0 -j MASQUERADE
KVM /etc/sysconfig/network-scripts/ifcfg-eth0
Code:
DEVICE=eth0
HWADDR=00:50:WW:XX:ZZ:YY
TYPE=Ethernet
UUID=xxxxxxxxxxxxxxxxxxxxxxxx
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPV6INIT=no
PEERDNS=yes
IPADDR=136.243.XXX.WWW
NETMASK=255.255.255.YYY
GATEWAY=136.243.XXX.YYY
POINTOPOINT=136.243.XXX.YYY
DNS1=8.8.8.8
DNS2=8.8.4.4
DNS3=213.133.100.100
KVM /etc/sysconfig/network-scripts/ifcfg-eth1
Code:
DEVICE=eth1
TYPE=Ethernet
HWADDR=00:50:WW:XX:ZZ:Y2
UUID=yyyyyyyyyyyyyyyyyyyyyyyyyyy
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPV6INIT=no
PEERDNS=yes
IPADDR=138.201.XX.YYY
NETMASK=255.255.255.ZZZ
GATEWAY=138.201.XX.WWW
POINTOPOINT=138.201.XX.WWW
DNS1=8.8.8.8
DNS2=8.8.4.4
DNS3=213.133.100.100
Last edited: