LaFonera Software AP-mode

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:56, 10 August 2007 (edit)
K0k0 (Talk | contribs)
(3.5 LAN > get local IP from DHCP)
← Previous diff
Revision as of 19:45, 10 August 2007 (edit) (undo)
Wildblue (Talk | contribs)
m (reworked category support)
Next diff →
Line 3: Line 3:
[[Category:LaFonera_Software]] [[Category:LaFonera_Software]]
[[Category:LaFonera_Software_(en)]] [[Category:LaFonera_Software_(en)]]
-You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[LaFonera|LaFonera]] / [[LaFonera_Software|Software]] / AP-Mode'''+You are here: '''[[Main_Page|DD-WRT wiki mainpage]] / [[LaFonera|LaFonera]] / [[LaFonera_Software_(en)|Software]] / AP-Mode'''

Revision as of 19:45, 10 August 2007

You are here: DD-WRT wiki mainpage / LaFonera / Software / AP-Mode


Contents

AP Mode

AP Mode can be used to extend your existing wired network to wifi. In this mode, RJ45 port is used to connect La Fonera to your wired network and wireless interface set to AP. If you connect to La Fonera radio, you will be connected directly to the wired network (i.e. same subnet). If DHCP server exists in your network, you will get IP from this DHCP.

In this mode, La Fonera doesn't provide NAT, so you can view network neighbourhood in Windows networking or set up FTP server on PC connected to wifi, that can be accessible from LAN without port forwarding.


Requirements

The following instructions assume you are using the following:

1. A La Fonera using DD-WRT firmware 03/23 revision (tested). Most later revisions should work, but none have been tested for this guide.

2. The La Fonera must be connected to LAN with it's RJ45 port.


La Fonera settings

Start from default settings (Admin > Factory Defaults > Yes > Save, or hold reset button for ~ 30 secs). All settings other than those mentioned can be assumed to be at default. Changing many of them should not affect the guide.


Setup > Basic Setup > WAN setup

WAN Connection Type > Connection Type : Disabled

Optional Settings: Anything you like.


Network Setup > Router IP

Local IP Address :

Subnet Mask :

Gateway :

Local DNS :


In this section you have to fill IP addresses according to your LAN settings as every other PC on your LAN. (La Fonera will be accessible on this IP).

At this moment is not possible to setup La Fonera to get IP from LAN DHCP server. (see todo section)

Select unused IP address to avoid IP collision in your network.


Network Address Server Settings (DHCP)


DHCP Type : DHCP Server

DHCP Server : Disable


Wireless > Basic Settings

Wireless Mode: AP

Network Configuration: Bridged.

Other settings can be entered according your needs.

Wireless > Security

If you want secure your wifi connection, set it here as you need.

Security > Firewall Protection

SPI Firewall: Disable

Connection

Now you can connect to wireless network (SSID of your choice).

If DHCP server exists in your network, you should get IP address, otherwise setup your wireless card's TCPIP properities according to your wired LAN settings.


3.5 LAN > get local IP from DHCP

It is possible to set La Fonera to obtain it's local IP address from DHCP on your network, but not from web interface.

First you have to add a script to your La Fonera. This script is originaly shipped with udhcp, the dhcp client used in DD-WRT. But this script was removed due to space issue.

This script is called simple.script in the udhcp distribution. Udhcp official site is : http://udhcp.busybox.net/

This script can be added to the dd-wrt filesystem using the startup commands.

wget http://YourOwnWebserver.com/ddwrt/udhcpc.script -O /tmp/udhcpc.script
chmod 755 /tmp/udhcpc.script

udhcpc -i br0:0 -p /var/run/udhcpc.pid -s /tmp/udhcpc.script -H YourWAPName

With those commands, your La Fonera keep the IP you configured for your local network and pull a second IP from the DHCP server. Both IP can be used to connect to your La Fonera