DHCP in proxmox

debek

New Member
Dec 2, 2020
9
0
1
36
Hi!

I have a problem with DHCP inside of proxmox. I can create VM with static IP and it works but when I try to use DHCP option, vm doesn't assign me any IP.
Do you have any idea why?
Here is example of configuration of my debian with proxmox:
vim /etc/network/interfaces

Code:
# The loopback network interface
auto lo
iface lo inet loopback

auto eno1
#real IP address
iface eno1 inet static
        address  192.168.88.101
        netmask  255.255.255.0
        gateway  192.168.88.1
        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up echo 1 > /proc/sys/net/ipv4/conf/eno1/proxy_arp

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.2.0.2
        netmask  255.255.255.0
        bridge-ports none
        bridge-stp off
        bridge-fd 0