dari cli misal:
=============
root@mywisdom-Vostro1310:/home/mywisdom# service network-manager stop
root@mywisdom-Vostro1310:/home/mywisdom# ip link set eth1 down
root@mywisdom-Vostro1310:/home/mywisdom# iwconfig eth1 mode ad-hoc
===============
selanjutnya kita set nama essid kita:=============
root@mywisdom-Vostro1310:/home/mywisdom# service network-manager stop
root@mywisdom-Vostro1310:/home/mywisdom# ip link set eth1 down
root@mywisdom-Vostro1310:/home/mywisdom# iwconfig eth1 mode ad-hoc
===============
=======================
root@mywisdom-Vostro1310:/home/mywisdom# ifconfig eth1 up
misal kita kasih ip addr akses poin 192.168.1.1
========================
root@mywisdom-Vostro1310:/home/mywisdom# ip addr add 192.168.1.1/24 dev eth1
ok mari kita liat:
root@mywisdom-Vostro1310:/home/mywisdom# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1c:23:56:0b:10
inet addr:xxxxxxxxxxxxx Bcast:xxxxxxxxxxxx Mask:255.255.255.0
inet6 addr: xxxxxxxxxxxxxxxxx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7662 errors:0 dropped:0 overruns:0 frame:0
TX packets:7425 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6360429 (6.3 MB) TX bytes:1056156 (1.0 MB)
Interrupt:44 Base address:0xe000
eth1 Link encap:Ethernet HWaddr 00:1f:e1:46:96:61
inet addr:192.168.1.1 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: fe80::21f:e1ff:fe46:9661/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:3382
TX packets:0 errors:16 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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:720 (720.0 B) TX bytes:720 (720.0 B)
ok selanjutnya kita set password dengan menggunakan wpa:
misal kita kasih password: mywisdom123 buat password dengan wpa_passphrase
===========
root@mywisdom-Vostro1310:/home/mywisdom# wpa_passphrase mywisdom 1234567890
network={
ssid=”mywisdom”
#psk=”1234567890″
psk=c2d332723db9d5b52c9e269cd55cf029217ab9f14616dcbafcc76c6d55cbfab4
}
=================
===============
root@mywisdom-Vostro1310:/home/mywisdom# cat adhoc.conf
ap_scan=2
network={
ssid=”mywisdom”
mode=1
frequency=2412
proto=WPA
key_mgmt=WPA-NONE
pairwise=NONE
group=TKIP
#psk=”1234567890″
psk=c2d332723db9d5b52c9e269cd55cf029217ab9f14616dcbafcc76c6d55cbfab4
}
============
lalu jalankan dengan wpa supplicant:
=============================
root@mywisdom-Vostro1310:/home/mywisdom# wpa_supplicant -c adhoc.conf -ieth1 -Dwext
Trying to associate with SSID ‘mywisdom’
CTRL-EVENT-CONNECTED – Connection to 00:00:00:00:00:00 completed (auth) [id=-1 id_str=]
Associated with 6a:1f:41:13:25:0d
CTRL-EVENT-CONNECTED – Connection to 6a:1f:41:13:25:0d completed (reauth) [id=0 id_str=]
==============================
0 komentar:
Posting Komentar