Gentoo Archives: gentoo-hardened

From: "Tóth Attila" <atoth@××××××××××.hu>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] openrc-0.9.8.2 screwed up bonding config
Date: Thu, 26 Jan 2012 12:31:04
Message-Id: 405ffa99efd2c9a8c97e680fa0339a92.squirrel@atoth.sote.hu
In Reply to: [gentoo-hardened] openrc-0.9.8.2 screwed up bonding config by "Tóth Attila"
1 I was lucky to hit this one:
2 https://bugs.gentoo.org/show_bug.cgi?id=400613
3
4 Regards:
5 Dw.
6 --
7 dr Tóth Attila, Radiológus, 06-20-825-8057
8 Attila Toth MD, Radiologist, +36-20-825-8057
9
10 2012.Január 26.(Cs) 02:15 időpontban "Tóth Attila" ezt írta:
11 > I'm sorry for being offtopic, but this is the list I can rely on.
12 > I've just upgraded openrc from 0.9.4 to 0.9.8.2 and my server went
13 > offline.
14 > After struggling with the remote console, it turned out, that the new
15 > openrc system incorrectly builds up my bonding config. It assigns the IP
16 > address to the eth1 interface and bonding stands there without an IP. In
17 > addition it also fails to define routes properly.
18 >
19 > WHAT? I don't know how many of us will spend significant amount of time
20 > with it, but that's too much for me.
21 >
22 > I see, that conf.d/network took over conf.d/net. My bonding config is
23 > simple as my finger.
24 >
25 > Here is my regular net syntax:
26 > config_eth0=( "null" )
27 > config_eth1=( "null" )
28 > RC_NEED_eth0="net.bond0"
29 > config_bond0="<myip> netmask 255.255.255.192 brd <mybroadcast>"
30 > routes_bond0="default gw <mygateway>"
31 > dns_domain="mydomain"
32 >
33 > It works fine, it prevents eth interfaces getting IP and sets bond0 and
34 > route perfectly.
35 >
36 > That would be the network syntax:
37 > defaultroute="gw <mygateway>"
38 > ip_bond0="<myiip>/26"
39 > defaultiproute="via <mygateway>"
40 > ifup_bond0="ifenslave bond0 eth0 eth1"
41 >
42 > It sucks.
43 > Is there a working simple bonding example?
44 >
45 > Please let me know where I can ask for proper help. Gentoo install still
46 > talks about net. Is there a document on how to set up bonding with the new
47 > network config syntax?
48 >
49 > Ridiculous:
50 > Dwokfur
51 > --
52 > dr Tóth Attila, Radiológus, 06-20-825-8057
53 > Attila Toth MD, Radiologist, +36-20-825-8057
54 >
55 >
56 >