Setup USB Wireless dan ndiswrapper di Linux (konsole mode)
![]()
Linux yang saya gunakan Opensuse 10.3 kernel 2.6.22.5-31-default (default) dan usb wireless nya Dlink DWA-110. Karena tidak tersedianya driver untuk linux maka kita gunakan file driver untuk windows.
1. Install Driver USB Wireless
copy direktori driver windows ke folder dokumen
fz:/home/faiz/Documents/WinXP_2K_9X # ls
Dr71WU98.sys DR71WU.CAT Dr71WU.inf Dr71WU.sys
fz:/home/faiz/Documents/WinXP_2K_9X # ndiswrapper -i Dr71WU.inf
cek driver nya :
fz:/home/faiz # ndiswrapper -l
dr71wu : driver installed
copy file *.sys ke /etc/ndiswrapper/dr71wu/
fz:/home/faiz # cp -v *.sys /etc/ndiswrapper/dr71wu/
fz:/home/faiz # modprobe ndiswrapper
fz:/home/faiz # dmesg
…….
ndiswrapper version 1.47 loaded (smp=yes)
usb 2-1.4: reset full speed USB device using uhci_hcd and address 8
ndiswrapper: driver dr71wu (D-Link,12/21/2006, 1.02.00.0000) loaded
wlan0: ethernet device 00:21:91:80:38:0e using NDIS driver: dr71wu, version: 0×0, NDIS version: 0×500, vendor: ‘D-Link USB Wireless LAN Card’, 07D1:3C07.F.conf
wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
fz:/home/faiz # ifconfig
eth0     Link encap:Ethernet HWaddr 00:D0:59:BF:AE:C1
inet addr:192.168.0.1Â Bcast:255.255.255.255Â Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTÂ MTU:1500Â Metric:1
RX packets:4643 errors:0 dropped:0 overruns:0 frame:0
TX packets:4393 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4534861 (4.3 Mb)Â TX bytes:625649 (610.9 Kb)
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:79 errors:0 dropped:0 overruns:0 frame:0
TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5647 (5.5 Kb)Â TX bytes:5647 (5.5 Kb)
wlan0    Link encap:Ethernet HWaddr 00:21:91:80:38:0E
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)
2. Setting Wireless Device (wlan0)
Scan akses point yang tersedia
fz:/home/faiz # iwlist wlan0 scanning
wlan0Â Â Â Â Scan completed :
Cell 01 – Address: 00:1C:C5:08:8D:44
ESSID:”ihsan”
Protocol:IEEE 802.11g
Mode:Managed
Frequency:2.462 GHz (Channel 11)
Quality:53/100 Signal level:-62 dBm Noise level:-96 dBm
Encryption key:off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Extra:bcn_int=100
Extra:atim=0
untuk menyambungkan dengan akses point ESSID:”ihsan” ,ketik perintah :
fz:/home/faiz # iwconfig wlan0 essid ihsan
fz:/home/faiz # iwconfig
lo       no wireless extensions.
irda0Â Â Â Â no wireless extensions.
eth0Â Â Â Â Â no wireless extensions.
wlan0    IEEE 802.11g ESSID:”ihsan”
Mode:Managed Frequency:2.462 GHz Access Point: 00:1C:C5:08:8D:44
Bit Rate=54 Mb/s  Tx-Power:20 dBm  Sensitivity=-121 dBm
RTS thr=2347 BÂ Â Fragment thr=2346 B
Encryption key:off
Power Management:off
Link Quality:53/100 Signal level:-62 dBm Noise level:-96 dBm
Rx invalid nwid:0Â Rx invalid crypt:0Â Rx invalid frag:0
Tx excessive retries:0Â Invalid misc:0Â Â Missed beacon:0
Disable eth0 untuk meyakinkan rute yang dipakai wlan0
fz:/home/faiz # ifconfig eth0 down
fz:/home/faiz # ifconfig
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:73 errors:0 dropped:0 overruns:0 frame:0
TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5347 (5.2 Kb)Â TX bytes:5347 (5.2 Kb)
wlan0    Link encap:Ethernet HWaddr 00:21:91:80:38:0E
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)
set IP Address wlan0, sesuaikan dengan kondisi akses point anda.
Akses point : 10.0.0.2 netmask 255.255.255.248
fz:/home/faiz # ifconfig wlan0 10.0.0.3 netmask 255.255.255.248 up
fz:/home/faiz # ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=4.17 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=5.16 ms
64 bytes from 10.0.0.2: icmp_seq=3 ttl=64 time=4.00 ms
set default route:
fz:/home/faiz # route add default gw 10.0.0.2
3. Untuk akses point yang menggunakan enkripsi WAP-PSK
WAP-PSK
generate phrase key nya :
password akses point: ihsan123
essid : ihsan
fz:/home/faiz # wpa_passphrase ihsan ihsan123
network={
ssid=”ihsan”
#psk=”ihsan123″
psk=82e7eaddabd98aab3cbef2d73c2fab25b29ad4f80a6617475043793e8622df6c
}
lalu buat file /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
network={
ssid=”ihsan”
scan_ssid=1
priority=5
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=82e7eaddabd98aab3cbef2d73c2fab25b29ad4f80a6617475043793e8622df6c
}
untuk menghubungkan dengan akses point ketik perintah:
fz:/home/faiz # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -D wext
Trying to associate with 00:1c:c5:08:8d:44 (SSID=’ihsan’ freq=2462 MHz)
Associated with 00:1c:c5:08:8d:44
WPA: Key negotiation completed with 00:1c:c5:08:8d:44 [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED – Connection to 00:1c:c5:08:8d:44 completed (auth) [id=0 id_str=]
lalu buka konsole yang baru untuk menjalankan perintah lainnya.
Disable eth0 untuk meyakinkan rute yang dipakai wlan0
fz:/home/faiz # ifconfig eth0 down
fz:/home/faiz # ifconfig
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:73 errors:0 dropped:0 overruns:0 frame:0
TX packets:73 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5347 (5.2 Kb)Â TX bytes:5347 (5.2 Kb)
wlan0    Link encap:Ethernet HWaddr 00:21:91:80:38:0E
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)
fz:/home/faiz # ifconfig wlan0 10.0.0.3 netmask 255.255.255.248 up
fz:/home/faiz # ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2) 56(84) bytes of data.
64 bytes from 10.0.0.2: icmp_seq=1 ttl=64 time=15.1 ms
64 bytes from 10.0.0.2: icmp_seq=2 ttl=64 time=3.99 ms
)
fz:/home/faiz # iwconfig
lo       no wireless extensions.
irda0Â Â Â Â no wireless extensions.
eth0Â Â Â Â Â no wireless extensions.
wlan0    IEEE 802.11g ESSID:”ihsan”
Mode:Managed Frequency:2.462 GHz Access Point: 00:1C:C5:08:8D:44
Bit Rate=54 Mb/s  Tx-Power:20 dBm  Sensitivity=-121 dBm
RTS thr=2347 BÂ Â Fragment thr=2346 B
Encryption key:AA16-6227-E506-BA82-3539-50DB-6F86-F3A4Â Â Security mode:restricted
Power Management:off
Link Quality:59/100 Signal level:-58 dBm Noise level:-96 dBm
Rx invalid nwid:0Â Rx invalid crypt:0Â Rx invalid frag:0
Tx excessive retries:0Â Invalid misc:0Â Â Missed beacon:0
set default route:
fz:/home/faiz # route add default gw 10.0.0.2
Cara ini memungkinkan untuk USB Wireless tipe lainnya karena driver yang dipakai driver untuk windows, terima kasih untuk ndiswrapper.
Mohon maaf kalau ada yang kurang + keliru ya, maklum masih pemula
.
Semoga Bermanfaat.




mbohh mumet aku
Thankz bro,mga bmanfaat utk org bnyk,amin
kemaren saya sempet jatuh cinta sama linux!!
Mantap banget ni OS………
neng, ???? kok wirelessku ndak conect yo???
apa cara instalasi softwarenya ndak ado yang gampang boz!!?
soale saya ndak sama sekali tahu tentang
“
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
network={
ssid= ihsan 
scan_ssid=1
priority=5
proto=WPA
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk=82e7eaddabd98aab3cbef2d73c2fab25b29ad4f80a6617475043793e8622df6c
}”
tapi saya tetap cinta kok sama linux…
pokoknye pren bantuin kita yang masih newbie2 tentang linux yo??.
mumet…kalau ada rumusnya untuk jebol yg wpa/psk2 gak apa2x di taruh disini?mungkin bermanfaat….karna chipnya pakai wlan0 jadi blm bisa ketemu ni rumusnya…apalagi di tambah rumus itu…malah tambah mumet
Long Distance Router
These routers have changed the way i look at things the technology has moved so far.
Makasi ya.. usefull banget deh info nya