iwlist eth1 scan
eth1 Scan completed :
Cell 11 - Address: 00:11:95:08:1F:0C
ESSID:"A2"
Protocol:IEEE 802.11bg
Mode:Master
Frequency:2.472 GHz (Channel 13)
Encryption key

n
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 9 Mb/s; 11 Mb/s
6 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=97/100 Signal level=-27 dBm
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP
Authentication Suites (1) : PSK
Extra: Last beacon: 328ms ago
iwconfig eth1 essid A2
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device eth1 ; Operation not permitted.
iwconfig eth1 key "Your_key"
I am not sure what “Your_key” is from the above.
iwconfig eth1 ap 00:00:00:00:00:00 (the 00 address must be substituted by the address of your wireless access point)
iwconfig eth1 ap 00:11:95:08:1F:0C
Error for wireless request "Set AP Address" (8B14) :
SET failed on device eth1 ; Operation not permitted.
iwconfig eth1 up
iwconfig: unknown command "up"
dhclient
There is already a pid file /var/run/dhclient.pid with pid 7288
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit
http://www.isc.org/sw/dhcp/
can't create /var/lib/dhcp3/dhclient.leases: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
SIOCSIFFLAGS: Permission denied
Open a socket for LPF: Operation not permitted