Configure interface file 3 public IPS.

Ole

Member
May 17, 2013
41
0
6
Hi
I have a proxmox server running. I have instaled a light ubunntu on my main Public ips.. This IP 1 I only uses for accesing Ubuntu.. adn edit files like interfaces etc.
tehn I have a second Ip. I have made a Virtual machine that I run a webserver IP 2
I have just bought a third public IP that I want to set up a new webserver (virtual machine) IP 3
I entered the interface file on IP1 adn added soem extra lines for a vmb1 setting that Ithought would give IP3 acces to interne.. or vica versa..
Can someone tell me why IP 3 do not work and what I have missunderstood of basic..

auto lo
iface lo inet loopback


# device: eth0






auto eth0
iface eth0 inet manual
address MAIN IP
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
pointopoint 188.40.71.65
post-up mii-tool -F 100baseTx-FD eth0






auto vmbr0
iface vmbr0 inet static
address IP2
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
up ip route add IP2/32 dev vmbr0




auto vmbr1
iface vmbr1 inet static
address IP3
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
up ip route add IP3/32 dev vmbr1






Vmbr0 = ip2 works as before, I can ping IP3 but when I run install and setup on new virtual machine using vbmr1 (IP3) I am not able to do this


error
TASK ERROR: command '/bin/nc -l -p 5900 -w 10 -c '/usr/sbin/qm vncproxy 101 2>/dev/null'' failed: exit code 1


Thx

Ole
 
Yes adn I tried this setup and mny whole inernet connection breaked down so this is not to recomend.

Can anyone guide me on how the setting should be?

Ole
 
You shouldn't be putting an address directly on eth0. The address goes on vmbr0 then put an IP on vmbr1 without a gateway

Sent from my Nexus 5
 
You shouldn't be putting an address directly on eth0. The address goes on vmbr0 then put an IP on vmbr1 without a gateway

Sent from my Nexus 5

Is it possible to show me what to add?

Ip1 is the main ip, Ip2 is my second ip that has a VM Ip3 is the new Ip I want ot put to my Second VM



Here are my current setting.


auto eth0
iface eth0 inet manual
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
pointopoint 188.40.71.65
post-up mii-tool -F 100baseTx-FD eth0




auto vmbr0
iface vmbr0 inet static
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
up ip route add IP2 /32 dev vmbr0
 
Is it possible to show me what to add?

Ip1 is the main ip, Ip2 is my second ip that has a VM Ip3 is the new Ip I want ot put to my Second VM



Here are my current setting.


auto eth0
iface eth0 inet manual
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
pointopoint 188.40.71.65
post-up mii-tool -F 100baseTx-FD eth0




auto vmbr0
iface vmbr0 inet static
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
up ip route add IP2 /32 dev vmbr0

your ETH0 should not have anything on it. Save the IP address information for the VMBR0

my config for eth devices are as follows:

Code:
iface eth0 inet manual

iface eth1 inet manual


iface eth2 inet manual


iface eth3 inet manual


iface eth4 inet manual
 
THank you for the suggestion but I didnt understand this..

Shoudl I create two nodes using hte smae eth0 card? access to internet.. adn then set theese two nodes up excaclyt same just diferent ip and mac adress??

Sorry that I cant undersand this but I am sure this is very easy for someone to show by example adn I would apriciate ti a lot..

Thanks

Ole
 
THank you for the suggestion but I didnt understand this..

Shoudl I create two nodes using hte smae eth0 card? access to internet.. adn then set theese two nodes up excaclyt same just diferent ip and mac adress??

Sorry that I cant undersand this but I am sure this is very easy for someone to show by example adn I would apriciate ti a lot..

Thanks

Ole

You keep asking for someone to show you an example but you aren't being clear on what you are trying to accomplish. Can you list exactly what it is you are trying to do? It is not difficult to put an IP on a bridge so that you can use it. There are so many scenarios that we can only guess what it is that you are trying to do.

Sent from my Nexus 5
 
You keep asking for someone to show you an example but you aren't being clear on what you are trying to accomplish. Can you list exactly what it is you are trying to do? It is not difficult to put an IP on a bridge so that you can use it. There are so many scenarios that we can only guess what it is that you are trying to do.

Sent from my Nexus 5

Hi pirateghost

I am 100% sure this is easy to do... for someone else ;)

I am having my server at Hetzner so there are soem things that must be.. my original file looks like this and it works.. I access my IP1 server (hardware) from the internet.
I also access my Virtualserver1 from internet with IP2.
Since I have more resources on my Server (hardware) I wnat ot set up a second virtual server 2 this shall be acced using my IP3.

What I want ist that my two virtual machines works as "independant" machine on top of the hardware machine that has IP1 JUSt as I had two physical servers.
And if possible I buy a 4 IP and (IF I have hardware resources) set up a third virtual server.



Current file :

auto eth0
iface eth0 inet manual
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
pointopoint 188.40.71.65
post-up mii-tool -F 100baseTx-FD eth0




auto vmbr0
iface vmbr0 inet static
address IP1
netmask 255.255.255.192
broadcast 188.40.71.127
gateway 188.40.71.65
bridge_ports eth0
bridge_stp off
bridge_fd 0
up ip route add IP2 /32 dev vmbr0


this works fine for my 1 virtual machine.

Thanks for help and questions so faar.

Ole
 

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!