Page 1 of 1
Disconnect wifi
Posted: Wed Apr 06, 2016 7:34 am
by iFunction
Hi there,
On the raspberry pi 3, is there a way to disconnect it from the internet once it has a connection, I really need to test if something will work without a connection to the internet and can't figure out a way to do it, usually I just remove the wifi dongle but with the Raspberry Pi 3 this is no longer an option?
Re: Disconnect wifi
Posted: Wed Apr 06, 2016 8:28 am
by rpdom
Turn off the interface on the command line?
That should work.
should start it up again.
Re: Disconnect wifi
Posted: Thu Apr 07, 2016 8:38 am
by DougieLawson
sudo ifconfig eth0 0.0.0.0 is more likely to work, because Jessie with the raspberrypi-net-mods stuff doesn't use ifdown / ifup.
sudo ifconfig eth0 192.168.xxx.xxx/24
sudo ip route add default via 192.168.ggg.ggg
gets it running again. 192.168.xxx.xxx is the RPi's address, 192.168.ggg.ggg is your gateway address.
Re: Disconnect wifi
Posted: Thu Apr 07, 2016 9:29 am
by rpdom
DougieLawson wrote:sudo ifconfig eth0 0.0.0.0 is more likely to work, because Jessie with the raspberrypi-net-mods stuff doesn't use ifdown / ifup.
True. However as ifconfig works, as simple
and
does the trick, rather than changing all the settings.
Re: Disconnect wifi
Posted: Wed Jan 17, 2018 6:36 pm
by pgloor
worked for me with Raspbian Stretch Lite.
Turn on Pi 3 WiFi
Posted: Thu Jan 18, 2018 2:15 am
by Larry_too
Obviously a nooby here.
Just assembled a Pi 3 B, booted and all appears ready except that when I use Chromium or Help I get the message "There is no internet connection". I am in the US and setup, I think, US WiFi parameters. I am using the WiFi on a laptop to post this.
I've tried the Sudo ifup wlan0 command only to be told "unknown interface wlan0"
I've also tried the command from the previous post with the same result.
HOW DO I TURN ON the WiFi on the board.
Larry
Re: Disconnect wifi
Posted: Thu Jan 18, 2018 10:42 am
by jamesh
Click on the Wifi icon top right, that should give a list of available networks. Select the one you want, enter the credentials. That should be all you need to do.
Re: Disconnect wifi
Posted: Thu Jan 18, 2018 4:11 pm
by Larry_too
My NOOBY status is showing!
I do not see a WiFi icon at upper right, actually I see no icons over there.
All icons that I see are clustered upper left and start with the raspberry and include things like console, Math and others.
I have made no changes to the software downloaded from your site.
Appearances are that the WiFi transmitter/receiver has not yet been turned on. This would be the on board WiFi, not a dongle.
What am I missing?
Larry
Re: Disconnect wifi
Posted: Fri Jan 19, 2018 5:13 am
by Larry_too
Found what I was missing!
I am using a motel TV as a monitor and the video from the Pi was displayed too wide for the screen.
The right side icons were off screen. Adjusted center a bit and now I find them as predicted.
Works!
Thanks,
Larry
