On 11/13/2012 12:15:35 PM, Helmut Jarausch wrote:
On 11/13/2012 11:53:49 AM, Neil Bothwick wrote:
On Tue, 13 Nov 2012 11:39:40 +0100, Helmut Jarausch wrote:

> I'd like to assign fixed IP numbers to computers of a local network.

I prefer to do this on the DHCP server, that way all my network
configuration is in one place and if I move a computer to a different
network it will still work as DHCP is enabled. Most DHCP servers let you
map MAC addresses to IP addresses.

> config_wlan0="192.168.1.2 netmask 255.255.255.0 brd 192.168.1.255"
> routes_wlan0="default via 192.168.1.1"
> dns_servers_wlan0="192.168.1."

Yes, that's a typo of course
It should read  dns_servers_wlan0="192.168.1.1"

I've written this from memory since I don't have access to that machine
at the moment.


That last line is wrong, is the network not working at all or is it just
DNS resolution that is failing?

It says something like "network not ready", but I'll check this afternoon.
I remember that ifconfig wlan0 did show the right IP.


Now, from the machine in question,
I get
connect: Network is unreachable

/var/log/messages shows

Nov 13 14:54:34 localhost kernel: wlan0: authenticate with 00:1d:6a:83:9f:75 Nov 13 14:54:34 localhost kernel: wlan0: send auth to 00:1d:6a:83:9f:75 (try 1/3)
Nov 13 14:54:34 localhost kernel: wlan0: authenticated
Nov 13 14:54:34 localhost kernel: wlan0: associate with 00:1d:6a:83:9f:75 (try 1/3) Nov 13 14:54:34 localhost kernel: wlan0: RX AssocResp from 00:1d:6a:83:9f:75 (capab=0x431 status=0 aid=1)
Nov 13 14:54:34 localhost kernel: wlan0: associated
Nov 13 14:54:34 localhost kernel: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Nov 13 14:54:34 localhost wpa_cli: interface wlan0 CONNECTED
Nov 13 14:54:35 localhost /etc/init.d/net.wlan0[3605]: ERROR: net.wlan0 failed to start Nov 13 14:54:35 localhost wpa_cli: executing '/etc/init.d/net.wlan0 --quiet start' failed ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                          This is the reason

But where is wpa_cli started, when I have
config_wlan0="dhcp"    instead of
config_wlan0="192.168.1.33 netmsk 255.255.255.0 broadcast 192.168.1.255"

Sometimes, openrc is hard. I even don't know where to start searching.

Many thanks for a hint,
Helmut.

Reply via email to