Add second subnet to Proxmox.

Sekhmet

New Member
Apr 15, 2015
6
0
1
Hello. I solved one problem and now I have got another one. Becasue my provider added 32 IP's instead of 64, I received 32IP's at first and 32 later on. The first ones work perfectly, but the second batch are from different network and I am having troubles to assign those IP's to my Proxmox root server and use them for OpenVZ containers.
I've edited interfaces like this.
Code:
auto loiface lo inet loopback


auto vmbr0
iface vmbr0 inet static
    address 162.213.31.137
    netmask 255.255.255.0
    gateway 162.213.31.1
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0


auto eth0:1
iface eth0:1 inet static
    address 199.168.137.2
    netmask 255.255.255.0
    gateway 199.168.137.1

Where erh0:1 is created by me. I have no idea how to set up this correctly. For raw ubuntu it should work I guess, but now after reboot I still can't connect to my root with the new IP.

Thanks for help.