Wicd Connection Failed: Unable to Gei IP Address in Slackware 13.37
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Wicd Connection Failed: Unable to Gei IP Address in Slackware 13.37
Hello
I'm using Slackware 13.37 and installed Wicd from the Slack DVD with the instructions in the README file but I don't know how to remove any references to interfaces from /etc/rc.d/rc.inet1.conf.
Anyway Wicd runs and the scan get several wifi networks so when I try connecting to wifi network it get this:
Connection Failed:Unable to Gei IP Address
The authentication is perfect and I can get a successful connection to wifi doing this:
bash-4.1# ifconfig wlan0 up
bash-4.1# iwconfig wlan0 essid INFINITUM0000 key 0000000000 channel 3
bash-4.1# dhclient wlan0
but ONLY doing this two times or more!!
I try to change the DHCP client in the options of Wicd to Automatic and dhcpcd... dhclient was default and nothing happens. I don't know if I need edit the file /etc/rc.d/rc.inet1.conf or what?
Using WEP, in the options Route Table Flushing> Automatic, Graphical Sudo Ap> kdesu and WPA supplicant driver> wext
I have not found the answer to this problem, but I can confirm that I have experienced it too. I have really disabled wicd now and am just relying on a series of iwconfig and dhcpcs commands similar to those you posted.
wicd seems to work best for me when I am in some new wifi environment (airport, train etc) when it seems to ususlly connect well. But here at home, where it used to connect easily it now always seems to have the "cannot get IP address" problem.
Advice has been frequently posted that if you want to use wicd you not modify any of the other network conf files - so playing with rc.inet1.conf would seem to be exactly the wrong thing to do. However, as mentioned I am not a good person to give advice on this since I have not been able to fix it for myself...
Just return the '/etc/rc.d/rc.inet1.conf' file to the original state or make sure that all device references/assignments are commented out within '/etc/rc.d/rc.inet1.conf'.
@Onebuck - At the risk of sounding really stupid - does that include the place where you define IFNAME[4]="wlan0" - I thought that this one entry should still be there as this sets up a wlan0 for wicd to use. Does wicd set this up itself ?
@Onebuck - At the risk of sounding really stupid - does that include the place where you define IFNAME[4]="wlan0" - I thought that this one entry should still be there as this sets up a wlan0 for wicd to use. Does wicd set this up itself ?
Doesn't sound 'stupid' to me!
'wicd' will use 'wicd.conf' file. There is a known potential conflict when '/etc/rc.d/rc.inet1.conf' is setup either manually or via 'netconfig'. That is why it is recommended to have '/etc/rc.d/rc.inet1.conf' set to the original state when using 'wicd';
Quote:
excerpt from '/etra/wicd/README.Slackware';
After installing this package, make sure the /etc/rc.d/rc.wicd
script is executable; if necessary, do:
chmod +x /etc/rc.d/rc.wicd
Results have varied, but you will probably need/want to remove
any references to interfaces from /etc/rc.d/rc.inet1.conf - in
other words, make that file look as if netconfig has never been
run.
When you start X, you should see a wicd icon in the system tray;
click on it to open the gui interface and configure as desired.
Your user account will need to be a member of the 'netdev' group
in order to use wicd.
Note that urwid will need to be installed if you want to use the
curses client.
Also, if you don't have kde installed, you won't have a graphical
sudo client available; you might wish to consider ktsuss from
SlackBuilds.org.
Plus do not forget;
Quote:
excerpt from 13.37 CHANGES_AND_HINTS.TXT
3. User accounts with permission to use network devices, such as with the wicd package in /extra, should be in the "netdev" group.
Ok I read the file README.SLACKWARE and doing almost everything but really I don't know how to do this: "to remove any references to interfaces from /etc/rc.d/rc.inet1.conf - in other words, make that file look as if netconfig has never been run."
Maybe that is the solution, and I really need help to do this... thanks to everyone.
Ok I read the file README.SLACKWARE and doing almost everything but really I don't know how to do this: "to remove any references to interfaces from /etc/rc.d/rc.inet1.conf - in other words, make that file look as if netconfig has never been run."
Hi there @eddojh.
...I've just installed 13.37 myself and finally got my old b43 wireless card working --- using wicd (after faffing around unsatisfactorily with iwconfig, rc.inet1.conf etc.). It was a breeze. Prior to installing and running wicd I returned my rc.inet1.conf to its original state --- here's what it should look like...
Code:
# /etc/rc.d/rc.inet1.conf
#
# This file contains the configuration settings for network interfaces.
# If USE_DHCP[interface] is set to "yes", this overrides any other settings.
# If you don't have an interface, leave the settings null ("").
# You can configure network interfaces other than eth0,eth1... by setting
# IFNAME[interface] to the interface's name. If IFNAME[interface] is unset
# or empty, it is assumed you're configuring eth<interface>.
# Several other parameters are available, the end of this file contains a
# comprehensive set of examples.
# =============================================================================
# Config information for eth0:
IPADDR[0]=""
NETMASK[0]=""
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
# Config information for eth1:
IFNAME[1]=""
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]=""
DHCP_HOSTNAME[1]=""
# Config information for eth2:
IPADDR[2]=""
NETMASK[2]=""
USE_DHCP[2]=""
DHCP_HOSTNAME[2]=""
# Config information for eth3:
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]=""
DHCP_HOSTNAME[3]=""
# Default gateway IP address:
GATEWAY=""
# Change this to "yes" for debugging output to stdout. Unfortunately,
# /sbin/hotplug seems to disable stdout so you'll only see debugging output
# when rc.inet1 is called directly.
DEBUG_ETH_UP="no"
## Example config information for wlan0. Uncomment the lines you need and fill
## in your info. (You may not need all of these for your wireless network)
#IFNAME[4]="wlan0"
#IPADDR[4]=""
#NETMASK[4]=""
#USE_DHCP[4]="yes"
#DHCP_HOSTNAME[4]="icculus-wireless"
#DHCP_KEEPRESOLV[4]="yes"
#DHCP_KEEPNTP[4]="yes"
#DHCP_KEEPGW[4]="yes"
#DHCP_IPADDR[4]=""
#WLAN_ESSID[4]=BARRIER05
#WLAN_MODE[4]=Managed
##WLAN_RATE[4]="54M auto"
##WLAN_CHANNEL[4]="auto"
##WLAN_KEY[4]="D5AD1F04ACF048EC2D0B1C80C7"
##WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"
#WLAN_WPA[4]="wpa_supplicant"
#WLAN_WPADRIVER[4]="ndiswrapper"
## Some examples of additional network parameters that you can use.
## Config information for wlan0:
#IFNAME[4]="wlan0" # Use a different interface name nstead of
# the default 'eth4'
#HWADDR[4]="00:01:23:45:67:89" # Overrule the card's hardware MAC address
#MTU[4]="" # The default MTU is 1500, but you might need
# 1360 when you use NAT'ed IPSec traffic.
#DHCP_KEEPRESOLV[4]="yes" # If you dont want /etc/resolv.conf overwritten
#DHCP_KEEPNTP[4]="yes" # If you don't want ntp.conf overwritten
#DHCP_KEEPGW[4]="yes" # If you don't want the DHCP server to change
# your default gateway
#DHCP_IPADDR[4]="" # Request a specific IP address from the DHCP
# server
#WLAN_ESSID[4]=DARKSTAR # Here, you can override _any_ parameter
# defined in rc.wireless.conf, by prepending
# 'WLAN_' to the parameter's name. Useful for
# those with multiple wireless interfaces.
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP | set WPAPSK=thekey"
# Some drivers require a private ioctl to be
# set through the iwpriv command. If more than
# one is required, you can place them in the
# IWPRIV parameter (separated with the pipe (|)
# character, see the example).
You can copy the contents of the above window and simply save it as (or paste it over) /etc/rc.d/rc.inet1.conf --- then install wicd (if you haven't already done so), and run it (the wicd daemon will run automatically when you boot up).
I have experienced the same problem as the OP, with rc.inet1.conf in its original state. It happens with one of the wifi cards I own but not with a second one, and I haven't investigated the problem yet, so I have no idea what's causing the problem.
Distribution: Slackware 13.37 -32 Bit & Puppy 5.2.5
Posts: 577
Rep:
For what it is worth, I just did a fresh install of Slackware 13.37 (and did not fiddle with any config files as that is beyond me) and then installed Wicd from the DVD - I had to set the encryption to: WEP (HEX[0-9/A-F]) and enter my key.
Encountered the exact problem, using manual ip address solved it.
To achieve "return the '/etc/rc.d/rc.inet1.conf' file to the original state", do NOT choose to configure the network during slackware setup during system installation.
What wireless card do you have? I had this problem, too. It was to do with the broadcom-sta driver. I had to reload the driver each time I reconnected.
I don't use wicd anymore, just do a directly through wpa_supplicant and dhcpcd.
What wireless card do you have? I had this problem, too. It was to do with the broadcom-sta driver. I had to reload the driver each time I reconnected.
I don't use wicd anymore, just do a directly through wpa_supplicant and dhcpcd.
Interestingly enough on my HP2133 which has a broadcom card, ended up removing wicd and using iwconfig / wpa_gui (i find having to generate encoded keys just 1 step too much on the command line, wpa_gui does it for me)
For years I had to faff about with the broadcom drivers with quite a lot of trial and error - but with 13.37 it just worked - from the command line, but not wicd. All in all it is better than the times where it didnt work from the command line but only from wicd
I have a broadcom card too. What you need to do is reload the kernel module. For me, its
rmmod wl
modprobe wl
and then it connects. You have to do it each time you reconnect to your network. To automate this, put the above to lines in a bash script and put it in the directory "/etc/wicd/scripts/preconnect/".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.