Looks good!user wrote:Ok, updated to openrc-0.5.1 and switched to new network script.
My working br0 vbox0 eth0 bridge example:
When you do, email the Gentoo devs with itNow I searching a nice ppp start/stop wrapper.
This may workEn0id wrote:I also updated to 5.1, but I can't find any info on how to setup ipv6.
My old config looks like this:Code: Select all
config_eth0=( "192.168.0.8 netmask 255.255.255.0 brd 192.168.0.255" "2001:xxx:xxx::8/48" ) routes_eth0=( "default via 192.168.0.1" "default via 2001:xxx:xxx::1 dev eth0" )
Code: Select all
ifconfig_eth0="192.168.0.8 netmask 255.255.255.0; inet6 add 2001:xxx:xxx::8/48"
defaultroute="192.168.0.1"
The problem is that the PPP script needs to interfere much more with the init system than usual init scripts: For instance, it is not sufficient that openrdate depends on such an init service unless the service waits until PPP is actually up. How to find that it is up without relying on callbacks which require net.* functionality? One could store/remove a file in /var/run from /etc/ppp/ip-{up,down}.d, but then one runs into problems when PPP crashes. Moreover, how long to wait before giving up? In any case, the waiting slows down the boot process unless one uses parallel booting - it seems that net.* callbacks were the superior solution. Also, it would be better to have a somewhat standard approach to such common tasks than each user having to write such rather complex scripts by himself - otherwise, soon it will not be possible to help each other with network problems.OTHER things, such as DHCP, PPP, etc belong in external init scripts
This is true. My system at work which just requires a static adress and a dhcp ran after easy configuration out of the box. From the description I guess that the same is true if you want to setup a network with a fixed wireless server. However, as I understand, if you need a flexible wireless, things get clumsy, i.e. at least judging from the code of iwconfig.sh (and from my failed attempts) I guess it is hard to replace the previousA lot of the functionality of the net.xxx scripts is now covered by dhcpcd-5
Code: Select all
modules="iwconfig"
config_wlan0="dhcp"This is very interesting. I have not tried it yet, but I hope that this might be a solution for the above problem? I suggest you should mention it also somewhere in the network file or openrc docu. Is there a reason why it is not in portage, or do we just have to wait?For gui users, dhcpcd-gtk provides per SSID and interface basic config support. It talks to wpa_supplicant.
This is also very good to know to have a fallback (I was afraid that they will be there only for one or two more versions and then will be dropped).The old style net.xxx scripts are not going away, they are just not installed by default
I can understand this very good.I'm bored trying to fix bugs that I don't have the infrastructure to replicate or support
At least if in a hotel/conference room just a "standard wlan access" (without any further information for the user) is provided, one should be able to use it quickly by just specifying that one wants such a standard configuration (e.g. as by the two lines of code mentioned above). However, if one is forced to use networkmanager for this, this might interfere with the manual configuration fom init.d/network, since networkmanager has its own ideas how to setup routes etc. The previous net.wlan0 is much better in this respect.Ah, but with the whole init.d/network it's ALL manualI was so happy that in gentoo (in contrast to ubuntu etc) I was not forced to use networkmanager which badly interfered with any manual configuration, but it seems these good times are changing?![]()

I tried that, too, but got no connection with it, though it seemed to run properly. Maybe I configured something wrong or my hardware has problems, no idea... as I said I also had no success with wpa_supplicant, but only the net.wlan0 with wireless-tools worked (even out of the box).rahulthewall wrote:I use WICD to manage my network

Code: Select all
dns_domain="my_dns_domain"
dns_servers="xx.xx.xx.xx xx.xx.xx.xx"
nis_domain="my_nis_domain"
nis_servers="xx.xx.xx.xx"
config_eth0="xx.xx.xx.31 netmask 255.255.255.0 broadcast xx.xx.xx.255"
routes_eth0="default via xx.xx.xx.1"
Code: Select all
ifconfig_eth0="xx.xx.xx.31 netmask 255.255.255.0"
defaultroute="xx.xx.xx.1"Code: Select all
static domain_name=my_dns_domain
static domain_name_servers=xx.xx.xx.xx xx.xx.xx.xx
[the rest is the default config]Code: Select all
domain my_nis_domain server xx.xx.xx.xxCode: Select all
static ip_address=xx.xx.xx.xxThis has recently been pointed out to me.mv wrote:The problem I had with pppd actually is the same with dhcpcd: It is not sufficient that e.g. network depends on dhcpcd. For example, openrdate will be started once dhcpcd and the network have been started. But this does not mean that the network is ready, since dhcpcd need not have yet got its lease. Hence, openrdate will usually fail to start...
I think, either it must be possible to check whether the net is really up in the desired way (and the network script has to wait so long) or some callback solution must be implemented.
http://roy.marples.name/projects/openrc ... 675ab6c043Fran wrote: /etc/yp.confBut... where do I set the nis domain name? ypbind doesn't start if it isn't set.Code: Select all
domain my_nis_domain server xx.xx.xx.xx
network ones will get applied first, then dhcpcd will stamp over it.(edit) And BTW, what's the difference between setting the fixed IP address in conf.d/network and settingin /etc/dhcpcd.conf? And what happens if they conflict?Code: Select all
static ip_address=xx.xx.xx.xx
You still need the new net.lo which only performs the task of setting up the lo interface.Bill Cosby wrote:Didn't udev rely on net.* scripts? Hotplug seems to have stopped working after the upgrade, and the removal of the net.* scripts?
Code: Select all
$ qfile net.lo
sys-apps/openrc (/etc/init.d/net.lo)
Code: Select all
clock="local"
clock_systohc="NO"
clock_args=""
Code: Select all
America/Chicago
What does your hardware clock show (hwclock --show as root) ? You do not update harware clock to the system one on logout, so if hardware clock shows wrong time, it will be set on every boot.Kingoftherings wrote:Having some major clock issues.
Seems like every time I start up Gentoo my clock has changed.
Here is /etc/conf.d/hwclockAnd here is /etc/timezoneCode: Select all
clock="local" clock_systohc="NO" clock_args=""Code: Select all
America/Chicago

do you have a /etc/adjtime file and if so what is in it?Kingoftherings wrote:Having some major clock issues.
Seems like every time I start up Gentoo my clock has changed.
Here is /etc/conf.d/hwclockAnd here is /etc/timezoneCode: Select all
clock="local" clock_systohc="NO" clock_args=""Code: Select all
America/Chicago

6013166d2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497
I only saw some example when the wireless is using a static IP adress.
I'm not sure, but what about in /etc/dhcpcd.confd2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497
I only saw some example when the wireless is using a static IP adress.
Code: Select all
allowinterfaces wlan0That's wrong - ethernet (inc wireless) interfaces are always allowed by default.Mike Hunt wrote:I'm not sure, but what about in /etc/dhcpcd.confd2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497
I only saw some example when the wireless is using a static IP adress.Code: Select all
allowinterfaces wlan0