Assigning an additional IP to the host

bly

Member
Mar 15, 2024
54
13
8
Can someone point me to the correct procedure to add an additiona IP to the pve host using the provided web interface?
 
Hey,

if you mean on the same interface you'd have to edit /etc/network/interfaces and add something like
Code:
iface vmbr0 inet static
       address SECOND_IP/24
just make sure both are on the same subnet. If you have a second interface you can create a new bridge, configure the IP there and add the second NIC as a bridge port.
 
Thanks for the info!
In my case, the new IP is on a different subnet, but I'd like the host answering to both addresses, if possible.
 
For two IPs in two subnets you will need a seconds NIC. If you don't have a second NIC, what you want is either not possible or complicated depending on the rest of your network setup.
 
For two IPs in two subnets you will need a seconds NIC. If you don't have a second NIC, what you want is either not possible or complicated depending on the rest of your network setup.

FYI on vmbr0 (192.168.1.x static IP), with the net-tools package installed, I can
' ifconfig vmbr0:1 10.9.8.7 netmask 255.0.0.0 up '

and it pings on both the 192 and 10.x networks without a 2nd NIC, but this is a standalone non-clustered PVE server. You can set it up with the class A in /etc/rc.local