NIC with two IP

fedele

New Member
Mar 16, 2024
6
0
1
I have a two nodex proxmox cluster, one nic each.
I would like to create a management network for the two nodes on 10.1.1.x and I need to have a VM with address 192.168.1.x
On nodes I can't assign an IP (10.1.1.x) to the phisical network card and then create a LAN bridge with IP 192.168.1.x,
but also I'm not able to create a virtual LAN either.
Can you help me?
 
With just a single NIC you will have to buy another NIC or work with tagged VLANs, which requires buying a managed switch with tagged VLAN support in case you don'T already own one.
 
Thank you for the answer, in linux i can assign two addresses to the same nic. Why not using Proxmox?
 
You can assign two IPs to a single interface. But whats the point of a management interface without any physical o at least virtual isolation between subnets?
Corosync won't benefit without a dedicated always-idling physical NIC and it also doesn't really help with security.
 
If you cannot create VLAN, then 'secondly IP' can be help here, like this:

2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether bc:24:11:15:f5:0d brd ff:ff:ff:ff:ff:ff
inet 10.2.0.7/8 brd 10.255.255.255 scope global eth0
valid_lft forever preferred_lft forever
inet 10.2.0.14/8 brd 10.255.255.255 scope global secondary eth0:1
valid_lft forever preferred_lft forever
inet 10.2.0.15/8 brd 10.255.255.255 scope global secondary eth0:2
valid_lft forever preferred_lft forever
inet 10.2.0.16/8 brd 10.255.255.255 scope global secondary eth0:3
valid_lft forever preferred_lft forever
inet 10.2.0.8/8 brd 10.255.255.255 scope global secondary eth0:4
valid_lft forever preferred_lft forever
inet 10.2.0.9/8 brd 10.255.255.255 scope global secondary eth0:5
valid_lft forever preferred_lft forever
inet 10.2.0.10/8 brd 10.255.255.255 scope global secondary eth0:6
valid_lft forever preferred_lft forever
inet 10.2.0.11/8 brd 10.255.255.255 scope global secondary eth0:7
valid_lft forever preferred_lft forever
inet 10.2.0.12/8 brd 10.255.255.255 scope global secondary eth0:8
valid_lft forever preferred_lft forever
inet 10.2.0.13/8 brd 10.255.255.255 scope global secondary eth0:9
valid_lft forever preferred_lft forever
inet6 fe80::be24:11ff:fe15:f50d/64 scope link
valid_lft forever preferred_lft forever