Re: Mac-Address uniqueness

Axel Kittenberger
2007-05-31T12:18:24Z

Thanks for the quick answer.
> It works for me.
> You should have all the -nic parameters in the same option, for example:
> "-net nic,macaddr=$MAC,model=rtl8139" otherwise qemu sets the nic for
> another vlan object.
>
Oh! This explains why lspci showed 3 network cards, stupid me :-)
Still specifing a macaddr, will make the interface not work for me in a
debian-40r0-i386 host! :-(

So the whole commandline im using is:
/usr/local/bin/kvm-helios -hda /home/machines/helios.img -vnc :1 -boot
c: -m 1024 -net nic,model=rtl8139,vlan=0,macaddr=52:54:00:12:34:59 -net
tap,vlan=0,ifname=tap57,script=/etc/qemu-ifup-dmz -localtime -k de
-pidfile /var/run/kvm-helios.pid

After bootup with macaddr set, the debian system does not autoload any
modules for eth0.
Attached some response to shell commands:
---------------------------
helios# lspci
00:00.0 Host bridge: Intel Corporation 440FX - 82441FX PMC [Natoma] (rev 02)
00:01.0 ISA bridge: Intel Corporation 82371SB PIIX3 ISA [Natoma/Triton II]
00:01.1 IDE interface: Intel Corporation 82371SB PIIX3 IDE
[Natoma/Triton II]
00:01.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI
00:02.0 VGA compatible controller: Cirrus Logic GD 5446
00:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 20)
helios# modprobe 8139cp
May 31 16:03:43 helios kernel: 8139cp: 10/100 PCI Ethernet driver v1.2
(Mar 22, 2004)
May 31 16:03:43 helios kernel: PCI: Enabling device 0000:00:03.0 (0000
-> 0003)
May 31 16:03:43 helios kernel: ACPI: PCI Interrupt 0000:00:03.0[A] ->
Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
May 31 16:03:43 helios kernel: eth0: RTL-8139C+ at 0xf883c000,
52:54:00:12:34:59, IRQ 10
helios# ifconfig eth0
eth0: error fetching interface information: Device not found
---------------------------
While same kvm-parameters but without setting maccdr with setting the
macaddr debian autoloads it: (excerpt from /var/log/messages)
---------------------------
May 31 16:06:01 helios kernel: 8139too 0000:00:03.0: This (id 10ec:8139
rev 20) is an enhanced 8139C+ chip
May 31 16:06:01 helios kernel: 8139too 0000:00:03.0: Use the "8139cp"
driver for improved performance and stability.
May 31 16:06:01 helios kernel: ACPI: PCI Interrupt Link [LNKC] enabled
at IRQ 10
May 31 16:06:01 helios kernel: ACPI: PCI Interrupt 0000:00:03.0[A] ->
Link [LNKC] -> GSI 10 (level, low) -> IRQ 10
May 31 16:06:01 helios kernel: eth0: RealTek RTL8139 at 0xc100,
52:54:00:12:34:56, IRQ 10
May 31 16:06:01 helios kernel: 8139cp: 10/100 PCI Ethernet driver v1.2
(Mar 22, 2004)
---------------------------

PS: Beside I actually would be supposed to know it, and suppose setting
macaddr would work for me, can or can't I use the macaddr linux assigns
to the 'tap' device?

Kind Regards, Axel