Understanting wifi routing and gateway - Raspberry Pi Forums


hi,

i'm lost. i'm real beginner linux networking. have 3 interfaces eth0, wlan0, wlan1 (2 wifi usb dongle).
situation :
- wlan1 use connect wifi camera via ssdp.
- wlan0 use have tcp connection server (ip/domain name known). know nothing wifi wlan0 connected via dhcp. change time time. don't know gateway specially.
- eth0 use debug ssh access, via macbook air connection sharing service example.

actually, these interfaces working. here's ifconfig output (wlan1 , eth0 on same network not case in future) :

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:1174 errors:0 dropped:0 overruns:0 frame:0           tx packets:141 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            rx bytes:93616 (91.4 kib)  tx bytes:12342 (12.0 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 c0:4a:00:2a:ab:6c             inet addr:192.168.43.44  bcast:192.168.43.255  mask:255.255.255.0           broadcast running multicast  mtu:1500  metric:1           rx packets:5 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:1142 (1.1 kib)  tx bytes:1145 (1.1 kib)  wlan1     link encap:ethernet  hwaddr 74:da:38:0c:c6:f0             inet addr:192.168.0.14  bcast:192.168.0.255  mask:255.255.255.0           broadcast running multicast  mtu:1500  metric:1           rx packets:1480 errors:0 dropped:0 overruns:0 frame:0           tx packets:155 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            rx bytes:222449 (217.2 kib)  tx bytes:29711 (29.0 kib) 
, here's output of sudo route -n :

code: select all

0.0.0.0         192.168.0.254   0.0.0.0         ug    0      0        0 eth0 192.168.0.0     0.0.0.0         255.255.255.0   u     0      0        0 wlan1 192.168.0.0     0.0.0.0         255.255.255.0   u     0      0        0 eth0 192.168.43.0    0.0.0.0         255.255.255.0   u     0      0        0 wlan0 
if understand i've read last 24 hours, need routing stuff. don't understand , how.
did have change default route ? if yes, how can manage since don't know wlan0 or wlan1 gateway before connecting network.
impossible problem ?

post might duplicate since yesterday have found nothing helping @ least need find original post :)

big thank in advanced can me !

edit : /etc/network/interfaces

code: select all

auto lo iface lo inet loopback  auto eth0 iface eth0 inet dhcp         post-up route del default dev wlan0  auto wlan0 allow-hotplug wlan0 iface wlan0 inet dhcp         wpa-ssid "wifi1"         wpa-psk "pwd1"          auto wlan1 allow-hotplug wlan1 iface wlan1 inet dhcp         wpa-ssid "wifi2"         wpa-psk "pwd2" 

i've found solution explain here : http://unix.stackexchange.com/a/203109/115120


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support