LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-25-2009, 05:49 PM   #1
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Rep: Reputation: 30
How do I change wlan0 to ath0?


I need to run the commands
Code:
wlanconfig wifi0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode managed
But obviously there are no "ath0" or "wifi0" wireless devices.

I have wlan0 and wmaster0. I tried replacing these with ath0 and wifi0 respectively, but unfortunately wlanconfig does not support these. I need ath0 for wlanconfig to work. How can I change wlan0 to ath0?

Last edited by SentralOrigin; 03-25-2009 at 10:11 PM.
 
Old 03-25-2009, 05:54 PM   #2
Maligree
Member
 
Registered: Mar 2008
Distribution: Gentoo, CentOS, Fedora, Arch
Posts: 231
Blog Entries: 1

Rep: Reputation: 42
Madwifi names the device ath0, the ath5k driver names it just wlan0, afaik. You're using a different driver than the HOWTO you're reading.

Why do you need it to be ath0? I remember that wlanconfig line was needed to get Atheros cards working with madwifi - but in your case, with wlan0 already there, you're probably all set up for wireless.
 
Old 03-25-2009, 06:00 PM   #3
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
Oh, so it's a driver issue then...

What would be the command equivalent to "wlanconfig destroy" with the ath5k driver?
 
Old 03-25-2009, 06:59 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 63
Are you wanting ath5k running as an AP?

Brian
 
Old 03-25-2009, 07:39 PM   #5
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
No, in Managed mode
 
Old 03-26-2009, 11:55 AM   #6
SentralOrigin
Member
 
Registered: Jul 2005
Distribution: Gentoo, Ubuntu
Posts: 318

Original Poster
Rep: Reputation: 30
To be more specific, this is the method I used with madwifi:

Code:
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). wifi0 and ath0 both have the original MAC address //
# ifconfig ath0 down
# ifconfig wifi0 down
# wlanconfig wifi destroy
# ifconfig -a // There is lo (up), eth0 (down), and wifi0 (down). wifi0 still has the original MAC address //
# macchanger --mac 9c:0d:cb:e6:dc:7a wifi0
# wlanconfig ath0 create wlandev wifi0 wlanmode managed//
# ifconfig ath0 up
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). Both wifi0 and ath0 have the NEW MAC address //
# dhclient ath0 // Successfully connects to the internet //
Still with the madwifi driver, this method did NOT work:

Code:
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). wifi0 and ath0 both have the original MAC address //
# ifconfig ath0 down
# ifconfig wifi0 down
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (down), and ath0 (down). wifi0 and ath0 still has the original MAC address //
# macchanger --mac 9c:0d:cb:e6:dc:7a wifi0
# ifconfig ath0 up
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). Only wifi0 has the NEW MAC address, ath0 still has the OLD MAC address //
# dhclient ath0 // Cannot connect,No DHCPOFFERS received, No working leases in persistent database - sleeping, etc.  //
Still with the madwifi driver, this method also did NOT work:

Code:
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). wifi0 and ath0 both have the original MAC address //
# ifconfig ath0 down
# ifconfig wifi0 down
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (down), and ath0 (down). wifi0 and ath0 still has the original MAC address //
# macchanger --mac 9c:0d:cb:e6:dc:7a wifi0
# macchanger --mac 9c:0d:cb:e6:dc:7a ath0
# ifconfig ath0 up
# ifconfig -a // There is lo (up), eth0 (down), wifi0 (up), and ath0 (up). Both wifi0 and ath0 have the NEW MAC address //
# dhclient ath0 // Cannot connect,No DHCPOFFERS received, No working leases in persistent database - sleeping, etc.  //
Also, during the macchanger stage, I tried leaving wifi0 alone and only changing ath0, but still the same end results.

The same failures happen with the ath5k driver, except ath5k does not have wlanconfig. I'm looking for the solution to this. In my current ifconfig, I have wlan0 and wmaster0, but if I run a program such as airmon-ng, it displays wlan0 as the main interface and does not show wmaster0 at all. With madwifi, if I ran airmon-ng, it displayed wlan0 as the parent interface, and ath0 beneath it.

Last edited by SentralOrigin; 03-26-2009 at 11:58 AM.
 
Old 03-27-2009, 04:35 PM   #7
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 63
Sorry not idea on the new ath5k stuff. Loved madwifi with card I used. Best thing is google over maybe at www.google.com/linux

Brian
 
  


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
how to change the name of wlan0 to eth1 in ubuntu 8.04? christyyim Linux - Networking 3 03-19-2009 05:06 AM
Wireless chip is displayed as "Ath0" instead of "wlan0" with Belkin F5D7000 ceramicsushi Linux - Wireless Networking 4 04-05-2006 11:26 PM
change ipw220 interface name from eth1 to wlan0 zen0n Linux - Laptop and Netbook 3 08-23-2005 01:55 PM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:52 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration