I have a kvm container in my Proxmox server with Centos 7 installed.
I have created two network devices with same options.
I configurated two interfaces with different ips in the same network but only works the first. Two ips can't work simultanely. If I down eth0 and up eth1 works eth1.
There are my conf files:
File: ifcfg-eth0
Code: Select all
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEFROUTE=yes
DEVICE=eth0
GATEWAY=31.200.240.161
HWADDR=d6:0a:7f:95:90:16
IPADDR=31.200.240.134
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
Code: Select all
# Created by cloud-init on instance boot automatically, do not edit.
#
BOOTPROTO=none
DEFROUTE=yes
DEVICE=eth1
GATEWAY=31.200.240.161
HWADDR=3a:ef:bf:f9:88:d9
IPADDR=31.200.240.145
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
For example, if I down eth1 and configure alias of eth0 for configure secondary ip, the two ips works simultaneously.
Can you help me?