I have a Pi model B, with a Belkin USB wireless dongle.
With an ethernet cable connected, I can access both the wired and the wireless interfaces.
If I now disconnect the ethernet cable, both interfaces disappear.
/etc/network/interfaces is as follows: ######################################## auto lo iface lo inet loopback
auto eth0 iface eth0 inet static address 192.168.1.91 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1
auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.92 netmask 255.255.255.0 network 192.168.1.0 gateway 192.168.1.1 broadcast 192.168.1.255
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf ########################################
With the cable connected, at the pi: ######################################## tony@picam0:~$ ifconfig eth0 Link encap:Ethernet HWaddr b8:27:eb:40:1a:9c inet addr:192.168.1.91 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::ba27:ebff:fe40:1a9c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:162 errors:0 dropped:0 overruns:0 frame:0 TX packets:123 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:17626 (17.2 KiB) TX bytes:14601 (14.2 KiB)
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host 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)
wlan0 Link encap:Ethernet HWaddr 94:44:52:ee:9a:0c inet addr:192.168.1.92 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::9644:52ff:feee:9a0c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:108 errors:0 dropped:1 overruns:0 frame:0 TX packets:112 errors:0 dropped:2 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15634 (15.2 KiB) TX bytes:18814 (18.3 KiB) ######################################## ######################################## tony@picam0:~$ iwconfig wlan0 IEEE 802.11bgn ESSID:"Livebox-2e43" Nickname:"" Mode:Managed Frequency:2.467 GHz Access Point:
00:19:70:3A:D5:9D Bit Rate:65 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=99/100 Signal level=74/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0lo no wireless extensions.
eth0 no wireless extensions. ########################################
######################################## tony@picam0:~$ sudo wpa_cli status [sudo] password for tony: Selected interface 'wlan0' bssid=00:19:70:3a:d5:9d ssid=Livebox-2e43 id=1 mode=station pairwise_cipher=CCMP group_cipher=TKIP key_mgmt=WPA2-PSK wpa_state=COMPLETED ip_address=192.168.1.92 address=94:44:52:ee:9a:0c ########################################
At the workstation: ######################################## root@tony-fr:~# arp-scan --localnet Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts
(NOTE that the MAC for the .91 and .92 hosts are identical, despite what ifconfig says.)
Ping to .91 and .92 works as expected, albeit with quite long echo ties from the wireless interface:
root@tony-fr:~# ping picam0 PING picam0 (192.168.1.91) 56(84) bytes of data.
64 bytes from picam0 (192.168.1.91): icmp_req=1 ttl=64 time=1.82 msroot@tony-fr:~# ping picam0w PING picam0w (192.168.1.92) 56(84) bytes of data.
64 bytes from picam0w (192.168.1.92): icmp_req=1 ttl=64 time=92.4 msNow I disconnect the ethernet cable; I would expect the wireless interface to keep working:
root@tony-fr:~# ping picam0w PING picam0w (192.168.1.92) 56(84) bytes of data. ^C
--- picam0w ping statistics ---
6 packets transmitted, 0 received, 100% packet loss, time 5040msBah!
root@tony-fr:~# arp-scan --localnet Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts
Yep, they've BOTH disappeared! Reconnecting the cable brings them both back to life.
No doubt I'm missing something here, but I've been struggling with it for days! Can anyone cast any light, please?
Cheers, Tony