diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-26 18:25:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-26 18:25:24 +0000 |
commit | 06aed4316e1f486f78c6487181c75cb22a70c639 (patch) | |
tree | 65a21a2b40b877b985bfe746df01358546cbf878 /include | |
parent | 04bb2d2d06a87b08743ee997fcd8465bfed809d1 (diff) |
ifenslave: new applet. closes bug 115.
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h index cdb19958c..b2e89ee85 100644 --- a/include/applets.h +++ b/include/applets.h @@ -186,6 +186,7 @@ USE_HWCLOCK(APPLET(hwclock, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_ID(APPLET(id, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) USE_IFCONFIG(APPLET(ifconfig, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_IFUPDOWN(APPLET_ODDNAME(ifdown, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifdown)) +USE_IFENSLAVE(APPLET(ifenslave, _BB_DIR_SBIN, _BB_SUID_NEVER)) USE_IFUPDOWN(APPLET_ODDNAME(ifup, ifupdown, _BB_DIR_SBIN, _BB_SUID_NEVER, ifup)) USE_INETD(APPLET(inetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) USE_INIT(APPLET(init, _BB_DIR_SBIN, _BB_SUID_NEVER)) diff --git a/include/usage.h b/include/usage.h index 359f88d27..3ef421197 100644 --- a/include/usage.h +++ b/include/usage.h @@ -1563,6 +1563,32 @@ USE_FEATURE_BRCTL_FANCY("\n" \ " [mem_start NN] [io_addr NN] [irq NN]\n") \ " [up|down] ..." +#define ifenslave_trivial_usage \ + "[-cdf] master-iface <slave-iface...>" +#define ifenslave_full_usage \ + "Configure network interfaces for parallel routing\n\n" \ + "Options:" \ + "\n -c, --change-active Change active slave" \ + "\n -d, --detach Remove slave interface from bonding device" \ + "\n -f, --force Force, even if interface is not Ethernet" \ +/* "\n -r, --receive-slave Create a receive-only slave" */ +#define ifenslave_example_usage \ + "To create a bond device, simply follow these three steps :\n" \ + "- ensure that the required drivers are properly loaded :\n" \ + " # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \ + "- assign an IP address to the bond device :\n" \ + " # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \ + "- attach all the interfaces you need to the bond device :\n" \ + " # ifenslave bond0 eth0 eth1 eth2\n" \ + " If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \ + " interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \ + " To detach a dead interface without setting the bond device down :\n" \ + " # ifenslave -d bond0 eth1\n\n" \ + " To set the bond device down and automatically release all the slaves :\n" \ + " # ifconfig bond0 down\n\n" \ + " To change active slave :\n" \ + " # ifenslave -c bond0 eth0\n" + #define ifup_trivial_usage \ "[-ahinv] ifaces..." #define ifup_full_usage \ |