1 |
/etc/conf.d/net settings |
2 |
#Wireless with WPA_SUPPLICANT |
3 |
modules=("wpa_supplicant") |
4 |
wpa_supplicant_eth1=("-Dwext") |
5 |
config_eth1=("192.168.2.119 netmask 255.255.255.0") |
6 |
routes_eth1=("default via 192.168.2.1") |
7 |
#dns_servers_eth1=("192.168.2.1") |
8 |
|
9 |
/etc/wpa_supplicant/wpa_supplicant.conf settings |
10 |
ctrl_interface=/var/run/wpa_supplicant |
11 |
ctrl_interface_group=0 |
12 |
ap_scan=1 |
13 |
network={ |
14 |
ssid="TP-LINK" |
15 |
key_mgmt=NONE |
16 |
wep_key0="XXXXXXXXXXX" |
17 |
# wep_key1="1234567890123" |
18 |
# wep_key2="1234567890123" |
19 |
wep_tx_keyidx=0 |
20 |
priority=5 |
21 |
# auth_alg=SHARED |
22 |
} |
23 |
|
24 |
wireless net card eth1 start normaly |
25 |
smiler tom # /etc/init.d/net.eth1 restart |
26 |
* Caching service dependencies ... [ ok ] |
27 |
* Stopping eth1 |
28 |
* Bringing down eth1 |
29 |
* Shutting down eth1 ... [ ok ] |
30 |
* Stopping wpa_cli on eth1 ... [ ok ] |
31 |
* Stopping wpa_supplicant on eth1 ... [ ok ] |
32 |
* Starting eth1 |
33 |
* Starting wpa_supplicant on eth1 ... [ ok ] |
34 |
* Starting wpa_cli on eth1 ... [ ok ] |
35 |
* Backgrounding ... |
36 |
|
37 |
connetion status in the router is conneted |
38 |
|
39 |
smiler tom # route |
40 |
Kernel IP routing table |
41 |
Destination Gateway Genmask Flags Metric Ref Use Iface |
42 |
192.168.2.0 * 255.255.255.0 U 0 0 0 eth1 |
43 |
loopback * 255.0.0.0 U 0 0 0 lo |
44 |
default 192.168.2.1 0.0.0.0 UG 2000 0 0 eth1 |
45 |
|
46 |
but ping command result |
47 |
smiler tom # ping 192.168.2.1 |
48 |
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data. |
49 |
From 192.168.2.119 icmp_seq=3 Destination Host Unreachable |
50 |
From 192.168.2.119 icmp_seq=4 Destination Host Unreachable |
51 |
From 192.168.2.119 icmp_seq=7 Destination Host Unreachable |
52 |
|
53 |
whats wrong? |
54 |
thx |
55 |
|
56 |
-- |
57 |
Best regards, |
58 |
Sincerely, |
59 |
Tom |
60 |
|
61 |
One for all, all for one |
62 |
|
63 |
--------------------------------------------------------- |
64 |
,= ,-_-. =. GnuPG Key: 0x3C066597 |
65 |
((_/)o o(\_)) Key Server: pgp.mit.edu |
66 |
`-'(. .)`-' IM: gTalk: tommy.fang at gmail dot com |
67 |
\_/ MSN: tommy.fang at hotmail dot com |
68 |
--------------------------------------------------------- |