Re: DHCPCD no carrier
Hugo Barrocas <[email protected]>
| Newsgroups | gmane.linux.distributions.gobo.general |
|---|---|
| Message-ID | <CAMZ98SFmr-k1wu5EeVJczn2nww5C-MEgTUSYDwncn1n8FLMbkw@mail.gmail.com> |
Hi, Hisham, your crappy script worked like a charm :) Looks like I had to kill ecconnmand first to be able to work on the DHCPCD. Solved! :) 2014-07-21 15:06 GMT, Hisham <[email protected]>: > 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 > _______________________________________________ > gobolinux-users mailing list > [email protected] > http://lists.gobolinux.org/mailman/listinfo/gobolinux-users > -- Cumprimentos, D.er Hugo Barrocas