Hey all,
I am running a dedi using the Proxmox 4 distribution that comes from OVH's templates.
So I've been trying to get more than 1 ip working on a VM with no luck to date. These are the steps I have been taking:
1. Create VM in Proxmox GUI using CentOS 6.7 iso, Network tab - Bridge vmbr0, MAC - OVH generated VMac.
2. Install via console.
3. Set up VM using following net config:
Code:
DEVICE=eth0
HWADDR=[mac here]
TYPE=Ethernet
UUID=[uuid here]
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.255
IPADDR=[fail over here]
GATEWAY=[gateway here]
ARP=yes
..and this as my route-eth0:
[gateway here] dev eth0
default via [gateway here] dev eth0
..which works fine, no problems at all. However when trying to add a second IP I'm getting a bit lost. I've tried the following after the above configuration.
1. Stop VM and add 2nd NIC using vmbr0 and 2nd IP virtual mac generated by OVH Manager. Start VM.
2. Generate UUID for eth1. Copy ifcfg-eth0 to ifcfg-eth1 and route-eth0 to route-eth1.
3. Edited ifcfg-eth1 as follows:
Code:
DEVICE=eth1
HWADDR=[2nd vMAC here]
TYPE=Ethernet
UUID=[uuid here]
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
PEERDNS=yes
NETMASK=255.255.255.255
IPADDR=[2nd fail over here]
GATEWAY=[gateway here]
ARP=yes
...and my route-eth1:
Code:
[gateway here] dev eth1
default via [gateway here] dev eth1
Then I run service network restart and eth0 starts fine but get the following message on eth1:
RTNETLINK answers: File exists
RTNETLINK answers: Network is unreachable
This is the output from ip route show:
Code:
[gateway ip] dev eth0 scope link
[removed].[removed].0.0/16 dev eth0 scope link metric 1002
[removed].[removed].0.0/16 dev eth1 scope link metric 1003
default via [gateway ip] dev eth0
Any help would be appreciated. Documentation on this seems to be very sparse. Thanks.