How to use DHCP to manager PVE

yefcoking

New Member
Oct 11, 2020
1
0
1
27
### 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?