Second public ip address

___jul

New Member
May 26, 2012
15
0
1
Hello,


My proxmox server is hosted, I have some public ip, as default eth0 is bridged to vmbr0.
All the CT and VM use a private ip. adress, the forward is done by iptables.


Now I need to use a second public ip (which I own) to host differents https websites.
All the www traffic is direct to a CT running nginx doing the forward to the different website/ct.
How to setup a new public ip address ?
Should I create a sub eth0 interface, eth0:1 ?
Or another vmbr with the new public ip address ?

cat /etc/network/interfaces
# network interface settings
auto lo
iface lo inet loopback


iface eth0 inet manual


iface eth1 inet manual


auto vmbr0
iface vmbr0 inet static
address x.y.z.147
netmask 255.255.255.248
gateway x.y.z.145
bridge_ports eth0
bridge_stp off
bridge_fd 0


auto vmbr1
iface vmbr1 inet static
address 192.168.123.100
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0





pve-manager: 2.2-31 (pve-manager/2.2/e94e95e9)
running kernel: 2.6.32-14-pve
proxmox-ve-2.6.32: 2.2-82
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-16-pve: 2.6.32-82
pve-kernel-2.6.32-14-pve: 2.6.32-74
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.4-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.93-2
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.9-1
pve-cluster: 1.0-33
qemu-server: 2.0-69
pve-firmware: 1.0-21
libpve-common-perl: 1.0-39
libpve-access-control: 1.0-25
libpve-storage-perl: 2.0-36
vncterm: 1.0-3
vzctl: 4.0-1pve2
vzprocps: 2.0.11-2
vzquota: 3.1-1
pve-qemu-kvm: 1.2-7
ksm-control-daemon: 1.1-1


Thank you
 
Hello,


My proxmox server is hosted, I have some public ip, as default eth0 is bridged to vmbr0.
All the CT and VM use a private ip. adress, the forward is done by iptables.


Now I need to use a second public ip (which I own) to host differents https websites.
All the www traffic is direct to a CT running nginx doing the forward to the different website/ct.
How to setup a new public ip address ?
Should I create a sub eth0 interface, eth0:1 ?
Or another vmbr with the new public ip address ?

...
Hi,
this depends on the network config of your hoster.
For a new bridge, you need an second NIC (or use vlan tagging on on nic).

Try the search function - perhaps there is an working example for your hoster at the forum. For Hetzner there are some postings like this:
http://forum.proxmox.com/threads/2003-Hetzner-Server?p=10744#post10744

Or ask your hoster how to handle an different IP (with different subnet?!) on one interface. Perhaps you see with "traceroute new.ip.from.hoster" how the routing work.

Udo
 
Hi,
this depends on the network config of your hoster.
For a new bridge, you need an second NIC (or use vlan tagging on on nic).

Try the search function - perhaps there is an working example for your hoster at the forum. For Hetzner there are some postings like this:
http://forum.proxmox.com/threads/2003-Hetzner-Server?p=10744#post10744

Or ask your hoster how to handle an different IP (with different subnet?!) on one interface. Perhaps you see with "traceroute new.ip.from.hoster" how the routing work.

Udo

Hi Udo
Indeed, I asked my hoster who advise me to use a subinterface, eth0:1, no need to plug a new interface.
Do you think configure this will be enough ?

Sorry, I used the search on "second interface" and I didn't found this one, thks.
 
Hi Udo
Indeed, I asked my hoster who advise me to use a subinterface, eth0:1, no need to plug a new interface.
Do you think configure this will be enough ?

Sorry, I used the search on "second interface" and I didn't found this one, thks.
Hi,
if you provider don't check for MAC-IDs, than you can simple use bridged network for the VM on vmbr0 and use the new IP (with the right subnetmasking and default-gw).

Udo
 

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!