How to use DHCP to manager PVE

yefcoking

New Member
Oct 11, 2020
1
0
1
25
### How to use DHCP to manager PVE instead of setting a static IP for PVE LAN ?

> I prefer to using DHCP than a static IP address to manager PVE. And how to set? For example,the default config is as this:

- /etc/network/interfaces

```
auto lo
iface lo inet loopback

iface eno1 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.1.93
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports eno1
bridge_stp off
bridge_fd 0
```

- /etc/hosts

```
...
192.168.1.93 pve.admin.lan
```

- /etc/issue

```
https://192.168.1.93:8006/
```

---


> Declare as this ?

```
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet dhcp

auto vmbr0
iface vmbr0 inet dhcp
bridge_ports eno1
bridge_stp off
bridge_fd 0
```

- /etc/issue

```
https://0.0.0.0:8006/
```

- /etc/hosts

```
...
127.0.0.1 pve.admin.lan
```

> Is this right?
 

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!