Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 24254

Summary: ifenslave ebuild for ethernet bonding
Product: Gentoo Linux Reporter: Pat Lougheed <pat>
Component: New packagesAssignee: SpanKY <vapier>
Status: RESOLVED DUPLICATE    
Severity: enhancement Keywords: EBUILD
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to add support for bonding interfaces to /etc/init.d/net.*

Description Pat Lougheed 2003-07-10 17:36:39 UTC
An ebuild to nicely compile and merge in ifenslave, the tool for aggregating
network cards using the bonding kernel module/option.

KEYWORDS="x86"
SLOT=0
DEPEND="virtual/linux-sources"
SRC_URI=""
S=${WORKDIR}/${P}

src_unpack() {
        mkdir -p ${S}
    cp /usr/src/linux/Documentation/networking/ifenslave.c ${S}
}

src_compile() {
        cd ${S}
    ${CC} ${CFLAGS} -Wall -Wstrict-prototypes -I/usr/src/linux/include
ifenslave.c -o ifenslave
}

src_install() {
    into /
    dosbin ${S}/ifenslave
}

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
ifenslave successfully merged to /sbin
Comment 1 Pat Lougheed 2003-07-11 01:18:30 UTC
Created attachment 14367 [details, diff]
Patch to add support for bonding interfaces to /etc/init.d/net.*

Requires an additional configuration directive slaves_IFACE in /etc/conf.d/net,
for example:

slaves_bond0="eth1 eth2"

This can be a full command line to ifenslave, such as:

slaves_bond0="eth1 metric 1 eth2 metric 10"

and the metric stuff gets filtered out at stop time (this is a little ugly,
feel free to improve on it).
Comment 2 SpanKY gentoo-dev 2003-11-24 07:03:13 UTC

*** This bug has been marked as a duplicate of 22303 ***