Raspberry Wifi Static Ip Config

This image shows my raspberry pi with attached an usb wireless lan adapter.

As title says, here i store how i managed to get a fixed ip address on the wireless lan network interface from shell or command line.
It’s very easy and usefull in a number of situations. For example this makes part of another my projects about remoting audio of my laptop using air-whatever and the raspberry as server, but i will describe this soon, in my next posts.

Raspberry Wifi Static Ip Config

Ingredients:

Put all together

If you carefully read my cited articles you will do the last step, described here, in order to get a static fixed ip address on the wireless network iterface of your raspberry from shell.

  • Open the file /etc/network/interfaces issuing
    sudo nano /etc/network/interfaces
  • Modify the wlan0 part, the line wich states iface wlan0 inet dhcp so you get:
    iface wlan0 inet static
            address 192.168.0.2
            netmask 255.255.255.0
            network 192.168.0.0
            broadcast 192.168.0.255
            gateway 192.168.0.1

Now you have just to reboot and then, once your raspberry comes back, just type ifconfig wlan0 And see if you card has actually the Ip Address you expected.

If you have problems or if you think i have, please, leave a comment.
Ciao! 

Incoming search terms:

  • raspberry pi wifi static ip (23)
  • raspbmc wifi static ip (23)
  • raspberry pi (19)
  • raspberry static ip (17)
  • raspbmc static ip (14)
(Visited 6,962 times, 1 visits today)

Author: Giuseppe Urso

Giuseppe lives in Haarlem now with his shiny dog, Filippa In 1982 received his first home computer, a Commodore 64, followed by Datasette and a 1541 Floppy Disk Drive. In 1999 he installed his first Linux distro (LRH6). In 2006 he switched to Debian as favourite OS. Giuseppe Urso actively sustains the Free Software Fundation and his founder Richard Mattew Stallman, he speaks to people trying to convince them to join the fight now, and about how important is to use Free Software only. He has a job as Infra Specialist at Hippo Enterprise Java Cms an Open Source Enterprise class Content Management System, one of the coolest company ever, in Amsterdam. He's always ready to install Debian on other people computers for free.

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.