View previous topic :: View next topic |
Author |
Message |
FrancoisVal Tux's lil' helper
Joined: 12 May 2005 Posts: 84 Location: Namur, Belgique
|
Posted: Wed Jul 17, 2024 8:52 pm Post subject: [SOLVED] bridge network with an usb docking station |
|
|
Hello everybody,
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
Code: | [Match]
Name=enp3s0f3u1u2
[Network]
Bridge=br0
DHCP=no
[Link]
WakeOnLan=on
MyEth.network |
I also put this in MyBridge.network:
Code: | [Match]
Name=br0
[Network]
DHCP=yes
[DHCP]
RouteMetric=2
|
Finally, I put tis in MyBridge.netdev:
Code: | [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<link>
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
|
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 ?
Thanks in advance for your help. _________________ François Valenduc
Last edited by FrancoisVal on Sat Jul 20, 2024 12:35 pm; edited 1 time in total |
|
Back to top |
|
|
FrancoisVal Tux's lil' helper
Joined: 12 May 2005 Posts: 84 Location: Namur, Belgique
|
Posted: Sat Jul 20, 2024 12:34 pm Post subject: |
|
|
I finally found a solution. I had to disable the dhcpcd service. Contrary to what is explained in the installation guide, it is not needed to get an adress via DHCP if systemd is used.I also had to disable systemd-network-generator. These 2 services set by default an IP address via DHCP on the ethernet connection, which is then not in promiscuous mode. But promiscuous mode is needed to get the brigde working. _________________ François Valenduc |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|