Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
using ath0 instead of eth0 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
HyperQuantum
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2005
Posts: 88

PostPosted: Wed Feb 13, 2008 1:18 pm    Post subject: using ath0 instead of eth0 [solved] Reply with quote

I finally got the wireless card of my laptop working, so I want to use my wireless connection used by default at bootup. So I removed net.eth0 from the default runlevel and added net.ath0 to replace it. But eth0 is somehow still started at bootup, and have to run "/etc/init.d/net.eth0 stop" in order to have the traffic routed over ath0 instead of eth0. It's possible that some other service lists eth0 as a dependency. How can I avoid eth0 being started?

Last edited by HyperQuantum on Wed Feb 13, 2008 2:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
di1bert
l33t
l33t


Joined: 16 May 2002
Posts: 963
Location: Oslo, Norway

PostPosted: Wed Feb 13, 2008 1:21 pm    Post subject: Reply with quote

I believe you can edit /etc/conf.d/rc and change the line to
look like so:

Code:

RC_NET_STRICT_CHECKING="lo"


That's how I've been doing it and it seems to work alright, although if there is
a better / proper way to do it, I'd like to know.

HTH

-M
Back to top
View user's profile Send private message
HyperQuantum
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2005
Posts: 88

PostPosted: Wed Feb 13, 2008 2:45 pm    Post subject: Reply with quote

I searched google for "gentoo init scripts" and found this:

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=4
(look to the bottom of the page)

Apparently udev starts net.eth0 automatically simply because it discovers the device.
I changed RC_PLUG_SERVICES in /etc/conf.d/rc:

RC_PLUG_SERVICES="!net.eth0"

And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking.
Back to top
View user's profile Send private message
lanoira
n00b
n00b


Joined: 11 Feb 2007
Posts: 10

PostPosted: Sun Feb 24, 2008 8:56 pm    Post subject: Reply with quote

HyperQuantum wrote:
RC_PLUG_SERVICES="!net.eth0"

And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking.


I need the eth0 interface to be started after the wireless device (ath0 in my case). Would that be possible?
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23066

PostPosted: Sun Feb 24, 2008 11:04 pm    Post subject: Reply with quote

lanoira wrote:
HyperQuantum wrote:
RC_PLUG_SERVICES="!net.eth0"

And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking.


I need the eth0 interface to be started after the wireless device (ath0 in my case). Would that be possible?


Try echo 'RC_AFTER_eth0="ath0"' >> /etc/conf.d/net (untested).
Back to top
View user's profile Send private message
HyperQuantum
Tux's lil' helper
Tux's lil' helper


Joined: 27 Sep 2005
Posts: 88

PostPosted: Thu Feb 28, 2008 12:54 pm    Post subject: Reply with quote

HyperQuantum wrote:
Apparently udev starts net.eth0 automatically simply because it discovers the device.
I changed RC_PLUG_SERVICES in /etc/conf.d/rc:

RC_PLUG_SERVICES="!net.eth0"

And this does what I want: ath0 is then used for the virtual "net" dependency of all the services that need networking.

I installed ifplugd and had to remove the line again to get things working as expected. So all you need is ifplugd :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum