Trying to connect laptop & desktop between each other via Gigabit Ethernet for fast file transfer while keeping Wifi for internet access. I set static ethernet ipv4 addresses on both laptop and desktop in a different subnet from wifi, without gateway. h
Tried setting different metrics for wifi and ethernet - same for both, lower metric for ethernet, lower metric for wifi; tried different cables (both straight and crossover, which shouldn't matter because auto-MDIX) - but no matter what I do while the link is established at 1.0 gbps not even ping or iperf3 comes through, let alone file transfer. Both machines are running 10 Pro.
Using Ethernet And Wifi Simultaneously Router
How do I solve this?
8 comments
Posted by3 years ago
Archived
I'm trying to connect my Raspberry Pi over ethernet to my closed local network router as well as connect to an Internet facing router using Wi-Fi. I followed this guide on stackexchange:
With two exceptions:
I didn't make my wlan0 configuration static
I left out the 'iface default inet dhcp' line at the bottom of /etc/network/interfaces because it resulted in no network connection whatsoever.
Where I'm at now:
Light color plain background images hd. I've got two IP addresses on the Pi, and both are valid. I've confirmed this by making connections to the closed network ip address and running 'iwconfig' and receiving positive results. Despite being valid IP addresses, the Pi does not seem to have a network connection. If I 'ping 8.8.8.8', I get the following:
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
From 192.168.1.1 icmp_seq=2 Destination Net Unreachable
From 192.168.1.1 icmp_seq=3 Destination Net Unreachable
The result of which is 100% packet loss. I've tried running 'ping -I <networkGateway> 8.8.8.8' but that seems to hang with no indication progress until I interrupt the command and see 100% packet loss still.
For completeness, heres my /etc/network/interfaces file:
It seems that the eth0 connection is taking priority over the wlan0 connection due to the 'From 192.168.1.1' at the start of the ping command, but I don't see where that might have been specified.
Any ideas?
Edit:
Worth noting this output on boot:
Edit2:
Issuing 'ping -I wlan0 8.8.8.8' works! But loading a webpage in the browser doesn't. Is there a way to set wlan0 as the default connection route?