Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Getting wireless, wired, sshd, and dhcpd to play nicely
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
chrisstankevitz
Guru
Guru


Joined: 14 Dec 2003
Posts: 472
Location: Santa Barbara, CA, USA

PostPosted: Sun Apr 01, 2012 12:16 am    Post subject: Getting wireless, wired, sshd, and dhcpd to play nicely Reply with quote

Hello,

If you decide to answer my question, will you please be sure to include in your answer:
- which rc-update level should dhcpd run
- which rc-update level should net.lo run
- which rc-update level should net.eth0 run
- which rc-update level should wicd run
- which rc-update level should sshd run
- what my wicd settings should be
- what /etc/conf.d/network should read
- what /etc/conf.d/net should read

Is it possible to configure my system so that
1. it connects to wireless networks when in range
2. it connects to wired network when the cable is plugged in
3. (2) works even if I was not connected to a network previously
4. (2) works even if I was previously connected to a wireless network
5. (2) works even if I was previously connected to a wired network, but then unplugged
6. sshd be accessed via the wired network, if available (I don't care whether or not sshd is available on the wireless).

Thank you very much!

Chris
Back to top
View user's profile Send private message
Kaso_da_Zmok
Apprentice
Apprentice


Joined: 19 Aug 2004
Posts: 189
Location: Zurich, Switzerland

PostPosted: Sun Apr 01, 2012 12:20 pm    Post subject: Reply with quote

Quote:
- which rc-update level should dhcpd run

none
Quote:
- which rc-update level should net.lo run

sysinit
Quote:
- which rc-update level should net.eth0 run

none
Quote:
- which rc-update level should wicd run

default
Quote:
- which rc-update level should sshd run

default
Quote:
- what my wicd settings should be

Code:
/etc/wicd/manager-settings.conf

up to your taste
Code:
- what /etc/conf.d/network should read
- what /etc/conf.d/net should read

nothing, you do not need these, wicd will do it
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 46272
Location: 56N 3W

PostPosted: Sun Apr 01, 2012 12:36 pm    Post subject: Reply with quote

chrisstankevitz,
Quote:
- which rc-update level should dhcpd run
dhcpd should not be in any runlevel. It will be started by anything that needs it.
Quote:
- which rc-update level should net.lo run
Code:
net.lo | boot

Quote:
- which rc-update level should net.eth0 run
net.eth0 | default
Quote:
- which rc-update level should wicd run
got me there.
Quote:
- which rc-update level should sshd run
sshd | default
Quote:
- what /etc/conf.d/network should read
This file is not used on Gentoo
Quote:
- what /etc/conf.d/net should read
For dhcp, it can be empty, or even totally absent but do read /usr/share/doc/openrc-<version>/net.example.bz2

In answer to your numbered questions. Yes. I suspect you want to know how too, even though you didn't ask that.
In /etc/rc.conf find the comments on
Code:
#rc_depend_strict="YES"
read and understan, then make the required change, so that networking works if any od your interfaces are up.

There are several ways to accompish 2. I don't use any of them. sys-apps/ifplugd is one.

Thats most of what you were asking - post back with any issues.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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