close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Changes between Version 1 and Version 2 of Proto/cModules/a0ClickRouter/c0Configurations


Ignore:
Timestamp:
Nov 29, 2014, 12:35:03 AM (9 years ago)
Author:
seskar
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Proto/cModules/a0ClickRouter/c0Configurations

    v1 v2  
    9393}}}
    9494The file receiver is a simple sink that stores the received data as a file (random generated name) in a designated folder. Note that the router GUID of the receiver should be the GUID used as destination parameter when starting the sender.
     95
     96== 6. Setting up WiFi Access on Router ==
     97
     98The following instructions assume a Debian derivative Linux distro.
     99{{{
     100# Install required packages
     101# -------------------------
     102
     103sudo apt-get -qq -y install hostapd dnsmasq
     104
     105
     106# Bring up driver for the local wifi adaptor
     107# ------------------------------------------
     108
     109# If the wifi interface is not up already, you can use tools such as 'lspci'
     110# or 'lsusb' to find which wifi adaptor is installed and load the appropriate
     111# driver. E.g., for all Atheros IEEE 802.11n PCI/PCI-Express and AHB WLAN based
     112# chipsets use the 'ath9k' driver.
     113sudo modprobe ath9k
     114
     115# To determine which interface came up from above driver action, check using
     116sudo ifconfig -a
     117
     118# Note: if your node uses NetworkManager to manage an active Internet connection
     119# (e.g., if you are using a laptop to run as an access router), you may have to
     120# disable this daemon first and activate the device if blocked:
     121sudo nmcli nm wifi off
     122sudo rfkill unblock wlan
     123
     124
     125# Configure interface
     126# -------------------
     127
     128# bring up WiFi interface with IP and netmask. This will be the AP's IP.
     129sudo ifconfig wlan0 192.168.1.1 netmask 255.255.255.0 up
     130
     131
     132# Set up DHCP (optional)
     133# ----------------------
     134
     135# Edit DHCP configuration in /etc/dnsmasq.conf to alter interface, IP range,
     136# and to add any particular MAC-IP assignment bindings to be enforced
     137# See sample configuration in section below.
     138sudo vi /etc/dnsmasq.conf
     139
     140# restart DHCP service:
     141sudo service dnsmasq restart
     142
     143
     144# Configure and Bringup hostapd
     145# -----------------------------
     146
     147# Create/edit a hostapd.conf (sample shown below) to configure interface, essid,
     148# channel, passphrase etc., for the AP. Using '/etc/hostapd/hostapd.conf' as
     149# the location makes it convenient for automation
     150sudo vi /etc/hostapd/hostapd.conf
     151
     152# To automate initialization, edit '/etc/default/hostapd' to uncomment and set
     153# DAEMON_CONF to the absolute path of your hostapd configuration file. This also
     154# enables hostapd to be started at boot.
     155sudo vi /etc/default/hostapd
     156
     157#DAEMON_CONF="/etc/hostapd/hostapd.conf"
     158
     159# To start, stop, restart hostapd:
     160sudo /etc/init.d/hostapd {start|stop|restart}
     161
     162# or use 'service' tool
     163sudo service hostapd {start|stop|restart}
     164
     165# Here's the manual way to bring up hostapd if needed (-B sets background mode):
     166sudo hostapd -BtKd /etc/hostapd/hostapd.conf
     167}}}
     168
     169=== Sample hostapd Configuration ===
     170{{{
     171interface=wlan0
     172driver=nl80211
     173ssid=mfaccess-test
     174# hw_mode: always a subset of a, b, g
     175hw_mode=g
     176channel=11
     177macaddr_acl=0
     178auth_algs=1
     179ignore_broadcast_ssid=0
     180# wpa=3 enables wpa & wpa2
     181wpa=3
     182wpa_passphrase=mfaccess-test
     183wpa_key_mgmt=WPA-PSK
     184wpa_pairwise=TKIP
     185rsn_pairwise=CCMP
     186}}}
     187
     188Refer to the [http://wireless.kernel.org/en/users/Documentation/hostapd hostapd documentation] for further details.
     189=== Sample Dnsmasq Configuration ===
     190{{{
     191interface=wlan0
     192# dhcp-range=<startIP>, <endIP>,<lease time>
     193dhcp-range=192.168.1.128,192.168.1.254,24h
     194dhcp-host=aa:22:bb:44:cc:66,192.168.1.128
     195}}}
     196=== Bringing up Access Router ===
     197Now that the wireless interface is setup for clients to connect and authenticate, bring up MobilityFirst access router as show in router configurations page