LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-06-2007, 08:09 PM   #1
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Rep: Reputation: 201Reputation: 201Reputation: 201
Madwifi ap slackware.


Hi i'm trying to set up an AP with an atheros (AR5212) network card using madwifi (0.9.2.1) in slackware 11.0
I'm using an kernel i compiled myself 2.6.18.3
And i can't get it to work.

I get an error "ath0: not found" when i run 'dhcpd ath0'.

what i done so far is i made an rc.firewall.
Code:
modprobe ip_tables
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ipt_state
modprobe iptable_nat
modprobe ipt_MASQUERADE


echo 1 > /proc/sys/net/ipv4/ip_forward



iptables --flush


iptables --table nat --flush
iptables --delete-chain


iptables --table nat --delete-chain


iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface ath0 -j ACCEPT
And i edited /etc/dhcpd.conf
Code:
# dhcpd.conf
#
# Configuration file for ISC dhcpd (see 'man dhcpd.conf')
#
ddns-update-style ad-hoc;
#ddns-update-style none;
subnet 192.168.1.0 netmask 255.255.255.0
{
range 192.168.1.2 192.168.1.254;
default-lease-time 720;
max-lease-time 86400;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
option domain-name-servers 195.54.122.199 , 195.54.122.204;   
}
I also put 'dhcpd ath0' in /etc/rc.local.
And made an /etc/modprobe.d/madwifi including 'options ath_pci autocreate=ap'

Then 'iwconfig ath0 essid MyNet channel 4 rate 54M'

Code:
iwconfig ath0
ath0      IEEE 802.11g  ESSID:"MyNet"  Nickname:"mybox"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:0F:ED:F8:9E:69   
          Bit Rate=54 Mb/s   Tx-Power:16 dBm   Sensitivity=0/3  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/94  Signal level=-95 dBm  Noise level=-95 dBm
          Rx invalid nwid:1320  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
I don't know what i forgot or what i need to change.
But 'dhcpd ath0' won't work as i hoped.
And i want this to work before using hostapd for WPA2.

Last edited by Nille_kungen; 02-06-2007 at 08:29 PM.
 
Old 02-07-2007, 04:58 AM   #2
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
Now i got 'dhcpd ath0' to work.
I edited /etc/rc.d/rc.inet1.conf
Code:
IFNAME[4]="ath0"
IPADDR[4]="192.168.1.254"
NETMASK[4]="255.255.255.0"
But i can't reach the internet.
Not with domain or ip.
But i can 'ping 192.168.1.254'
I tried with 2 clients both failed.

Last edited by Nille_kungen; 02-07-2007 at 05:22 AM.
 
Old 02-07-2007, 11:29 AM   #3
Nille_kungen
Member
 
Registered: Jul 2005
Distribution: Slackware64-current
Posts: 587

Original Poster
Rep: Reputation: 201Reputation: 201Reputation: 201
I'm writeing this from an wireless client.
So everything works now.
I had an 2 default gateways one that shouldn't be there. (i saw it with 'route -n')

So i Deleted it with 'route del default gw 192.168.1.1'
Then traced how it accured and fixed it.

I know saw the sub section for wireless networking sorry for posting in wrong forum.
 
  


Reply



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
Madwifi for Slackware 9.1: Can it be installed? I really cannot tell. Old_Fogie Slackware 10 05-20-2006 03:37 AM
Madwifi not working on Slackware 10.2 EsotericMatt Linux - Wireless Networking 4 05-18-2006 04:32 PM
Madwifi with slackware and 2.6.15.3 kernel push Linux - Laptop and Netbook 2 05-18-2006 04:26 PM
slackware 10 (2.6.10) + madwifi AP81 Slackware 12 05-18-2006 04:24 PM
MADWIFI Configuration on Slackware 9.0 with DWL-G520 tsgbaer Slackware 0 10-05-2003 07:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:04 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration