Any way to create a Virtual NIC on vmbr0?

Jan 12, 2015
94
2
28
I was using Linux KVM and virt-manager to manage my virtual machines prior to Proxmox. Now, I'm migrating my Linux hosts over to Proxmox and running into a problem with Virtual NICs on the hypervisor. Is there a way to create a second virtual interface from within Proxmox? I can do this on the command line to get what I want:

eg:
Code:
 ifconfig vmbr0:1 10.11.12.1 up

What this does is let the ARP requests/lookups for vmbr0 answer for two or more IP address and then I use Netfilter to NAT the traffic from vmbr0 to the appropriate VM (depending on the destination IP) which may be on a private bridge.

Maybe there's another way to do this with Proxmox?
 
If you need virtual NIC with different MAC

Code:
auto vmbr1
iface vmbr1 inet static
....
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0


auto vmbr1v1
iface vmbr1v1 inet static
....
    pre-up ifup vmbr1 2> /dev/null
    pre-up ip link add link vmbr1 name $IFACE address 00:xx:xx:xx:xx:xx type macvlan 2> /dev/null
    up ifconfig $IFACE 0.0.0.0 up
    down ifconfig $IFACE down
    post-down ip link del link dev $IFACE 2> /dev/null
 

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!