Virtual NIC to Interface ties...

Lantizia

Renowned Member
Jun 29, 2009
79
0
71
Hey,

So you've got a KVM machine, you click on the Hardware tab and look at the ethernet devices and see this...

Ethernet devices
ModelBridgeMAC address
tarrdown.png
rtl8139vmbr0DA:F4:46:F9:9A:46
tarrdown.png
rtl8139vmbr1E2:0D:8F:A2:7D:3C
tarrdown.png
rtl8139vmbr2D6:9E:67:7F:CA:A7




So I get that the Model is stored in /etc/qemu-server/101.conf and so is the MAC address
And I also get that the Bridge interfaces are stores in /etc/network/interfaces

But where are the two linked? i.e. What file connects what virtual NIC to what interface on the Proxmox VE host?

Would love to know
 
Last edited:
Hey,

So you've got a KVM machine, you click on the Hardware tab and look at the ethernet devices and see this...

Ethernet devices
ModelBridgeMAC address
tarrdown.png
rtl8139vmbr0DA:F4:46:F9:9A:46
tarrdown.png
rtl8139vmbr1E2:0D:8F:A2:7D:3C
tarrdown.png
rtl8139vmbr2D6:9E:67:7F:CA:A7





So I get that the Model is stored in /etc/qemu-server/101.conf and so is the MAC address
And I also get that the Bridge interfaces are stores in /etc/network/interfaces

But where are the two linked? i.e. What file connects what virtual NIC to what interface on the Proxmox VE host?

Would love to know
hi,
the number in the first row (VMID.conf) shows the bridge-number. vmbrX

Udo
 
OK here is the corresponding config file... /etc/qemu-server/101.conf

Code:
name: erebus.seaquake.net
ide2: local:iso/disc.iso,media=cdrom
vlan0: rtl8139=DA:F4:46:F9:9A:46
bootdisk: ide0
ostype: l26
ide0: local:101/vm-101-disk-1.raw
memory: 512
onboot: 1
sockets: 1
vlan1: rtl8139=E2:0D:8F:A2:7D:3C
vlan2: rtl8139=D6:9E:67:7F:CA:A7
boot: cd
freeze: 0
cpuunits: 1000
acpi: 1
kvm: 1

And I don't see any mention of vmbr0/1/2 anything in that.

The only thing with a number in regards to the virtual NIC's is vlan0, vlan1, vlan2 - but that doesn't mean they're connected to vmbr0,1,2 but rather that it is the first virtual nic, the 2nd, the 3rd.

What am I missing here?
 
So your saying if I had two virtual NIC's both point at vmbr0 they'd both be called vlan0 in the config file?

Isn't that like saying if two virtual hard disks both pointed to the same hard disk image they'd both be called ide0 or something?
 
So your saying if I had two virtual NIC's both point at vmbr0 they'd both be called vlan0 in the config file?

I just tell you how the system works. Please read the manual if you want to know the exact syntax ('man qm').
 

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!