LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 02-24-2007, 09:35 PM   #1
gruelius
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
Wireless Connection DHCP issues


Hi all
For some reason dhcpcd will not work on my wireless connection. It tells me its connecting to my local network (Finds correct channel) however i dont get any conformation it did, it just continues to start DHCPCD which just times out

At startup it works all fine with no error messages however it tries to load DHCP and just times out. If i can set a static ip that would be ok.

Any ideas?

Julius
 
Old 02-24-2007, 10:18 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
So, has it ever worked, or are you assuming that it should but it's not and you don't know how to even begin troubleshooting? In any case:

Does your router actually have dhcp enabled?
Do you have either WEP or WPA enabled on your router, but not configured on your wireless?
Can you post the output of "sudo /sbin/iwconfig", "sudo /sbin/ifconfig", and "sudo /sbin/route"?
If your wireless is a pci card, could you post the output from "lspci"?
If your wireless is USB, could you post the output from "lsusb"?
Can you post the output from "uname -r"?

That will probably give us a good start on the problem.
 
Old 02-24-2007, 10:22 PM   #3
jev732
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
Wireless Connection in Fedora Core 6

Here are the steps that I took to configure mine:

Be sure you have a fully updated Fedora Core 6 system with the most
recent kernel. (Do a "yum -y update" as root and then reboot when the
update finishes.)

Go to ftp://ftp.support.acer-euro.com/not...20_5020/driver/ and get
ftp://ftp.support.acer-euro.com/not...iver/80211g.zip.

Unzip 80211g.zip. (Use the command "unzip 80211g.zip".) Do a "cp
./80211g/bcmwl5.sys ~/".

Install the fwcutter package from Fedora Extras by doing a "yum -y
install bcm43xx-fwcutter" as root.

Extract the firmware from bcmwl5.sys by doing a
"/usr/bin/bcm43xx-fwcutter -w /lib/firmware bcmwl5.sys" as root in the
directory in which you saved bcmwl5.sys (in our case your home
directory). You can verify that fwcutter extracted the firmware to
/lib/firmware by doing a "ls /lib/firmware".

Set up Network Manger to automatically connect to your wireless and
wired connections with the following commands, entering your root
password as prompted after each command:

Code:
Host# su -c '/sbin/chkconfig -level 345 NetworkManager on'

Code:
Host# su -c '/sbin/chkconfig -level 345 NetworkManagerDispatcher on'

Code:
Host# su -c '/sbin/service NetworkManager start ; /sbin/service
NetworkManagerDispatcher start'

Reboot your machine. The network manager icon will appear on your panel
and you will be prompted to enter a gnome keyring password and your
wireless network WPA key and other information.

Note: You may have to change your wireless router's network mode from G
only to mixed in order to connect.

Configure interface

Use iwconfig to configure wireless network interface. First, see if the
interface is available, with iwconfig. This tool is not likely to be
present on your system: it is part of the package Wireless Tools for
Linux, which you should install.
This will print the wireless interface e.g., eth1. In the examples
below, eth1 is used. Replace eth1 with the interface reported by
iwconfig above. The wireless configuration to be used should match what
your access point uses. First, find out if you can see your access point
(AP) with

Host# iwlist eth1 scan

Note: You may have to set the network name before the scan can find your
Access Point. If the scan does not find your AP, try issuing the command


Host# iwconfig eth1 essid ESSID

before using the command

Host# iwlist eth1 scan

If this lists your AP, you can continue. Otherwise, you may have one of
two problems:

Your AP doesn't broadcast SSID. See the FAQ for more information, or if
the radio of the card is off again, see the FAQ for details. If you see
the AP in the scan above, set the operating mode of the interface
according to your setup. In most cases, it is Managed
Host# iwconfig eth1 mode Managed

If you use encryption WEP, set the key:
Host# iwconfig eth1 key restricted XXXXXXXX

or

Host# iwconfig eth1 key open XXXXXXXX

You can use 10 hex digits for 40-bit encryption or 26 hex digits for
128-bit encryption. You may need to use open security mode instead of
restricted depending on the setup of your AP. If you want to write the
key in ASCII use s: e.g. iwconfig eth1 key restricted sassword. Set
the network name

Host# iwconfig eth1 essid ESSID

Replace ESSID with the network name used by your AP.

At this point, check to make sure that the ESSID is set in the output of
iwconfig eth1. If you see the ESSID as you set, you can proceed to the
next step. If you see ESSID: off/any, then your card is not associated
to the AP. Check if WEP encryption is set exactly as used by the AP, and
that the AP broadcasts ESSID. See the FAQ for more details. Until ESSID
is set in output of iwconfig eth1, you may not use eth1 as a network
interface.

Host# iwconfig eth1

Now, setup the network parameters for the interface eth1. This varies
from distribution to distribution. Refer to your distribution's
documents on how to do this. Once this is done, you can use network
tools to bring up the network e.g.,

Host# ifconfig eth1 up

or

Host# dhclient eth1

or

Host# dhcpcd eth1

Remember, if you have a firewall, let it know that eth1 is an external
interface, and allow it to pass traffic. Otherwise you won't even be
able to ping your AP.

Hope this helps!!
 
Old 02-24-2007, 10:33 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
jev732,

Are you responding to the right post? I think he uses Gentoo, and from a previous post, I see that he has wireless chipset (Rt2500).
 
Old 02-24-2007, 10:33 PM   #5
waelaltaqi
Member
 
Registered: Sep 2005
Location: USA, TN
Distribution: CentOS & Ubuntu for Desktop
Posts: 454

Rep: Reputation: 31
when you join a wireless network you don't get an IP address. after you successfully join a wireless network you need to issue dhclient command to request an IP address. here is some hints:

1- to scan wirelss network issue this command:

Code:
[root@localhost waelaltaqi]# /sbin/iwlist scanning
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

Warning: Driver for device wlan0 has been compiled with version 20
of Wireless Extension, while this program supports up to version 19.
Some things may be broken...

wlan0     Scan completed :
          Cell 01 - Address: 00:15:E9:13:7F:7A
                    ESSID:"waelaltaqi"
                    Protocol:IEEE 802.11g
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:71/100  Signal level:-50 dBm  Noise level:-96 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 6 Mb/s; 9 Mb/s
                              11 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=0
as you can see, lo and eth0 interfaces don't support wireless extensions. but the system scanned for wireless networks on interface wlan0 and found the network "waelaltaqi".

2- now you know what what network i need to join, i issue:

/sbin/iwconfig wlan0 essid waelaltaqi

to make sure that i joinged the right network, i do:

Code:
[root@localhost waelaltaqi]# /sbin/iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

Warning: Driver for device wlan0 has been compiled with version 20
of Wireless Extension, while this program supports up to version 19.
Some things may be broken...

wlan0     IEEE 802.11g  ESSID:"waelaltaqi"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:15:E9:13:7F:7A
          Bit Rate:54 Mb/s   Tx-Power:32 dBm
          RTS thr:2347 B   Fragment thr:2346 B
          Encryption key:off
          Power Management:off
          Link Quality:68/100  Signal level:-52 dBm  Noise level:-96 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
note that if you have encryption, you need to make some adjustments on the command to join the network.

3- now since you're on the network, you can request an ip by doing:
Code:
# dhclient
this will get an ip from you dhcp server.
 
Old 02-24-2007, 10:52 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
He says his machine is issuing dhcpcd. Let's give him a chance to tell us something about his machine and configuration before we start solving his problem.
 
Old 02-25-2007, 07:33 PM   #7
gruelius
Member
 
Registered: Mar 2005
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Hi all,
After emerging wifi radar last night it worked, i havent restarted to see if the settings were kept. Im nearly 100% sure i have mistyped the key in the config files so i will upload those tonight if the wifi radar settings were not permanent.

Ill have a go of waht you typed tonight aswell

Thanks
Julius
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP Issues Jamie Linux - Wireless Networking 4 04-19-2007 06:20 PM
wireless connection ok with knoppix dvd , no connection with installed fedora 4 docharmony Linux - Wireless Networking 2 11-27-2005 04:33 PM
Wireless connection - dhcp client laurentbon Linux - Wireless Networking 16 10-30-2003 11:06 AM
dhcp issues axs89 Linux - Networking 2 02-17-2003 08:56 PM
dhcp issues.... Linuxchallenged Linux - Networking 4 06-27-2001 01:38 PM


All times are GMT -5. The time now is 08:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration