Menu

#118 nics have same hw address (rtl8139)

closed
nobody
None
5
2012-10-09
2007-09-25
xeb
No

Hello!

Host:Linux 2.6.22-gentoo-r2 #2 SMP Fri Aug 3 07:01:46 MSD 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+ AuthenticAMD GNU/Linux,Gentoo, kvm-44

Guest:Linux 2.6.22-hardened-r4

command line:
qemu-system-x86_64 -hda server_base_x86.img -hdc server_swap.img -localtime -m 128 \
-net nic,vlan=0,macaddr=52:54:00:12:34:56,model=rtl8139 -net tap,vlan=0,ifname=tap3,script=no \
-net nic,vlan=1,macaddr=52:54:00:12:34:57,model=rtl8139 -net tap,vlan=1,ifname=tap4,script=no \
-net nic,vlan=2,macaddr=52:54:00:12:34:58,model=rtl8139 -net tap,vlan=2,ifname=tap5,script=no \
-nographic

ifconfig on guest:
eth0 Link encap:Ethernet HWaddr 52:54:00:12:34:58
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 52:54:00:12:34:58
inet addr:192.168.11.1 Bcast:192.168.11.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0x6100

eth2 Link encap:Ethernet HWaddr 52:54:00:12:34:58
inet addr:192.168.13.1 Bcast:192.168.13.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0x8200

As can you see they have same hwaddr.
With model=ne2k_pci nics have correct hw addresses

Discussion

  • Avi Kivity

    Avi Kivity - 2007-10-01

    Logged In: YES
    user_id=539971
    Originator: NO

    should be fixed for kvm-45 by qemu-cvs merge.

     
  • xeb

    xeb - 2007-10-02

    Logged In: YES
    user_id=1523411
    Originator: YES

    bug fixed.
    thanks.

     

Log in to post a comment.