assigning Ip address for VM

  • Thread starter Thread starter geekslinux
  • Start date Start date
G

geekslinux

Guest
I have installed Proxmox 2.3-12 in a server with IP address 10.20.120.45 and is assigned to the interface vmbr0. In proxmox interface under network it is displayed as vmbr0 has eth0 as ports/slaves with the above ip subnetmask and gateway(10.20.120.105). I am using a proxy server for online access in this network.

Now i need to create a VM and assign IP address 10.20.120.55 and should be able to go online. After creating the VM how should i assign the IP address for my VM, so that i can ping and connect it from my network and other network. Any help in this regard would be much appreciated.
 
If you choose the "bridge" mode for you VM, simply think vmbr0 as being a "smart switch" the switch that have an IP just for their own management (in this case, the management of Proxmox server). Then when you create a VM and attach it's virtual nic to that vmbr0, is just like plugging, in a "real world", the cat5 cable from the switch (vmbrz) to the computer (your vm). Then, INSIDE the vm, you assign an IP to that interface (eth0).
 
Then, INSIDE the vm, you assign an IP to that interface (eth0).

i'll just add that, before adding a proper IP config to your vm, you can't obviously access the vm through its network interface card, but only through the pve web gui "console" utility, which opens a "local" display for you to log in.

Marco