LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-07-2009, 07:03 AM   #1
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Rep: Reputation: 18
eth0 and ath0? or eth0 and ath1?


After reading Alien Bob's excellent howto on network configuration, http://alien.slackbook.org/dokuwiki/...ckware:network , I'm starting to understand things a little bit better with my wireless and ethernet setup on my laptop.

If I use my laptop in both wireless and ethernet modes, should I define my wireless card with a different index number than my ethernet setup, thus "eth0" and then "ath1"?

I could test this out, but I'm having some difficulty getting wireless to work right now. Thanks for your help.
 
Old 01-07-2009, 07:23 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
No, ath0 will work fine.
 
Old 01-07-2009, 07:36 AM   #3
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
First type as root in a terminal:
Code:
iwconfig
to see what is the name given by the kernel or UDEV to your wireless card's interface.

Then use that name in /etc/rc.d/rc.inet1.conf.

As stated by Eric you can use any index number, as long as it is not already in use for another card's interface name and it is less than 7.

e.g. if you have two ethernet cards whose interface names are eth1 and eth2 and your wireless card's name as shown in iwconfig's output is tfrei (highly improbable but if you edit /etc/udev/rules.d/70-persistent-net.rules accordingly) you could write in rc.inet1.conf:
Code:
ifname[3]="tfrei"
Don't forget to use the same index for all settings for the same card in the rc.inet1.conf

By default:
Code:
ifname[0]="eth0"
ifname[1]="eth1"
ifname[2]="eth2"
ifname[3]="eth3"
but you can change that as needed.

Last edited by Didier Spaier; 01-07-2009 at 07:38 AM. Reason: Typo
 
Old 01-07-2009, 08:28 AM   #4
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
Yes, thank you. I see now that the index number is defined in inet1.conf; the name of the card is something assigned by the computer.

A follow up but related question: I just activated my wireless by installing the driver (madwifi driver; ath5k doesn't seem to work well in my 12.2 slackware asus eee pc laptop). Now, my ethernet connection doesn't work. It did before. The wireless (ath0) isn't working either, but I think that is because it needs to be configured.

How do I keep the wireless connection from interfering with the ethernet connection? If I have ethernet available, I will almost always use that as a connection ( at home for example, since my wireless at home is spotty).

Last edited by tfrei; 01-07-2009 at 08:46 AM.
 
Old 01-07-2009, 10:03 AM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
Quote:
Originally Posted by tfrei View Post
How do I keep the wireless connection from interfering with the ethernet connection?.
AFAIK there shouldn't be any interference.

Please provide the output of "iwconfig" and "ifconfig -a".

As a reminder, if a DHCP server is listening on your network a "dhcpcd <interface_name>" command should suffice to get a connection through your ethernet card.

Do you usually use dhcp or a static link to get an Internet address ?
 
Old 01-08-2009, 08:41 PM   #6
tfrei
Member
 
Registered: Dec 2004
Location: Fargo
Distribution: slackware 14.2
Posts: 103

Original Poster
Rep: Reputation: 18
Didier, thanks for the reply. I'm unexpectedly away from my computer, but I did get things to work after I configured my wireless (correctly) on rc.inet1. Right now, my wireless works perfectly.

I suspect that my computer first configures my eth0, then configures ath0, over-riding the successful eth0 connection. If ath0 is unsuccessful, it still overides the initial eth0 connection. The result is no internet.

But I need to test this theory out. Thanks for your help before.
 
  


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
Why does disconnecting eth0 also disconnect ath0 1jnike Linux - Wireless Networking 3 02-01-2007 09:49 PM
br0 with ath0 and eth0 not working on ixp vinodl Debian 0 09-16-2006 06:37 AM
dhcpcd ath0 fails, works for eth0 Josh328 Linux - Wireless Networking 7 02-07-2006 10:45 PM
Wireless network on eth1 diabled Ethernet eth0 and eth0 never comes back tadatoshi Linux - Wireless Networking 4 09-23-2004 05:57 PM
Firewall WAN eth0 LAN eth1 self-bridges, eth0 does all routeing. Nichole_knc Linux - Networking 5 07-29-2004 02:33 PM

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

All times are GMT -5. The time now is 09:53 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
Open Source Consulting | Domain Registration