lost and found ( for me ? )

configure WIFI via /etc/network/interfaces on Ubuntu 14.04

Reference

Here are logs when configuring WIFI via /etc/network/interfaces.

PC model name : HP Pavilion Desktop PC e9360jp/CT
USB WIFI adapter : Buffalo WLI-UC-GNM

OS automatically recognized this USB adapter without installing a driver in my environment, which depends on a USB adapter and/or PC model.

Here is an output of “lsusb” after inserting the USB adapter on my PC.
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.2 LTS
Release: 14.04
Codename: trusty

# uname -ri
3.13.0-48-generic x86_64

# lsusb
Bus 002 Device 005: ID 0bda:0152 Realtek Semiconductor Corp. Mass Storage Device
Bus 002 Device 004: ID 0411:01a2 BUFFALO INC. (formerly MelCo., Inc.) WLI-UC-GNM Wireless LAN Adapter [Ralink RT8070]
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[ configure WIFI via /etc/network/interfaces ]

I have used WPA2-PSK for an authentication.

Before editing /etc/network/interfaces, generate a WPA PSK from an ASCII passphrase.
# wpa_passphrase essid password
network={
ssid="essid"
#psk="password"
psk=6b7a04357a1882e7dad358f1ec8f5e8440fbb21e1cc49a3f11e75776bded686d
}

Then edit /etc/network/interfaces
auto wlan0
iface wlan0 inet dhcp
   wpa-ssid essid
   wpa-psk 6b7a04357a1882e7dad358f1ec8f5e8440fbb21e1cc49a3f11e75776bded686d

Finally down and up wlan0 to obtain an IP from DHCP server.

# ifdown wlan0
# ifup wlan0

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.