diff options
author | Denis Vlasenko | 2008-02-26 18:25:24 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-02-26 18:25:24 +0000 |
commit | 06aed4316e1f486f78c6487181c75cb22a70c639 (patch) | |
tree | 65a21a2b40b877b985bfe746df01358546cbf878 /include/usage.h | |
parent | 04bb2d2d06a87b08743ee997fcd8465bfed809d1 (diff) | |
download | busybox-06aed4316e1f486f78c6487181c75cb22a70c639.zip busybox-06aed4316e1f486f78c6487181c75cb22a70c639.tar.gz |
ifenslave: new applet. closes bug 115.
Diffstat (limited to 'include/usage.h')
-rw-r--r-- | include/usage.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h index 359f88d..3ef4211 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 \ |