element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Raspberry Pi as an Access Point.
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 29 replies
  • Subscribers 665 subscribers
  • Views 4023 views
  • Users 0 members are here
  • access
  • raspberry
  • current
  • in
  • act
  • to
  • as
  • are
  • a;
  • these
  • my;
  • like
  • wireless
  • the;
  • point.;
  • settings
  • ;/etc/network/interfaces:
  • would
  • i
  • pi;
Related

Raspberry Pi as an Access Point.

wallarug
wallarug over 12 years ago

I would like my Raspberry Pi to act as a wireless access point.  These are the current settings in /etc/network/interfaces:

 

auto lo

 

 

iface lo inet loopback

iface eth0 inet dhcp

 

 

allow-hotplug wlan0

 

 

iface wlan0 inet static

        wireless-essid "wireless"

        wireless-mode ad-hoc

        wireless-channel auto

        address 192.168.12.1

        netmask 255.255.255.0

        gateway 192.168.12.2

#wpa-psk "robotics"

 

 

Any ideas how I can turn this into a dhcp server that can give out IP addresses?  I really am getting tired of changing to manual ever time on PC.

 

Any help will be apreciated.

  • Sign in to reply
  • Cancel
  • recantha
    recantha over 12 years ago

    Hi.

    Take a look at:

    https://github.com/recantha/redwing-pi

     

    Under 'access_point' there are some scripts and config files which should help you to set this up, or at least work out what you're doing wrong.

    The scripts work for me on my Pi.

     

    Any problems/questions, please let me know. This will be the first time I've really publicised these scripts which are just a collection of set-up and config utilities that I use.

     

    --

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to recantha

    Will look at later.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • recantha
    recantha over 12 years ago in reply to wallarug

    Did you have any luck getting this to work?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to recantha

    Nope.  I will have to experiment with this tonight and see what I can get to work.  Right now, I think I need to re-image my SD card, I cannot use the device without the Wireless dongle plugged in (this is a problem). 

     

    If anyone has any advice for setting this up, it would be appreciated.

     

    EDIT:  I remeber attempting to get this to work.  It was very compliated and I couldn't get it to work.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to recantha

    Michael Horne wrote:

     

    Did you have any luck getting this to work?

    This link might help:

     

    http://www.recantha.co.uk/blog/?p=317

     

    Should do all the hard work for me! image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to recantha

    I have spent the last 5 hours working on this.  The file hostpda.conf only has support for a small number of drivers.  If someone could tell me how to get the 'rt2800usb' driver register, it would be much appreciated.

     

    Thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago in reply to recantha

    HELP!!!!!

     

     

    I have it broadcasting but the device is not give out IP addresses?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wallarug
    wallarug over 12 years ago

    Hello,

     

    I have successfully got the Raspberry Pi working as an access point but I have a few questions about different setups.

     

    http://sirlagz.net/2012/08/09/how-to-use-the-raspberry-pi-as-a-wireless-access-pointrouter-part-1/

     

    I used the link above which worked out nicely.

     

    Part One seems to do the trick for me...

    A. Raspberry Pi can be accessed through AP

    B. AP gives out IP addresses

    C. Devices can communicate between each other through AP (I tested between two windows machines Remote Desktoping into one of them)

     

    Part Two:

    If you want a wifi router, ignore Part 2, and go from this part straight to Part 3

    QuickLinks:

    I believe that this is if you DO NOT want to access the raspberry pi but attach it to a network. (PLEASE correct me if I am wrong)

     

    Part Three:

    How to make your RPi into a Router

    Now this is the bit that confuses me...

    If I can do everything that I listed above in Part One, doesn't that already mean I am routing data?

     

    Could someone please explain the benefit of Part three to me so I can decide if I need to follow the steps involved to improve my setup.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago in reply to wallarug

    Hi,

     

    Part 3 is if you want to use the Pi to route network traffic from one network onto a Wireless network hosted on the Pi.

     

    e.g. Network 1 (10.0.0.0/24) -> Raspberry Pi -> Wifi -> Network 2 (10.0.1.0/24)

     

    Part 2 is if you want to use the Pi to extend the network

     

    e.g. Network 1 (10.0.0.0/24) -> Raspberry PI -> Wifi -> Network 1 (10.0.0.0/24)

    There is no routing involved when packets go from ethernet to wifi.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 12 years ago

    If you're still stuck, there's actually an image someone put together called Pi-Point

     

    http://www.raspberrypi.org/archives/2929

     

    It allegedly does excatly what you're trying to do.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube