LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-28-2006, 03:47 AM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
madwifi atheros card, wifi basics


so i have madwifi installed for my d-link (Atheros AR5212 802.11abg NIC). how do i switch so my internet traffic goes through that card instead of my wired connection? im not sure everything is installed correctly, this is the output from ifconfig

ath0 Link encap:Ethernet HWaddr 00:0F:3D:A9:1A:38
inet6 addr: fe80::20f:3dff:fea9:1a38/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

eth0 Link encap:Ethernet HWaddr 00:11:5B:F5:53:CD
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:5bff:fef5:53cd/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4647 errors:0 dropped:0 overruns:0 frame:0
TX packets:4636 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1890225 (1.8 Mb) TX bytes:479243 (468.0 Kb)
Interrupt:217 Base address:0x6000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1604 (1.5 Kb) TX bytes:1604 (1.5 Kb)

wifi0 Link encap:UNSPEC HWaddr 00-0F-3D-A9-1A-38-00-00-00-00-00-00-00-00-00-00
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:40 errors:0 dropped:0 overruns:0 frame:10
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:199
RX bytes:3352 (3.2 Kb) TX bytes:739 (739.0 b)
Interrupt:66 Memory:ffffc20000b60000-ffffc20000b70000


im assuming my wireless connection is ath0, but what is wifi0? what other commands are usefull for wireless connections... i know iwlist scan will give me the avalible connections, but i dont really know much more...
 
Old 05-28-2006, 05:22 AM   #2
KarlosDaJackel
Member
 
Registered: May 2006
Distribution: Gentoo
Posts: 54

Rep: Reputation: 15
iwconfig, ifconfig and dhcpcd are your freinds

you can set you essid and encryptions keys like so with iwconfig (as root)
# iwconfig ath0 essid mywireless
# iwconfig ath0 key 123456789ABCDEFG1234

then if you have dhcp get yourself an ip address by using dhcpcd like so
# dhcpcd ath0

if you don't have dhcp you can manually give yourself an address
# ifconfig ath0 inet 192.1681.10.123 netmask 255.255.255.0 up
 
  


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
Atheros cardbus wifi card problem Nostur Linux - Hardware 1 05-23-2006 10:13 PM
Atheros/madwifi on Suse OSS 10 novu5 Linux - Wireless Networking 11 05-20-2006 06:08 PM
Atheros WiFi Card RySk8er30 Mandriva 4 09-04-2005 01:07 AM
Atheros 5004g, MadWiFi and WPA mrmcctt Linux - Wireless Networking 11 08-09-2005 01:30 AM
Need help with Madwifi/Atheros on Slack10.1 d4m Linux - Wireless Networking 1 06-26-2005 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:37 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