# Source: https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-raspi-config-easy.md

# Adafruit's Raspberry Pi Lesson 3. Network Setup

## Setting up Wifi

# raspi-config
raspi-config is the Raspberry Pi configuration tool that makes network configuration, remote access (eg. ssh / vnc), location settings and boot options a snap. This tool can be run from the command line and provides a simple interface that is easy to navigate with arrow keys. We highly recommend using this method over the GUI or manual command line file editing due to the flexibility of being able to run it remotely or in a console.&nbsp;

# Launching raspi-config
When you first boot your newly configured Pi it will either drop you into a console or into a graphical environment. In either case we will run the following command. The GUI boot up will require us to launch a terminal.&nbsp;

![](https://cdn-learn.adafruit.com/assets/assets/000/075/700/medium800/learn_raspberry_pi_125BD52C-51CA-4A0C-95D7-7DB7AB35EF15.jpeg?1557936565)

```
sudo raspi-config
```

## Select Network Options
![](https://cdn-learn.adafruit.com/assets/assets/000/075/690/medium800/learn_raspberry_pi_59B644A0-A4FB-4027-A3D9-C90065F1B56D.jpeg?1557932230)

## Select Wi-Fi
![](https://cdn-learn.adafruit.com/assets/assets/000/075/691/medium800/learn_raspberry_pi_E53DD9BB-F5F9-4AFA-84EA-411AFB0EB5D8.jpeg?1557932241)

## Enter WiFi Name (SSID)
![](https://cdn-learn.adafruit.com/assets/assets/000/075/692/medium800/learn_raspberry_pi_C10993A1-5369-43BD-A670-907CB5C19A49.jpeg?1557932251)

## Enter WiFi Password
![](https://cdn-learn.adafruit.com/assets/assets/000/075/693/medium800/learn_raspberry_pi_A31AF6ED-DBA7-4AD3-BF4D-69857BD3A6CC.jpeg?1557932261)

## Select Finish
![](https://cdn-learn.adafruit.com/assets/assets/000/075/695/medium800/learn_raspberry_pi_494C6396-2CEF-4F21-AC70-B43157A249BB.jpeg?1557932290)

## Bring Up the WiFi Adapter
We could just reboot and see if the WiFi automatically comes up. The following wpa\_cli command will bring up the WiFi interface on-line without requiring a reboot.&nbsp;

If you have a modern Raspberry Pi and are using an external adapter it is likely that your WiFi device will be named wlan1.

```
sudo wpa_cli -i wlan0 reconfigure
```

![](https://cdn-learn.adafruit.com/assets/assets/000/075/696/medium800/learn_raspberry_pi_39572313-AE9E-4257-851F-93D5C8C40570.jpeg?1557932314)

## Verify IP Address
If everything worked properly we will see the IP address of our device after the "inet " argument. We are now on-line. If this does not work try repeating the steps above in raspi-config and entering the WiFi access point name (SSID) and password again.

```
ifconfig wlan0
```

![](https://cdn-learn.adafruit.com/assets/assets/000/075/698/medium800/learn_raspberry_pi_802F132C-AE4E-4A42-8499-18753D13C652.jpeg?1557934171)

- [Previous Page](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/buying-a-usb-wifi-adapter.md)
- [Next Page](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis.md)

## Featured Products

### Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM

[Raspberry Pi 3 - Model B+ - 1.4GHz Cortex-A53 with 1GB RAM](https://www.adafruit.com/product/3775)
The Raspberry Pi 3 Model B is the most popular Raspberry Pi computer made, and the Pi Foundation knows you can always make a good thing _better_! And what could make the Pi 3 better? How about a&nbsp;_faster_ processor, 5 GHz WiFi, and updated Ethernet chip with PoE capability?...

In Stock
[Buy Now](https://www.adafruit.com/product/3775)
[Related Guides to the Product](https://learn.adafruit.com/products/3775/guides)
### Budget Pack for Raspberry Pi 1 Model B (Doesn't include RasPi)

[Budget Pack for Raspberry Pi 1 Model B (Doesn't include RasPi)](https://www.adafruit.com/product/965)
An optimized collection of parts and pieces to experiment with Raspberry Pi at home, school or work. Great for students and those that want to get their feet wet, no soldering required! **THIS PACK DOES NOT INCLUDE A RASPBERRY PI 1 MODEL B and is NOT compatible with Model B+ or Raspberry Pi...**

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/965)
[Related Guides to the Product](https://learn.adafruit.com/products/965/guides)
### USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more

[USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more](https://www.adafruit.com/product/1012)
Make your Internet of Things device cable-free by adding WiFi. Take advantage of the Raspberry Pi and Beagle Bone's USB port to add a low cost, but high-reliability wireless link. We tried half a dozen modules to find one that works well with the Pi and Bone without the need of recompiling...

In Stock
[Buy Now](https://www.adafruit.com/product/1012)
[Related Guides to the Product](https://learn.adafruit.com/products/1012/guides)
### USB WiFi (802.11b/g/n) Module with Antenna for Raspberry Pi

[USB WiFi (802.11b/g/n) Module with Antenna for Raspberry Pi](https://www.adafruit.com/product/1030)
Discontinued - [**you can grab** USB WiFi (802.11b/g/n) Module: For Raspberry Pi and more **instead!&nbsp;**](https://www.adafruit.com/product/1012)

Make your Internet of Things device cable-free by adding super WiFi. Take advantage of the Raspberry Pi and Beagle...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/1030)
[Related Guides to the Product](https://learn.adafruit.com/products/1030/guides)
### Miniature WiFi (802.11b/g/n) Module: For Raspberry Pi and more

[Miniature WiFi (802.11b/g/n) Module: For Raspberry Pi and more](https://www.adafruit.com/product/814)
Make your Internet of Things device cable-free by adding WiFi. Take advantage of the Raspberry Pi and Beagle Bone's USB port to add a low cost, but high-reliability wireless link. We tried half a dozen modules to find one that works well with the Pi and Bone without the need of recompiling...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/814)
[Related Guides to the Product](https://learn.adafruit.com/products/814/guides)
### Programming the Raspberry Pi: Getting Started with Python

[Programming the Raspberry Pi: Getting Started with Python](https://www.adafruit.com/product/1089)
 **Program your own Raspberry Pi projects!**

An updated guide to programming your own Raspberry Pi projects. Learn to create inventive programs and fun games on your powerful Raspberry Pi--with no programming experience required. **This practical book has been revised...**

In Stock
[Buy Now](https://www.adafruit.com/product/1089)
[Related Guides to the Product](https://learn.adafruit.com/products/1089/guides)
### Ethernet Cable - 3 ft long

[Ethernet Cable - 3 ft long](https://www.adafruit.com/product/995)
We have so many Internet-connected goodies in the shop, we figured it's time to carry a cable so you can easily connect them up! This cable is 3 feet long, comes in Adafruit black and has all 8 wires installed. Perfect for use with the <a...></a...>

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/995)
[Related Guides to the Product](https://learn.adafruit.com/products/995/guides)
### USB 2.0 Powered Hub - 7 Ports with 5V 2A Power Supply

[USB 2.0 Powered Hub - 7 Ports with 5V 2A Power Supply](https://www.adafruit.com/product/961)
Add lots more USB capability to your Raspberry Pi or computer using this powered USB 2.0 hub. It adds a full **seven powered ports** , all at USB 2.0 speeds so you can use video cameras and other high speed devices (cheaper hubs are v1.1 and not as fast!)  
  
The extra sauce...

No Longer Stocked
[Buy Now](https://www.adafruit.com/product/961)
[Related Guides to the Product](https://learn.adafruit.com/products/961/guides)

## Related Guides

- [Introducing the Raspberry Pi Zero](https://learn.adafruit.com/introducing-the-raspberry-pi-zero.md)
- [Cloud Cam: Internet-Connected Security Camera](https://learn.adafruit.com/cloud-cam-connected-raspberry-pi-security-camera.md)
- [Resizing the Raspberry Pi Boot Partition](https://learn.adafruit.com/resizing-raspberry-pi-boot-partition.md)
- [Raspberry Pi as an Ad Blocking Access Point](https://learn.adafruit.com/raspberry-pi-as-an-ad-blocking-access-point.md)
- [Web Enabled PIXEL on Raspberry Pi](https://learn.adafruit.com/web-enabled-pixel-on-raspberry-pi.md)
- [Adafruit Raspberry Pi Educational Linux Distro](https://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro.md)
- [Arm-based IoT Kit for Cloud IoT Core - Getting Started](https://learn.adafruit.com/raspberry-pi-3-and-sensor-kit-for-google-cloud-iot-core.md)
- [Adafruit's Raspberry Pi Lesson 10. Stepper Motors](https://learn.adafruit.com/adafruits-raspberry-pi-lesson-10-stepper-motors.md)
- [A Sillier Mousetrap: Logging Mouse Data to Adafruit IO with the Raspberry Pi](https://learn.adafruit.com/a-sillier-mousetrap-logging-mouse-data-to-adafruit-io-with-the-raspberry-pi.md)
- [Cupcade: the Raspberry Pi Micro Arcade Cabinet](https://learn.adafruit.com/cupcade-raspberry-pi-micro-mini-arcade-game-cabinet.md)
- [Adafruit 128x64 OLED Bonnet for Raspberry Pi](https://learn.adafruit.com/adafruit-128x64-oled-bonnet-for-raspberry-pi.md)
- [Controlling Motors using the Raspberry Pi and RasPiRobot Board V2](https://learn.adafruit.com/controlling-motors-using-the-raspberry-pi-and-raspirobot-board-v2.md)
- [Adafruit PiTFT 3.5" Touch Screen for Raspberry Pi](https://learn.adafruit.com/adafruit-pitft-3-dot-5-touch-screen-for-raspberry-pi.md)
- [Processing on the Raspberry Pi & PiTFT](https://learn.adafruit.com/processing-on-the-raspberry-pi-and-pitft.md)
- [Large Pi-based Thermometer and Clock](https://learn.adafruit.com/large-pi-based-thermometer-and-clock.md)