On Tue, Nov 13, 2012 at 04:52:25PM +0100, Helmut Jarausch wrote: > >> > >> > I'd like to assign fixed IP numbers to computers of a local > >> map MAC addresses to IP addresses.
This is what your /etc/dhcp/dhcp.conf would look like on the router, or how it should be configured wherever DHCP is handed out: authoritative; ddns-update-style none; default-lease-time 1800; max-lease-time 1800; subnet 192.168.54.0 netmask 255.255.255.0 { range 192.168.54.10 192.168.54.50; option broadcast-address 192.168.54.255; option domain-name-servers 192.168.54.1; option routers 192.168.54.1; } subnet 192.168.100.0 netmask 255.255.255.0 { range 192.168.100.10 192.168.100.50; option broadcast-address 192.168.100.255; option domain-name-servers 192.168.100.1; option routers 192.168.100.1; } host server { hardware ethernet 00:d0:68:0b:87:66; fixed-address 192.168.100.3; } You of course need to adjust for your network(s). And I'd install dhcpcd and put it in the default runlevel. Then on the client you have /etc/conf.d/net like this: modules_wlan0="wpa_supplicant" wpa_supplicant_wlan0="-Dwext" config_wlan0="dhcp" if you're using wpa_supplicant (you mentioned wpa_cli). And your /etc/wpa_supplicant/wpa_supplicant.conf would look like: ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel #ap_scan=0 #update_config=1 network={ ssid="YourSSID" psk=your-secret-key scan_ssid=1 proto=WPA2 key_mgmt=WPA-PSK group=CCMP TKIP pairwise=CCMP TKIP priority=5 } If you just want to setup a static IP per machine, /etc/conf.d/net: config_wlan0="192.168.1.2/24" routes_wlan0="default via 192.168.1.1" Hope this helps. If it's too confusing, might mention where DHCP is handed out, and some more about your LAN. -- Happy Penguin Gymnastics >') 126 Fenco Drive ( \ Tupelo, MS 38801 ^^ ad...@happypenguingymnastics.com 662-321-7009 http://happypenguingymnastics.com/ FB: http://tiny.cc/HappyPenguinGymnastics Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting