Can't assign ip address to VM.

ping4support

New Member
Mar 18, 2018
4
0
1
32
Hi,

We are new to proxmox. We have created test VM but we can't assign ip address from host node bridge. Any one please assist with us.

Our server network configuration files.
===============================================
root@prox-test:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback

#iface enp0s25 inet manual
iface eno1 inet manual
auto vmbr0
iface vmbr0 inet static
address 209.90.xxx.xxx
netmask 255.255.xxx.xxx
gateway 209.90.xxx.xxx
bridge_ports eno1
bridge_stp off
bridge_fd 0
==================================================

We need to assign ip address to VM same subnet from hostnode.
How to assign below ip's to VM's.

209.90.xxx.xxx
209.90.xxx.xxx

Thanks,
 
Last edited:
You need to configure the Guest IP inside your Guest. There is no need to change the host network configuration.
 
Hi,

We had tried guest ip also inside VM it's not working. is there need to configure any DHCP.
And also if we have more no of VM's need to configure network individually ? Need to assign ip address automatically when we create VM's in host node. is there any possible?

Thanks,
 
We had tried guest ip also inside VM it's not working. is there need to configure any DHCP.

No, that should work out of the box. Try to use tcpdump (or similar tools) to debug your network.

And also if we have more no of VM's need to configure network individually ?

Yes, unless you use a DHCP server.
 
Hi,
Do you have any document related to DHCP server installation in proxox server. Please advise us.
Thanks
 
Hello,

We have done some modification in our host server. There ip address 209.90.xxx.xxx(eno1) is one host server then how to use another ip address 209.90.xxx.xxx(vmbr0) to VM. please assist.

=============================================
root@prox-test:~# cat /etc/network/interfaces
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 209.90.xxx.xxx
netmask 255.255.xxx.xxx
gateway 209.90.xxx.xxx
post-up echo 1 > /proc/sys/net/ipv4/ip_forward
post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp

auto vmbr0
iface vmbr0 inet static
address 209.90.xxx.xxx
netmask 255.255.xxx.xxx
bridge_ports none
bridge_stp off
bridge_fd 0
================================================

Thanks,
 
Last edited:

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!