Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Wireless Dsl Reinstall On Mandrake 9.1, Almost done.
post Apr 8 2004, 08:53 PM
Post #1


Group: Members
Posts: 48
Joined: 12-February 04
Member No.: 2,361

Hi. I'm trying to reachieve the situation I had once already, so I haven't gotten stuck in most of the places that stopped me once.

I just reinstalled Mandrake Linux 9.1 from CD, sharing a hard drive with Windows. I'm trying to get internet connectivity. Below I've attached details gathered; here I'm going to try to sum them up.

I have a DLink DWL 520 wireless adapter on my computer, which works already when I'm using Windows. It connects to a DLink DI-624 router, which connects to a DSL phone modem.

I installed the madwifi driver, which required installing kernel-source from CD and then mucking around a bit (see below). I now load the three modules madwifi created every time I start linux. (I have instructions on how to automate that; I just don't want to yet.)

In this process I had to write a couple files: ifcfg-ath0 and resolv.conf. (The latter actually already existed, but had been empty.)

I do not have internet connectivity. I'm sure there's lots of reasons why; here are two demonstrations:
[root@localhost etc]# ifup ath0
Can't find a dhcp client
[root@localhost etc]# ping
connect: Network is unreachable

If I'm lucky, my problem will be obvious from the above. If not, here is a lot of diagnostic information, from Windows and Linux:

====================== ============= ======================
====================== How stuff is: ======================
====================== ============= ======================

---------------------- Windows says: ----------------------
Physical Address: 00-0D-88-8B-DD-FE
IP Address:
Subnet Mask:
Default Gateway:
DHCP Server:
Lease Obtained: 4/8/2004 4:58:38 PM
Lease Expires: 4/15/2004 4:58:38 PM
DNS Server:
WINS Server:

---------------------- Linux says: ----------------------
I got data from more than one place, to say the least.

These data are from the very end of the file. There were a few more references to wlan, ath_hal, ath_pci and ath0 deeper into the file, but they looked redundant.
Apr  8 16:00:14 localhost kernel: wlan: BETA
Apr  8 16:00:18 localhost kernel: ath_hal:
Apr  8 16:00:26 localhost kernel: ath_pci: BETA
Apr  8 16:00:26 localhost kernel: ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
Apr  8 16:00:26 localhost kernel: ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Apr  8 16:00:26 localhost kernel: ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Apr  8 16:00:26 localhost kernel: ath0: 802.11 address: 00:0d:88:8b:dd:fe
Apr  8 16:00:26 localhost kernel: ath0: Atheros 5212: mem=0xfbe00000, irq=11
Apr  8 16:00:26 localhost /etc/hotplug/net.agent: invoke ifup ath0
Apr  8 16:01:00 localhost CROND[3086]: (root) CMD (nice -n 19 run-parts /etc/cron.hourly)

wlan: BETA
ath_pci: BETA
ath0: mac 5.6 phy 4.1 5ghz radio 1.7 2ghz radio 2.3
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ath0: 802.11 address: 00:0d:88:8b:dd:fe
ath0: Atheros 5212: mem=0xfbe00000, irq=11

ifconfig ath0 up

This command returned nothing but a newline.

ath0      Link encap:Ethernet  HWaddr 00:0D:88:8B:DD:FE
         RX packets:126 errors:9 dropped:0 overruns:0 frame:9
         TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:199
         RX bytes:15248 (14.8 Kb)  TX bytes:597 (597.0 b)
         Interrupt:11 Memory:e5efd000-e5f0d000

lo        Link encap:Local Loopback
         inet addr:  Mask:
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:730 errors:0 dropped:0 overruns:0 frame:0
         TX packets:730 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:47220 (46.1 Kb)  TX bytes:47220 (46.1 Kb)

lo        no wireless extensions.

ath0      IEEE 802.11  ESSID:"default"
         Mode:Managed  Frequency:2.437GHz  Access Point: 00:0D:88:88:1F:F1
         Bit Rate:36Mb/s   Tx-Power:off   Sensitivity=0/3
         Retry:off   RTS thr:off   Fragment thr:off
         Encryption key:off
         Power Management:off
         Link Quality:27/94  Signal level:-68 dBm  Noise level:-95 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ifup ath0
Can't find a dhcp client

route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface       U     0      0        0 lo

route print
Included some instructional stuff that I've left out, and then this:
 List of possible address families (which support routing):
   inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
   netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
   x25 (CCITT X.25)

====================== =========== ======================
====================== What I did: ======================
====================== =========== ======================

[root@localhost linux]# urpmi kernel-source

[root@localhost linux]# cp Makefile Makefile.jbk

then I modified the original Makefile, deleting the word "custom" from the end of line 4, so that the last three letters are "mdk".
[root@localhost linux]#  "make mrproper"

[root@localhost linux]# cp .config .config.jbk
[root@localhost linux]# cp /boot/config-2.4.21-0.13mdk .config

The old .config file looked identical to the one replacing it, but I made a backup just in case.
[root@localhost linux]# make oldconfig
[root@localhost linux]# make dep

Then I changed directories and installed the wifi driver:
[root@localhost madwifi]# make clean
[root@localhost madwifi]# make
[root@localhost madwifi]# make install
[root@localhost madwifi]# modprobe wlan
[root@localhost madwifi]# modprobe ath_hal
[root@localhost madwifi]# modprobe ath_pci

------------------------ PROGRESS REPORT: ----------------------------
By this point, I am done installing the kernel-source and the madwifi drivers. I did a few more things ...

[root@localhost madwifi]# urpmi libiw wireless-tools

------------------------ STRANGE ----------------------------
At this point, I need to create a config file for ath0, named ifcfg-ath0.
Last time I put it where "ifcfg-eth0" is, but according to Konqueror I have no such file now

Anyway, I find a file called ifcfg-lo, and I figure that's close enough, so I create ifcfg-ath0 in the same place.
[root@localhost networking]# kwrite ifcfg-ath0 &

I put the following in the new file, /etc/sysconfig/networking/ifcfg-ath0:

I also create a link to ifcfg-ath0 from inside /etc/sysconfig/network-scripts/, because there was a corresponding link for ifcfg-lo
[root@localhost etc]# ifup ath0
Can't find a dhcp client

[root@localhost etc]# cp resolv.conf resolv.conf.jbk
[root@localhost etc]# kwrite resolv.conf &

It used to be an empty file. All I did was add this line:

------------------------ STRANGE ----------------------------
A month ago when I was doing this, resolv.conf did not start out empty.

The last thing I ran was this:
[root@localhost etc]# ping
connect: Network is unreachable
Go to the top of the page
+Quote Post
post Apr 9 2004, 05:58 AM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

You are connecting, just not getting an IP address....
A better ifcfg-ath0 would be:


Let's see if it is iptables .... (the kernel firewall).


/etc/init.d/iptables stop

then do:

/etc/init.d/network restart

Of that works, the firewall was the problem.
To fix the IPTABLES firewall to allow DHCP:

Adding these lines in /etc/sysconfig/iptables should allow you to properly connect to the dhcp server (your router):

-A INPUT -p tcp -s -j ACCEPT
-A INPUT -p udp -s -j ACCEPT

(you may need to use a different CHAIN than INPUT ... the other rules may have -A something-INPUT ... if they do, use that instead of -A INPUT ... they should go after all the other INPUT lines, except before any INPUT lines that have -j REJECT in the line)

Once you adjust the rules, try:

/etc/init.d/iptables restart
if that works then restart the network and see if it works as well:

/etc/init.d/network restart

Or if you want to disable iptables on this machine (since you have a hardware firewall) do:

chkconfig --del iptables

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post
post Apr 9 2004, 03:23 PM
Post #3


Group: Members
Posts: 48
Joined: 12-February 04
Member No.: 2,361

I replaced ifcfg-ath0 as suggested. I believe I have no software firewall this time, because I'm pretty sure I didn't ask for a firewall upon reinstalling (I didn't even choose any of the "server" stuff), and my /etc/init.d contains nothing called "iptables".
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 20th October 2017 - 02:40 PM