diff options
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 359f88d27..3ef421197 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -1563,6 +1563,32 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
1563 | " [mem_start NN] [io_addr NN] [irq NN]\n") \ | 1563 | " [mem_start NN] [io_addr NN] [irq NN]\n") \ |
1564 | " [up|down] ..." | 1564 | " [up|down] ..." |
1565 | 1565 | ||
1566 | #define ifenslave_trivial_usage \ | ||
1567 | "[-cdf] master-iface <slave-iface...>" | ||
1568 | #define ifenslave_full_usage \ | ||
1569 | "Configure network interfaces for parallel routing\n\n" \ | ||
1570 | "Options:" \ | ||
1571 | "\n -c, --change-active Change active slave" \ | ||
1572 | "\n -d, --detach Remove slave interface from bonding device" \ | ||
1573 | "\n -f, --force Force, even if interface is not Ethernet" \ | ||
1574 | /* "\n -r, --receive-slave Create a receive-only slave" */ | ||
1575 | #define ifenslave_example_usage \ | ||
1576 | "To create a bond device, simply follow these three steps :\n" \ | ||
1577 | "- ensure that the required drivers are properly loaded :\n" \ | ||
1578 | " # modprobe bonding ; modprobe <3c59x|eepro100|pcnet32|tulip|...>\n" \ | ||
1579 | "- assign an IP address to the bond device :\n" \ | ||
1580 | " # ifconfig bond0 <addr> netmask <mask> broadcast <bcast>\n" \ | ||
1581 | "- attach all the interfaces you need to the bond device :\n" \ | ||
1582 | " # ifenslave bond0 eth0 eth1 eth2\n" \ | ||
1583 | " If bond0 didn't have a MAC address, it will take eth0's. Then, all\n" \ | ||
1584 | " interfaces attached AFTER this assignment will get the same MAC addr.\n\n" \ | ||
1585 | " To detach a dead interface without setting the bond device down :\n" \ | ||
1586 | " # ifenslave -d bond0 eth1\n\n" \ | ||
1587 | " To set the bond device down and automatically release all the slaves :\n" \ | ||
1588 | " # ifconfig bond0 down\n\n" \ | ||
1589 | " To change active slave :\n" \ | ||
1590 | " # ifenslave -c bond0 eth0\n" | ||
1591 | |||
1566 | #define ifup_trivial_usage \ | 1592 | #define ifup_trivial_usage \ |
1567 | "[-ahinv] ifaces..." | 1593 | "[-ahinv] ifaces..." |
1568 | #define ifup_full_usage \ | 1594 | #define ifup_full_usage \ |