«

»

ก.ย. 22

config wlan0 static ip

sudo nano /etc/network/interfaces

 

auto lo

iface lo inet loopback
iface eth0 inet dhcp

#allow-hotplug wlan0
iface wlan0 inet static
address 192.168.1.99
netmask 255.255.255.0
gateway 192.168.1.1

allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid=”xxxxxxxxxxx”
psk=”xxxxxxxxxx”
key_mgmt=WPA-PSK
}

 

 

 



  • %d bloggers like this: