Any way to create a Virtual NIC on vmbr0?

Jan 12, 2015
94
3
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