Adding USB netcard gives same IP as on eth0

57 views
Skip to first unread message

Keld Norman

unread,
Mar 28, 2016, 8:53:12 AM3/28/16
to qubes-users
Dedicating the USB pci to the StandAlone Debian 8 VM i have called LAB using sys-firewall (qubes 3.1)
and plugging in a usb netcard works almost fine .. but after seeing this in "dmesg" i also see 2 equal IP addresses on eth0 and eth1.

[ 1042.726049] r8152 2-6:1.0 eth1: Rx status -71
[ 1042.726478] usb 2-6: USB disconnect, device number 5
[ 1062.599174] usb 2-6: new high-speed USB device number 6 using xhci_hcd
[ 1062.764378] usb 2-6: New USB device found, idVendor=0bda, idProduct=8152
[ 1062.764412] usb 2-6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1062.764429] usb 2-6: Product: USB 10/100 LAN
[ 1062.764443] usb 2-6: Manufacturer: Realtek
[ 1062.764456] usb 2-6: SerialNumber: 00xxxxxxxxxx (removed serial)
[ 1062.920424] usb 2-6: reset high-speed USB device number 6 using xhci_hcd
[ 1063.113187] r8152 2-6:1.0 eth1: v1.08.0 (2015/01/13)
[ 1064.326355] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 1065.856078] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

root@Lab:/etc/network# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:xx:xx:xx:xx 
          inet addr:10.137.2.19  Bcast:10.255.255.255  Mask:255.255.255.255
          inet6 addr: fe80::216:3eff:fe5e:6c11/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:109 errors:0 dropped:0 overruns:0 frame:0
          TX packets:246 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:8333 (8.1 KiB)  TX bytes:23635 (23.0 KiB)

eth1      Link encap:Ethernet  HWaddr 00:13:xx:xx:xx:xx 
          inet addr:10.137.2.19  Bcast:10.255.255.255  Mask:255.255.255.255               <--- see same IP as eth0 !?
          inet6 addr: fe80::213:37ff:fea5:89ca/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:402 (402.0 B)  TX bytes:6336 (6.1 KiB)

Adding this to /etc/network/interfaces works if i boot the vm but when i unplug the usb netcard and re;plug it I end up with two equal IP addresses again..

root@Lab:/etc/network# cat interfaces
auto eth1
allow-hotplug eth1
iface eth1 inet static
        address 10.13.37.42
        netmask 255.255.255.0

post-up ip route flush all
post-up route add default dev eth0

How do i fix this problem ? any hints ?

Regards Keld Norman

Marek Marczykowski-Górecki

unread,
Mar 28, 2016, 5:30:36 PM3/28/16
to Keld Norman, qubes-users
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
It looks like Qubes network scripts take over all the interfaces, not
only the link to your netvm...
https://github.com/QubesOS/qubes-issues/issues/1882

As a quick workaround, you can disable Qubes network there (set netvm to
"none"). But this will of course disable the link to your netvm.
Or you can reconfigure eth1 interface (ifdown eth1 && ifup eth1).

- --
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJW+aJ2AAoJENuP0xzK19cs7joH/jHzwBqXy6m7yi9bCgH4ClQy
PxNfIAvuwtqRMmJ324XkGwjO9hTYbN3lLYvY9iFJsUU873IMk0Qs5X/9wTOtC3Fg
rNfBTCrnA2H349jGF3anX9evvbn9gTXKtBdlgJawtiHsnqK3a4Iw1bxYFXFo1A5B
Gkrpgz0zANjxPngLfSC+hXNwkCRGiuCCXn1uxjfntwQG+mTpg/kE9Faj+UDyeXRt
ecYWOS5fCN93ey2nWkPGno0BEYUujt9RnywxK/lOlfd4Ukm0P36AIS8pk4iEQoqG
rPeNPaYpVip0mCa748JfepkQdQu03QvxERznhAuTqxW7cxPVhHFL7bMVBzuXc+E=
=tpyn
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages