Hi,
Quote:
Originally Posted by MTK358
I still don't get it, after removing the <<< and everything after it, should I change anything?
|
As root you can use the below to configure a static IP for your LAN;
Code:
~#ifconfig ra0 192.168.1.18 #<<< available IP
~#route add default gw 192.168.1.1
~#iwlist ra0 scan #<< use information to fill in for essid & ap
~#iwconfig ra0 essid "Your Wireless"
~#iwconfig ra0 key your_key_here
~#iwconfig ra0 ap xx:xx:xx:xx:xx:xx #<<Your _ap_from iwlist
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Line1 you will need to supply the IP address for the LAN (192.168.1.18 is an example)
Line2 setting up the kernel route table for the ra0 device (192.168.1.1 example gateway)
Line3 this will provide information for accessible wireless
Line4 setup ra0 for your wireless access point
Line5 provide your key if encryption is used
Line6 configure the ap address for ra0
Please notice the '#' before the <, this will just be a comment and not performed as command but displayed.You will still need to supply information for the lines unique to your LAN.
You should 'man command' for all the above to gain understanding. For example 'man ifconfig' would provide you information to understand that command along with options.
Now As root you can use the below to configure a static IP;
Code:
~#ifconfig ra0 192.168.1.18
~#route add default gw 192.168.1.1
~#iwlist ra0 scan
Then from;
Code:
~# iwlist wlan0 scan
wlan0 Scan completed :
Cell 01 - Address: 00:0F:99:d1:00:07
ESSID:"linksys"
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=90/100 Signal level:-44 dBm Noise level=-70 dBm
Encryption key:on
IE: Unknown:
<snip my security>
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
24 Mb/s; 36 Mb/s; 54 Mb/s; 6 Mb/s; 9 Mb/s
12 Mb/s; 48 Mb/s
Extra:tsf=<snip>
Extra: Last beacon: 7ms ago
Extract information from the above output of 'iwlist wlan0 scan' I show ' ESSID:"linksys" ' & 'Address: 00:0F:99:d1:00:07'. I use that information as an example in the following be sure change all for your LAN;
Code:
~#iwconfig ra0 essid "linksys"
~#iwconfig ra0 key your_key_here
~#iwconfig ra0 ap 00:0F:99:d1:00:07
It is not that difficult and I hope you see how the information is obtained to supply to the commands that I illustrated. Just remember there is information that only YOU can provide; IP, gateway, essid, Your_key, ap address.
You should read some of the reference links that were provided in earlier posts. It will help you to understand and aid you in providing information to anyone else that may aid you in the future.
