wifi woks only if ethernet is plugged in - Raspberry Pi Forums


first of want have red thread:
viewtopic.php?f=28&t=81021&sid=d9db52ca ... 6735fcdd7a

setup have wifi dongle installed, wlan0 , bt on pi3 disabled, ethernet active of course. seems wifi works when ethernet plugged in.

main issue cannot add rule in routing table , displays:
sudo route add default gw 192.168.0.170 wlan1
siocaddrt: network unreachable

ip route command displays:
default via 192.168.0.170 dev eth0 metric 1 onlink
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.198 metric 1


ifconfig -a:
eth0: flags=4163<up,broadcast,running,multicast> mtu 1500
inet 192.168.0.198 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::ba27:ebff:fe3c:f711 prefixlen 64 scopeid 0x20<link>
ether b5:28:eb:3c:f7:11 txqueuelen 1000 (ethernet)
rx packets 4997 bytes 321353 (313.8 kib)
rx errors 0 dropped 0 overruns 0 frame 0
tx packets 589 bytes 80393 (78.5 kib)
tx errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<up,loopback,running> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (local loopback)
rx packets 2 bytes 78 (78.0 b)
rx errors 0 dropped 0 overruns 0 frame 0
tx packets 2 bytes 78 (78.0 b)
tx errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan1: flags=4098<broadcast,multicast> mtu 1500
inet 192.168.0.197 netmask 255.255.255.0 broadcast 192.168.0.255
ether a9:f8:e0:07:76:f0 txqueuelen 1000 (ethernet)
rx packets 0 bytes 0 (0.0 b)
rx errors 0 dropped 5 overruns 0 frame 0
tx packets 0 bytes 0 (0.0 b)
tx errors 0 dropped 0 overruns 0 carrier 0 collisions 0


using arp -a on pc same network indeed display same mac both network interfaces, eth0 , wlan1. using first mentioned thread think can solve adding routing rule. don't understand why doesn't work.
-i have reversed listing order, people suggested, in /etc/network/interfaces of wlan1 , eth0
-i have tried use sudo arp -i 192.168.0.197 a9:f8:e0:07:76:f0 , displays a9:f8:e0:07:76:f0: unknown host
-i have instaled ifmetric , established metric 0 wlan 1, , metric 1 eth0 , doesn't work;

your wlan1 interface doesn't appear in state.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'