HOW SET IP OF WLAN INTERFACE UBUNTU 14.04
- First goto path /etc/network open file by typing
sudo nano /etc/network/interfaces
you will see the following,
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
Change these settings and add the following line script,
remove the eth0 lines and add wlan0 config commands,
allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "MYFI"
wpa-psk "Passwd" - Restart network anagement by typing following command script,
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
we can also try commands,
sudo ifacedown wlan0
sudo ifaceup wlan0 - If you want to add static wlan ip write the following lines,
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address x.x.x.x
netmask x.x.x.x
network x.x.x.x
boradcast x.x.x.x
gateway x.x.x.x
wpa-ssid "MYFI"
wpa-psk "Passwd"
save these configurations in interfaces file. - Now after writings command script restart the network management service
sudo service network-manager restart
sudo service networking restart
sudo service resolvconf restart
sudo ifacedown wlan0
sudo ifaceup wlan0
check ip address by ifconfig -a
No comments:
Post a Comment