I have the following:
- RPi 2 (fresh install of Raspbian Stretch)
- RPi 2 (Raspbian Stretch upgraded from Jessie)
- RPi Zero W (fresh install of Raspbian Stretch)
I am able to get a Wifi connection (wlan0) when the system is started or rebooted. However, I am not able to regain the connection when issuing
Code: Select all
$ sudo ifconfig wlan0 down
$ sudo ifconfig wlan0 up
System information is as follows.
Code: Select all
$ uname -a
Linux raspberrypi 4.14.79-v7+ #1159 SMP Sun Nov 4 17:50:20 GMT 2018 armv7l GNU/Linux
Code: Select all
$ lsusb
Bus 001 Device 006: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 005: ID 0781:5583 SanDisk Corp.
Bus 001 Device 004: ID 04d9:1203 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code: Select all
$ lsmod
Module Size Used by
8192cu 589824 0
evdev 24576 2
sg 28672 0
cfg80211 573440 1 8192cu
rfkill 28672 3 cfg80211
snd_bcm2835 32768 0
snd_pcm 98304 1 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 3 snd_timer,snd_bcm2835,snd_pcm
uio_pdrv_genirq 16384 0
fixed 16384 0
uio 20480 1 uio_pdrv_genirq
ip_tables 24576 0
x_tables 32768 1 ip_tables
ipv6 425984 46
Code: Select all
$ sudo cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
Code: Select all
$ sudo cat /etc/network/interfaces.d/wlan0
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
Code: Select all
$ sudo cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="<ssid value>"
psk=<encrypted passphrase using wpa_passphrase>
}
Code: Select all
$ sudo ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.10 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::265c:712c:fc23:cb08 prefixlen 64 scopeid 0x20<link>
inet6 2601:646:9301:dcb0::2 prefixlen 128 scopeid 0x0<global>
inet6 2601:646:9301:dcb0:8a43:9c42:6c0d:9ef2 prefixlen 64 scopeid 0x0<global>
ether 74:da:38:6b:a5:11 txqueuelen 1000 (Ethernet)
RX packets 23100 bytes 3997720 (3.8 MiB)
RX errors 0 dropped 16 overruns 0 frame 0
TX packets 2018 bytes 337655 (329.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ sudo iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"<ssid value>" Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency:2.462 GHz Access Point: 20:10:7A:18:CE:EF
Bit Rate:72.2 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=66/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:0
Code: Select all
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 74:da:38:6b:a5:11 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 29328 (28.6 KiB)
RX errors 0 dropped 40 overruns 0 frame 0
TX packets 0 bytes 25742 (25.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0