Then the interface isn't up or isn't configured.lilzz wrote:@doug, I try both ip adds and if config wlan0. It doesn't list the inet field. It only list the hardware address, no ip address listed.
The first two lines of /etc/network/interfaces look strange. They should belilzz wrote:my /etc/network/interfaces
auto l0 <-- is this one zero or lower case L zero
iface l0 inet loopback <-- same here
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
so why my wlan0 isn't up?
Code: Select all
auto lo
iface lo inet loopbackIf Wifi Config GUI doesn't work make sure/etc/network/interfaces looks like the followinglilzz wrote:sudo iwlist wlan0 scan give me the wifi network, but if I use wpa_gui it doesn't detect anything, nothing show up if use that.
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcpCode: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "network-name"
wpa-psk "network-password"Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-ssid "HOME-1E62"
wpa-psk "56FGD45SDFFSE"iwconfig does not show the IP for your wifi but it does show the MAC address of the Wifi Access Point. You need to use command ifconfig to see the wlan IP address inet addr:.lilzz wrote:Ok, I have my /etc/network/interfaces like this and it turn off the wpa_supplicant.
After I reboot, I did iwconfig it says wlan0, ESSID "HOME-1E62 NickName "<WIFI@REALTEK>"Code: Select all
auto lo iface lo inet loopback iface eth0 inet dhcp allow-hotplug wlan0 iface wlan0 inet dhcp wpa-ssid "HOME-1E62" wpa-psk "56FGD45SDFFSE"
Frequency 2.43GHz But still no inet field
route -n produces empty tables.
ping yahoo.com produces unreachable host.
So, at this point I don't know what goes wrong. Instead using /etc/network/interfaces during boot up time, can I do it manually on command line? I like to see some feedback from system,
Code: Select all
sudo ifdown --force wlan0
sudo ifup --force wlan0Fair enough. Your wifi is working but for some reason it cannot connect to your network. I have assumed your network uses WPA/WPA2 security. Is that right? If it uses WEP security you will need to edit /etc/network/interfaces.lilzz wrote:sudo iwlist wlan0 scan shows my wifi network, which is OK.
I type sudo ifup --force wlan0
ioctl[SIOCSIWAP] : Operation not permitted
ioctl[SIOCSIWENCPDEEXT]: Invalid Argument
Internet System Cinsritium DHCP CLient 4.2.2
listening on LPF/wlan0/..
Sending on LPF/wlan0/..
DHCPDISCOVER on lwan0 to 255.255.255.255 port 67 interval 4
receive packet failed on wlan0: Network is down.
Basically, sudo ifup --force wlan0 says network is down but sudo iwlist wlan0 scan indicates network is there.
Code: Select all
ifconfig wlan0 192.168.1.88 netmask 255.255.255.0
ifconfig wlan0 up
route add default gateway 192.168.1.1