2 wifi , 2 devices: force wlan0 to use one specific - Raspberry Pi Forums
hi.
i'm real beginner in linux networking , i'm trying connect pi 2 wifi @ same time.
i've done far : here's output of sudo ip show : want wlan0 use tp-link tl-wn722n , wlan1 use edimax ew-7811un.
after googling haven't found helping. there command in /etc/network/interfaces force interface use specific device ? or usb port order ?
i'm real beginner in linux networking , i'm trying connect pi 2 wifi @ same time.
i've done far :
- buying 2 different wifi dongle (tp-link tl-wn722n , edimax ew-7811un)
- both work separately
- can connect pi 2 different wifi network using 2 dongles
code: select all
auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "wifi1" wpa-psk "pwd1" auto wlan1 allow-hotplug wlan1 iface wlan0 inet dhcp wpa-ssid "wifi2" wpa-psk "pwd2"
code: select all
eth0 link encap:ethernet hwaddr b8:27:eb:8c:e2:10 inet addr:192.168.0.19 bcast:192.168.0.255 mask:255.255.255.0 broadcast running multicast mtu:1500 metric:1 rx packets:109 errors:0 dropped:0 overruns:0 frame:0 tx packets:58 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 rx bytes:12425 (12.1 kib) tx bytes:8743 (8.5 kib) lo link encap:local loopback inet addr:127.0.0.1 mask:255.0.0.0 loopback running mtu:65536 metric:1 rx packets:0 errors:0 dropped:0 overruns:0 frame:0 tx packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 rx bytes:0 (0.0 b) tx bytes:0 (0.0 b) wlan0 link encap:ethernet hwaddr 74:da:38:0c:c6:f0 inet addr:192.168.43.43 bcast:192.168.43.255 mask:255.255.255.0 broadcast running multicast mtu:1500 metric:1 rx packets:13 errors:0 dropped:3 overruns:0 frame:0 tx packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 rx bytes:4198 (4.0 kib) tx bytes:2025 (1.9 kib) wlan1 link encap:ethernet hwaddr c0:4a:00:2a:ab:6c inet addr:192.168.0.32 bcast:192.168.0.255 mask:255.255.255.0 broadcast running multicast mtu:1500 metric:1 rx packets:44 errors:0 dropped:0 overruns:0 frame:0 tx packets:5 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 rx bytes:6920 (6.7 kib) tx bytes:1147 (1.1 kib)
after googling haven't found helping. there command in /etc/network/interfaces force interface use specific device ? or usb port order ?
hi, use
sudo route
... command view|set default gateway. basically, need define network interface (iface) nic used default gateway out internet. ip address, netmask, default route , iface must set correctly.
sudo route
... command view|set default gateway. basically, need define network interface (iface) nic used default gateway out internet. ip address, netmask, default route , iface must set correctly.
raspberrypi
Comments
Post a Comment