1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
$ sudo vi /etc/network/interfaces auto lo iface lo inet loopback ## ethernet #iface eth0 inet dhcp iface eth0 inet static address 192.168.0.2 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 ## wireless allow-hotplug wlan0 auto wlan0 #iface wlan0 inet dhcp iface wlan0 inet static wireless-essid app address 192.168.0.3 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 wpa-ssid "MYWIFI" wpa-psk "password" #iface wlan0 inet manual #wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf #iface default inet dhcp |