Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > ifconfig
- Configured Interfaces:
- 1. Management (192.168.20.5/24, fe80::225:90ff:fe32:2fa4/64)
- 2. Data 1 (192.168.21.5/24)
- Choose from one of the following commands:
- CREATE (for laggs - display if there are 2 or more interfaces)
- 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)
- DELETE (for laggs only)
- > [command-goes-here]
- ======
- CREATE
- ======
- LOOP: Select the lagg type:
- 1. failover
- ...
- 6. none
- >
- LOOP: Select an interface to add to the lagg group:
- 1. Management [em0]
- 2. em1 [em1]
- > 1
- FINISH:
- - 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.
- ======
- EDIT
- ======
- LOOP: Select an interface:
- 1. Management (192.168.20.5/24, fe80::225:90ff:fe32:2fa4/64)
- 2. Data 1 (192.168.21.5/24)
- 3. em3
- > 1
- Q: Friendly name for the NIC [Management]: Management
- Q: Would you like to configure a VLAN [y/N]? y
- A: Yes
- Q: Enter in a VLAN tag: 42
- (use vlan interface below)
- Q: Would you like to configure IPv4 [y/n]? y
- A: Yes
- Q: Would you like to obtain an IPv4 address automatically [y/n]?
- A: Yes (DHCP)
- A: No
- 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
- Q: Would you like to configure IPv6 [y/n]? y
- A: Yes
- A: Yes
- Q: Would you like to obtain an IPv6 address automatically [y/n]?
- A: Yes (SLAAC)
- A: No
- 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
- [NOTE: the following only make sense if either an IPv4 or IPv6 address has been configured for the interface]
- Q: Would you like to setup an IPv4 alias [y/N]?
- A: Yes
- 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
- Q: Would you like to setup an IPv6 alias [y/N]?
- A: Yes
- 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
- FINISH:
- If either IPv4 or IPv6 has been configured, save the new address to the database and configure everything in the following order:
- - If vlan, then setup the vlan settings.
- - Configure interface according to instructions above.
- - Setup aliases if told to do so.
- ======
- DELETE
- ======
- Q: Select an interface to delete:
- 1. lagg0
- 2. lagg1
- FINISH:
- - Should deconfigure the IP addresses associated with the lagg directly or the vlan.
- - Should delete vlans associated with the lagg.
- - Delete the interface selected.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement