| Summary: | ifenslave ebuild for ethernet bonding | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pat Lougheed <pat> |
| Component: | New packages | Assignee: | 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.* | ||
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).
|
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