Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is bridge networking possible with this driver ? #43

Open
fvalenduc opened this issue Jul 18, 2024 · 0 comments
Open

Is bridge networking possible with this driver ? #43

fvalenduc opened this issue Jul 18, 2024 · 0 comments

Comments

@fvalenduc
Copy link

fvalenduc commented Jul 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant