View previous topic :: View next topic |
Author |
Message |
xtsephane68 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 May 2006 Posts: 14
|
Posted: Mon May 08, 2006 3:23 am Post subject: Bug in net tools SOLVED |
|
|
IF you ESSID contains a non ascii Char replace it with _
.
IE whatthefuck-sillymodem give key_whatthefuck_sillymodem
Otherwise the net script will fail to parse your wireless config file
The scripts are bugged when your ESSID contains a non asci char mine
is fiak-7229 and the script always returs an error,
the issue of keys with space is adressed but not the one of ESSID with non aalpha char.
Probably the script writer parsed some stuff like key[alpha]+\s+ ..
I tried to protect my key with stuff like key_"fiak-7229"
and with ' no way.
Finally i did it by hand ..
iwconfig eth0 essid fiak-98F887 key MYSUPERSECRETKEY
ifconfig eth0 192.168.1.103 netmask 255.255.255.0 broadcast 192.168.1.255
route add default gw 192.168.1.1
Last edited by xtsephane68 on Mon May 08, 2006 11:26 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
magic919 Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 17 Jun 2005 Posts: 2182 Location: Berkshire, UK
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xtsephane68 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 04 May 2006 Posts: 14
|
Posted: Mon May 08, 2006 11:23 pm Post subject: |
|
|
Thanks it works ...
mode_eth0="managed"
adhoc_essid_eth0="fiak-98F887"
key_fiak_98F887="Mysecretkey enc open"
# iwlist eth0 scan
eth0 Scan completed :
Cell 01 - Address: 00:03:C9:92:52:BA
ESSID:"fiak-98F887"
Protocol:IEEE 802.11bg
Mode:Master
Channel:1
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=94/100 Signal level=-33 dBm
Extra: Last beacon: 5376ms ago
root@freakinggentoohost : etc/init.d/net.eth0 restart
* Stopping eth0
* Bringing down eth0
* Shutting down eth0 ... [ ok ]
* Starting eth0
* Configuring wireless network for eth0
* eth0 connected to "fiak-98F887" at 00:03:C9:92:52:BA
* in managed mode (WEP enabled - open)
* Bringing up eth0
* 192.168.1.103 [ ok ]
* Adding routes
* default gw 192.168.1.1 ...
Destination Passerelle Genmask Indic Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
03:20:04 root@ # ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.37
--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|