2025-07-07 2:19 AM
Hi, I have a problem with pinging PCs with my adapter USB-Ethernet with an STM32F207. I'm currently working with CDC-ECM for Ethernet-Over-USB.
First case: I have 2 VMs with Linux on them. The USB is connected to the first VM (VM1) and the Ethernet is connected to the second (VM2). I can ping VM1 with VM2 but I can't ping VM2 with VM1.
Second case: I have one VM with Linux and a Windows machine. The USB is connected to the VM and the ethernet is connected to the Windows machine. When I ping the VM with Windows or Windows with the VM I have only loss packets...
Does someone have any idea why ?
Thanks,
2025-07-07 3:43 AM - edited 2025-07-07 3:44 AM
Hello @Gwen1,
Case 1: Two Linux VMs
ip addr
,ip route
and in your virtualization application settings. Make sure they are in the same subnet or have proper routing rules.ip link show
), with the correct IP assigned.sudo iptables -F
and sudo ufw disable
) to rule out any ICMP blocking.arp -n
) to ensure MAC address resolution is working; if ARP fails, packets won’t be delivered.dmesg
) for any errors or dropped packets.Case 2: Linux VM and Windows machine
ipconfig /all
on Windows; ip addr
and ip route
on Linux).netsh advfirewall firewall add rule name="ICMP Allow inbound" protocol=icmpv4:8,any dir=in action=allow
dmesg
for any driver errors.ethtool
on Linux if available.arp -a
on Windows, arp -n
on Linux), since failure here will cause ping to fail.Best regards,