How to configure fixed IP on VM?

cdsJerry

Renowned Member
Sep 12, 2011
222
9
83
I'm still learning Linux and I'm still pretty new to Proxmox, so be kind. <g> I want to create a new VM running FreePBX. My current system has Nic1 connected to modem1, and Nic2 connected to my LAN. I need the FreePBX to use a fixed IP from my LAN. It will not use modem1 but instead will use modem2 on a different VLAN.

I currently have 1 cluster with IP x.x.x.x from modem1. I admit I don't know what clusters means, but it's a WAN IP from modem1
On the system I have two Nics showing vmbr0 set to Ports/slave eth0 with IP 94.223.77.143, subnet and gateway
The second nic is set to eth1 with IP 192.168.x.xxx and subnet from my LAN. This is the LAN where I need to place the new VM

When I go to Virtual Machines->Create however the only cluster is the x.x.x.x from above which is on modem1 so it's the wrong IP range from what I need, wrong modem. What is this Cluster Node and how do I get it to show up using the right NIC and IP for the new VM I'm trying to mount.

I think what I need to do is select Network-Bridge-vmbr1 on the network setting but I'm not sure. Will that indeed connect me to NIC2? Is the IP controlled by the VM so I can set the IP there or must it also be set in Proxmox somewhere since Promox actually controls the NIC? I don't see a place to set it so I'm unsure.

Jerry (newbie)
 
...

I think what I need to do is select Network-Bridge-vmbr1 on the network setting but I'm not sure. Will that indeed connect me to NIC2? Is the IP controlled by the VM so I can set the IP there or must it also be set in Proxmox somewhere since Promox actually controls the NIC? I don't see a place to set it so I'm unsure.

Jerry (newbie)
Hi Jerry,
yes bridged mode network is the right choice for the client. If the virtual nic, which you defined on vmbr1, are showed inside the VM as nic1 or nic2 depends on your guest-system (you can remap this with udev inside the VM). Look at the mac-address to be sure to get the right nic.

A bridge is simply like an network-hub - all interfaces (virtual from VMs and physical from bridge-definition) are connected together. You can do your own ip-config inside the guest - pve don't control the config.

Udo