I'm working on an African education project that uses the rpi. I got an issue which is critical so hopefully someone out there can help. Thanks in advance! When I connect a usb modem to the pi all works well until I access the wlan0 network when it crashes/hangs. The wlan0 network is critical for use in the field, its how coaches access the rpi but they need to send us info with the usb modem. Here some CSI observations (you will see I'm only a quarter geek sorry!):
- If usb modem is in but not connected to net it does not cause a problem
- When the pi starts up it says my ip address is 1.1.1.1 192.168.1.1 (1.1.1.1. is wlan0 and 192.x is the usb modem)
- No issues with wlan0 if the dongles is not in
- The problem is only triggered if I go onto wlan0, all is well up to that point
- Below the ifconfig before I go onto the wlan0 (is man.wlan0 ok?)
- Further below my /etc/network/interfaces file
pi@raspberrypi ~ $ ifconfig
eth0 Link encap:Ethernet HWaddr b8:27:eb:2c:6d:a3
inet addr:10.1.1.5 Bcast:10.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192 errors:0 dropped:0 overruns:0 frame:0
TX packets:63 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27986 (27.3 KiB) TX bytes:11605 (11.3 KiB)
eth1 Link encap:Ethernet HWaddr 58:2c:80:13:92:63
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:78 errors:0 dropped:0 overruns:0 frame:0
TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9765 (9.5 KiB) TX bytes:7724 (7.5 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP 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)
mon.wlan0 Link encap:UNSPEC HWaddr 00-C1-40-50-0B-7C-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:141 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:46288 (45.2 KiB) TX bytes:0 (0.0 B)
wlan0 Link encap:Ethernet HWaddr 00:c1:40:50:0b:7c
inet addr:1.1.1.1 Bcast:1.1.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 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:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
more /etc/network/interfaces
auto lo
iface lo inet loopback
iface eth0 inet dhcp
auto wlan0
iface wlan0 inet static
address 1.1.1.1
netmask 255.255.255.0
pre-up sudo iptables -t nat -A PREROUTING -i wlan0 -p tcp -j DNAT --to-destination 1.1.1.1
pre-up sudo python /opt/ka-lite-pi-scripts/redirect_port80_to_port8008.py &
allow-hotplug eth1
ifconfig
output you posted shows both wlan0 and the usb modem eth interfaces as up and connected. Finally, what model pi is this? If it isn't an A+/B+, how are these devices powered?