Advertisement
yaneurabeya

Untitled

Nov 30th, 2011
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. > ifconfig
  2.  
  3. Configured Interfaces:
  4.  
  5. 1. Management (192.168.20.5/24, fe80::225:90ff:fe32:2fa4/64)
  6. 2. Data 1 (192.168.21.5/24)
  7.  
  8. Choose from one of the following commands:
  9.  
  10. CREATE (for laggs - display if there are 2 or more interfaces)
  11. EDIT (show if there are any interfaces to configure; should be. Options to confiure here: aliases, addresses, vlans -- maybe the list of interfaces that can be a part of a lagg, but this could be potentially tricky if one or more interfaces are in use)
  12. DELETE (for laggs only)
  13.  
  14. > [command-goes-here]
  15.  
  16. ======
  17. CREATE
  18. ======
  19.  
  20. LOOP: Select the lagg type:
  21.  
  22. 1. failover
  23. ...
  24. 6. none
  25.  
  26. >
  27.  
  28. LOOP: Select an interface to add to the lagg group:
  29.  
  30. 1. Management [em0]
  31. 2. em1 [em1]
  32.  
  33. > 1
  34.  
  35. FINISH:
  36.  
  37. - If two or more interfaces are selected, then create the lagg. Otherwise print an informative warning stating the lagg wasn't created, and move on.
  38.  
  39. ======
  40. EDIT
  41. ======
  42.  
  43. LOOP: Select an interface:
  44.  
  45. 1. Management (192.168.20.5/24, fe80::225:90ff:fe32:2fa4/64)
  46. 2. Data 1 (192.168.21.5/24)
  47. 3. em3
  48.  
  49. > 1
  50.  
  51. Q: Friendly name for the NIC [Management]: Management
  52.  
  53. Q: Would you like to configure a VLAN [y/N]? y
  54.  
  55. A: Yes
  56.  
  57. Q: Enter in a VLAN tag: 42
  58.  
  59. (use vlan interface below)
  60.  
  61. Q: Would you like to configure IPv4 [y/n]? y
  62.  
  63. A: Yes
  64.  
  65. Q: Would you like to obtain an IPv4 address automatically [y/n]?
  66.  
  67. A: Yes (DHCP)
  68.  
  69. A: No
  70.  
  71. Q: Enter in an IPv4 CIDR, e.g. 10.0.0.1/16 [display-already-configured-CIDR-here-if-this-is-set]: 192.168.20.5/24
  72.  
  73. Q: Would you like to configure IPv6 [y/n]? y
  74.  
  75. A: Yes
  76. A: Yes
  77.  
  78. Q: Would you like to obtain an IPv6 address automatically [y/n]?
  79.  
  80. A: Yes (SLAAC)
  81.  
  82. A: No
  83.  
  84. Q: Enter in an IPv6 CIDR, e.g. fe80::225:90ff:fe32:2fa4/64 [display-already-configured-CIDR-here-if-this-is-set]: fe80::225:90ff:fe32:2fa4/64
  85.  
  86. [NOTE: the following only make sense if either an IPv4 or IPv6 address has been configured for the interface]
  87.  
  88. Q: Would you like to setup an IPv4 alias [y/N]?
  89.  
  90. A: Yes
  91.  
  92. Q: Enter in an IPv4 CIDR, e.g. 10.0.0.1/16 [display-already-configured-CIDR-here-if-this-is-set]: 192.168.20.5/24
  93.  
  94. Q: Would you like to setup an IPv6 alias [y/N]?
  95.  
  96. A: Yes
  97.  
  98. Q: Enter in an IPv6 CIDR, e.g. fe80::225:90ff:fe32:2fa4/64 [display-already-configured-CIDR-here-if-this-is-set]: fe80::225:90ff:fe32:2fa4/64
  99.  
  100. FINISH:
  101.  
  102. If either IPv4 or IPv6 has been configured, save the new address to the database and configure everything in the following order:
  103.  
  104. - If vlan, then setup the vlan settings.
  105. - Configure interface according to instructions above.
  106. - Setup aliases if told to do so.
  107.  
  108. ======
  109. DELETE
  110. ======
  111.  
  112. Q: Select an interface to delete:
  113.  
  114. 1. lagg0
  115. 2. lagg1
  116.  
  117. FINISH:
  118.  
  119. - Should deconfigure the IP addresses associated with the lagg directly or the vlan.
  120. - Should delete vlans associated with the lagg.
  121. - Delete the interface selected.
  122.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement