-
Notifications
You must be signed in to change notification settings - Fork 50
Description
I have a new latop without an RJ 45 network connection. Therefore I bought this docking station: https://www.coolblue.be/en/product/933693/bluebuilt-8-in-1-hdmi-docking-station-with-usb-c.html
The network connection works with the r8152 driver.
I am now trying to setup a bridge network to use it with a virtual machine. I am using libvirt and qemu. Up to know, it does not work. I have followed the instruction for systemd here: https://wiki.gentoo.org/wiki/Network_bridge
So I put this in MyEth.network
[Match]
Name=enp3s0f3u1u2
[Network]
Bridge=br0
DHCP=no
[Link]
WakeOnLan=on
MyEth.network
I also put this in MyBridge.network:
[Match]
Name=br0
[Network]
DHCP=yes
[DHCP]
RouteMetric=2
Finally, I put tis in MyBridge.netdev:
[NetDev]
Name=br0
Kind=bridge
MACAddress=98:fc:84:e0:59:61
The bridged interface (br0) get an IP address:
[quote] br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.182 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::9afc:84ff:fee0:5961 prefixlen 64 scopeid 0x20
ether 98:fc:84:e0:59:61 txqueuelen 1000 (Ethernet)
RX packets 21282 bytes 17892867 (17.0 MiB)
RX errors 0 dropped 220 overruns 0 frame 0
TX packets 12259 bytes 1721272 (1.6 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
[/quote]
Unfortunately, the network connection in the virtual machine does not work: ip link say that the interface is up, but it does not get an IP address.
Does anybody have an idea on this problem ? Is it possible to create a bridged network with an usb network device using this driver ?
Thanks in advance for your help.