raspberry pi : setting ip wifi (TL-WN725N NANO USB ADAPTER) connect AP Wifi

11 Jul

raspberry pi : setting ip wifi (TL-WN725N NANO USB ADAPTER) connect AP Wifi

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sebelumnya :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:89:28:ca
inet addr:172.20.114.8  Bcast:172.20.255.255  Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:19382 errors:0 dropped:2145 overruns:0 frame:0
TX packets:1570 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2551791 (2.4 MiB)  TX bytes:177060 (172.9 KiB)

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:18 errors:0 dropped:0 overruns:0 frame:0
TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1613 (1.5 KiB)  TX bytes:1613 (1.5 KiB)

wlan0     Link encap:Ethernet  HWaddr f8:1a:67:2b:7c:89
UP BROADCAST MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
proses :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. periksa AP wifi yang ada.
pi@raspberrypi ~ $ sudo iwlist wlan0 scan | grep ESSID
ESSID:”TP-LINK_D3E554″
ESSID:”MikroTik”
ESSID:”NETGEAR”

2. edit interfaces.
pi@raspberrypi ~ $ sudo nano /etc/network/interfaces
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid “TP-LINK_D3E554”
wpa-psk  “12345678”
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

3. aktifkan.
pi@raspberrypi ~ $ sudo ifup wlan0
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/f8:1a:67:2b:7c:89
Sending on   LPF/wlan0/f8:1a:67:2b:7c:89
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.1.1
DHCPACK from 192.168.1.1
bound to 192.168.1.101 — renewal in 2742 seconds.

4. reboot, apakah setiap aktif langsung terhubung wifi.
pi@raspberrypi ~ $ sudo reboot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sesudahnya :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pi@raspberrypi ~ $ ifconfig
eth0      Link encap:Ethernet  HWaddr b8:27:eb:89:28:ca
inet addr:172.20.114.8  Bcast:172.20.255.255  Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:30744 errors:0 dropped:6646 overruns:0 frame:0
TX packets:591 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2623919 (2.5 MiB)  TX bytes:73473 (71.7 KiB)

lo        Link encap:Local Loopback
inet addr:127.0.0.1  Mask:255.0.0.0
UP LOOPBACK RUNNING  MTU:16436  Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:881 (881.0 B)  TX bytes:881 (881.0 B)

wlan0     Link encap:Ethernet  HWaddr f8:1a:67:2b:7c:89
inet addr:192.168.1.101  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:91 errors:0 dropped:565 overruns:0 frame:0
TX packets:82 errors:0 dropped:5 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15329 (14.9 KiB)  TX bytes:13349 (13.0 KiB)

Allah itu bagi kita tempat perlindungan dan kekuatan, sebagai penolong dalam kesesakan sangat terbukti. Sebab itu kita tidak akan takut, sekalipun bumi berubah, sekalipun gunung-gunung goncang di dalam laut; sekalipun ribut dan berbuih airnya, sekalipun gunung-gunung goyang oleh geloranya. Sela? (Mazmur 46:1-3)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: