Configuring static IP for wlan0 on Raspberry Pi

Recently I bought Raspberry Pi just for fun and some tests.

Today I bought a wireless adapter for it: ASUS USB-N10 (no needs to play with drivers or anything) and tried to configure the network. So after some docs reading and tries – this is working config (the network I used at this moment had WEP key, for WPA you must use other settings):

$ cat /etc/network/interfaces 
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
iface wlan0 inet static
	address 192.168.2.57
	netmask 255.255.0.0
	gateway 192.168.2.1
	dns-nameservers 8.8.8.8
	wireless-essid mynetid
	wireless-key s:keymustbehere