Search This Blog

Wednesday, 17 August 2016

HOW SET IP OF WLAN INTERFACE UBUNTU 14.04

HOW SET IP OF WLAN INTERFACE UBUNTU 14.04

  1. 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"
  2. 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
  3. 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.
  4. 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

Linux Partitioning Disk & Formatting commands

Linux Partitioning Disk & Formatting commands fdisk man fdisk pi@rasberrypi ~$ sudo fdisk -l