Configure Proxmox host with 2 IPs on one NIC?

jim.bond.9862

Renowned Member
Apr 17, 2015
395
34
68
OK, not sure if what I want is a good way of doing this but here is my issue.

I am building out a Poxmox host PVE1 to host one or two router VM.
my goal is to have a functioning router running in proxmox hosted VM and to have ability to play with different router distros safely while running one as primary router replacement.

I have a PC Intel dual-core with 6GB ram running Proxmox VE 5.1

3 hardware NICs enp0,enp1,enp2
enp1 and enp2 are reserved for router/firewall use so out of scope here
I have created 3 bridges vmbr0, 1 and 2 each linked to corresponding nic.
the node1 PC is connected into switch on 2 nics enp0 and enp2 this is my LAN and Management interfaces
enp1 will be connected to ISP modem instead of the current router and get IP from ISP. this is my WAN

all other hardware, main PC printers and wireless AP, are plugged in into the switch as well.

what I want/need is:

I am currently running 192.168.x.x/24 schema from an ISP provided router.

I want to move to 10.10.x.x/16 schema on my new setup.

hence I would like to assign 2 IP to Proxmox host using enp0 nic

one current : 192.168.1.10/24
and one for new schema : 10.10.1.10/16

so once I have the new router VM up and running I could remove my hardware router yet still reach proxmox node via 10.10.. IP so I can continue setup and VM configuration .

is this even possible?

why I need this? because the PC and router is in the basement and I do not want to run down there more than I need to.
I have no laptops right now, my main PC is on the main floor. single network connection.
 
is this even possible?
Yes

Here is a sample
Code:
auto vmbr0 vmbr0:1
iface vmbr0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports ens18
    bridge_stp off
    bridge_fd 0

iface vmbr0:1 inet static
    address 10.10.1.10
    netmask 255.255.0.0
 
Yes

Here is a sample
Code:
auto vmbr0 vmbr0:1
iface vmbr0 inet static
    address 192.168.1.10
    netmask 255.255.255.0
    gateway 192.168.1.1
    bridge_ports ens18
    bridge_stp off
    bridge_fd 0

iface vmbr0:1 inet static
    address 10.10.1.10
    netmask 255.255.0.0

Thanks. That worked.
I got second ip on the node1 and setup of sense vm with new schema.
All is up and seams to be working fine. I get all my devices on new 10.10.1.x schema.
Still testing now but all lools ok.
Next steps is configuring of sense to Bob and such. And setting up my second proxmox node for storage and other VMs.
 

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!