Presentation is loading. Please wait.

Presentation is loading. Please wait.

BBBK – WiFi, Ad-hoc network and Wireless access point

Similar presentations


Presentation on theme: "BBBK – WiFi, Ad-hoc network and Wireless access point"— Presentation transcript:

1 BBBK – WiFi, Ad-hoc network and Wireless access point
Vivek Subbarao, Rudra Dutta Last updated Spring 2016

2 Enabling WiFi on BBBK Prerequisite Plugin the wireless adapter Reboot
BBBK OS is the one that came pre-installed on Rev C An active connection to the internet is available till the wireless device is configured Through wired interface, or shared interface from laptop Plugin the wireless adapter Many will work without any further steps (show up in ifconfig output) Some may require downloading firmware Wireless device is TP-Link TL-WN722N requires additional firmware Download firmware and copy it to /lib/firmware Reboot Copyright Rudra Dutta, NCSU, Spring 2016

3 Enabling WiFi ifconfig –a apt-get install wireless-tools
Note down the name of the wireless network interface. In most cases it is wlanX, where X is a number, like wlan0, wlan1, wlan2 …. apt-get install wireless-tools wpa_passphrase <SSID> <password> <SSID> – Name of the network you want to connect to like “ncsu-guest”. <password> – Your network password. If there is none, leave it blank. Copyright Rudra Dutta, NCSU, Spring 2016

4 Enabling WiFi Output : Copy the pre-shared key value network={
ssid="mySSID" #pssk="password" psk=b8721a39d4e01b85a44c5ca932ce742f4a3da0bfb ff56da476cd1 } Copy the pre-shared key value Copyright Rudra Dutta, NCSU, Spring 2016

5 Enabling WiFi Open file /etc/network/interfaces
Use any available text editor like nano, vi, vim etc.. Add lines for your wireless network interface as shown below (assuming network is DHCP) Save the file auto wlan1 iface wlan1 inet dhcp wpa-ssid “SSID of your network” wpa-psk “cd9f22019cbc7ea3158c92eb9447abae5cc dc2d79e4d1ac6237d5d890” Copyright Rudra Dutta, NCSU, Spring 2016

6 Enabling WiFi Reboot the system
The wireless network interface should come up and acquire an IP address If not: ifup wlanX Copyright Rudra Dutta, NCSU, Spring 2016

7 Ad-Hoc network using BBBK
apt-get update apt-get install wireless-tools ifconfig –a Note down the name of the wireless interface ifconfig wlanX down iwconfig wlanX mode ad-hoc iwconfig wlanX essid <Name of the ad-hoc network> ifconfig wlanX netmask ifconfig wlanX up Copyright Rudra Dutta, NCSU, Spring 2016

8 Ad-Hoc Network Follow the previous steps on all the BBBKs that you want to be part of the ad-hoc network Give different IP addresses for different BBBKs In the same address space as given by the netmask The BBBKs should now be able to communicate with each other Copyright Rudra Dutta, NCSU, Spring 2016

9 BBBK as a WiFi Access Point
While keeping your internet connection active, execute: apt-get install hostapd apt-get install isc-dhcp-server Edit /etc/network/interfaces and configure the wireless interface as shown below auto wlanX iface wlanX inet static address network netmask broadcast /etc/init.d/networking restart Copyright Rudra Dutta, NCSU, Spring 2016

10 BBBK as a WiFi Access Point
Edit /etc/default/hostapd and set DAEMON_CONF="/etc/hostapd/hostapd.conf” Save and close the file Create and open /etc/hostapd/hostapd.conf and add the following lines interface=wlanX driver=nl80211 country_code=US ssid=<my_bbbk_ssid> channel=7 hw_mode=g wpa=2 wpa_passphrase=<my_network_password> wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP auth_algs=1 macaddr_acl=0 ignore_broadcast_ssid=0 eapol_key_index_workaround=0 Copyright Rudra Dutta, NCSU, Spring 2016

11 BBBK as a WiFi Access Point
To debug hostapd /etc/hostapd/hostapd.conf /etc/init.d/hostapd restart Edit /etc/dhcp/dhcpd.conf and add the below lines subnet netmask { range ; } Edit /etc/default/isc-dhcp-server to contain the name of your wireless interface as shown below INTERFACES="wlanX” /etc/init.d/isc-dhcp-server restart Reboot Copyright Rudra Dutta, NCSU, Spring 2016


Download ppt "BBBK – WiFi, Ad-hoc network and Wireless access point"

Similar presentations


Ads by Google