Virtual NIC to Interface ties...

Lantizia

Renowned Member
Jun 29, 2009
79
1
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
[TABLE="class: normal, width: 508"]
[TR]
[/TR]
[TR]
[TD][/TD]
[TD]Model[/TD]
[TD]Bridge[/TD]
[TD]MAC address[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #EDEDED"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr0[/TD]
[TD]DA:F4:46:F9:9A:46[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr1[/TD]
[TD]E2:0D:8F:A2:7D:3C[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #EDEDED"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr2[/TD]
[TD]D6:9E:67:7F:CA:A7[/TD]
[TD][/TD]
[/TR]
[/TABLE]




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
[TABLE="class: normal, width: 508"]
[TR]
[/TR]
[TR]
[TD][/TD]
[TD]Model[/TD]
[TD]Bridge[/TD]
[TD]MAC address[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #EDEDED"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr0[/TD]
[TD]DA:F4:46:F9:9A:46[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #FFFFFF"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr1[/TD]
[TD]E2:0D:8F:A2:7D:3C[/TD]
[TD][/TD]
[/TR]
[TR="bgcolor: #EDEDED"]
[TD]
tarrdown.png
[/TD]
[TD]rtl8139[/TD]
[TD]vmbr2[/TD]
[TD]D6:9E:67:7F:CA:A7[/TD]
[TD][/TD]
[/TR]
[/TABLE]





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').