1 |
On 11/13/2012 12:15:35 PM, Helmut Jarausch wrote: |
2 |
> On 11/13/2012 11:53:49 AM, Neil Bothwick wrote: |
3 |
>> On Tue, 13 Nov 2012 11:39:40 +0100, Helmut Jarausch wrote: |
4 |
>> |
5 |
>> > I'd like to assign fixed IP numbers to computers of a local |
6 |
>> network. |
7 |
>> |
8 |
>> I prefer to do this on the DHCP server, that way all my network |
9 |
>> configuration is in one place and if I move a computer to a different |
10 |
>> network it will still work as DHCP is enabled. Most DHCP servers let |
11 |
>> you |
12 |
>> map MAC addresses to IP addresses. |
13 |
>> |
14 |
>> > config_wlan0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255" |
15 |
>> > routes_wlan0="default via 192.168.1.1" |
16 |
>> > dns_servers_wlan0="192.168.1." |
17 |
> |
18 |
> Yes, that's a typo of course |
19 |
> It should read dns_servers_wlan0="192.168.1.1" |
20 |
> |
21 |
> I've written this from memory since I don't have access to that |
22 |
> machine |
23 |
> at the moment. |
24 |
> |
25 |
>> |
26 |
>> That last line is wrong, is the network not working at all or is it |
27 |
>> just |
28 |
>> DNS resolution that is failing? |
29 |
> |
30 |
> It says something like "network not ready", but I'll check this |
31 |
> afternoon. |
32 |
> I remember that ifconfig wlan0 did show the right IP. |
33 |
> |
34 |
|
35 |
Now, from the machine in question, |
36 |
I get |
37 |
connect: Network is unreachable |
38 |
|
39 |
/var/log/messages shows |
40 |
|
41 |
Nov 13 14:54:34 localhost kernel: wlan0: authenticate with |
42 |
00:1d:6a:83:9f:75 |
43 |
Nov 13 14:54:34 localhost kernel: wlan0: send auth to 00:1d:6a:83:9f:75 |
44 |
(try 1/3) |
45 |
Nov 13 14:54:34 localhost kernel: wlan0: authenticated |
46 |
Nov 13 14:54:34 localhost kernel: wlan0: associate with |
47 |
00:1d:6a:83:9f:75 (try 1/3) |
48 |
Nov 13 14:54:34 localhost kernel: wlan0: RX AssocResp from |
49 |
00:1d:6a:83:9f:75 (capab=0x431 status=0 aid=1) |
50 |
Nov 13 14:54:34 localhost kernel: wlan0: associated |
51 |
Nov 13 14:54:34 localhost kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link |
52 |
becomes ready |
53 |
Nov 13 14:54:34 localhost wpa_cli: interface wlan0 CONNECTED |
54 |
Nov 13 14:54:35 localhost /etc/init.d/net.wlan0[3605]: ERROR: net.wlan0 |
55 |
failed to start |
56 |
Nov 13 14:54:35 localhost wpa_cli: executing '/etc/init.d/net.wlan0 |
57 |
--quiet start' failed |
58 |
|
59 |
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
60 |
This is the reason |
61 |
|
62 |
But where is wpa_cli started, when I have |
63 |
config_wlan0="dhcp" instead of |
64 |
config_wlan0="192.168.1.33 netmsk 255.255.255.0 broadcast 192.168.1.255" |
65 |
|
66 |
Sometimes, openrc is hard. I even don't know where to start searching. |
67 |
|
68 |
Many thanks for a hint, |
69 |
Helmut. |