Re: DHCPCD no carrier

Hisham <[email protected]>
Newsgroups gmane.linux.distributions.gobo.general
Message-ID <CAJpkDYdwNOUJOLrhbCE5xV4b9dLU1eUtATtmc1jRtkMfBYrmLg@mail.gmail.com>
On 19 July 2014 15:26, Hugo Barrocas <[email protected]> wrote:
> Hi,
>
> I tried to connect to a wifi in the Command Line Interface (CLI), but
> without sucess, DHCPCD doesn't get an IP.
>
> Connecting to a wifi network in command line:
> $ ip link show wlan0 - to verify the wlan0 status
> $ sudo ifconfig wlan0 up - turn it on
> $ ip link show wlan0 - to check again if it is ok, shows [UP]
> $ sudo iwlist wlan0 scan - scan for available networks
> $ sudo iwconfig wlan0 essid (name) key (password) - assign to a network
>
> $ dhcpcd wlan0 - when I run DHCPCD to get an IP, it fails to get an
> IP, complaining there is no carrier.
> Also tried [$ sudo dhcpcd wlan0 -K], without sucess...

My crappy wifi-connection script currently looks like:

#!/bin/sh
killall connmand
killall dhcpcd
killall wpa_supplicant
dhcpcd wlan0

And my /etc/wpa_supplicant.conf (that is,
/P/WPA_Supplicant/Settings/wpa_supplicant.conf) looks like this:

update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
network={
   ssid="NAME OF MY NETWORK"
   psk="PASSWORD"
   priority=5
}
network={
   ssid="ANOTHER, OPEN NETWORK"
   key_mgmt=none
}

I don't load any modules by hand or run ip, ifconfig or iwconfig to
connect. Once that is configured, dhcpcd does everything.

Hope that helps!

-- Hisham
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.