Am 13.11.2012 17:27, schrieb Bruce Hill: > 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. > [...] > > 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.
The following is taken directly from my /etc/conf.d/net with minimal editing. It assigns configs based on SSIDs. If I'm not mistaken (haven't tested it in a long time) this means it will default to DHCP for unspecified nets. Good for quick and dirty setups while traveling: modules_wlan0="wpa_supplicant" config_MySSID="192.168.2.5 netmask 255.255.255.0" routes_MySSID="default via 192.168.2.1" dns_servers_MySSID="192.168.6.1" dns_domain_MySSID="example.net" config_SomeHotelSSID="dhcp" config_HotelWithVPN="dhcp" dhcp_HotelWithVPN="nodns" dns_servers_HotelWithVPN="192.168.6.1" # DNS server via VPN dns_domain_HotelWithVPN="vpn.example.net" Hope this helps, Florian Philipp
signature.asc
Description: OpenPGP digital signature

