manage-networking

This command is used to configure and manage external networking on the VM Squared cluster. It allows the user to define one or more external networks accessible to the cluster.

Once a network has been created, the manage-networking command allows the user to modify its properties and/or delete the connection entirely.

Warning

Care should be taken when modifying networks, as this can disrupt any services that rely upon these connections.

Implementation

The manage-networking command is implemented as a wizard to guide the user through the steps necessary to configure an external network.

VMsquared:vmsquared\dashboard> manage-networking

Configure external networking
-----------------------------
0) Quit
1) Create new network

Please select [0-1]:

At a minimum, the user must provide:

  • a subnet for the connection.
  • a range of IP addresses (the included ranges) that the VM Squared cluster can allocate.

However, the manage-networking command also allows the user to specify:

  • VLAN
  • default gateway
  • routes
  • included ranges
  • excluded ranges
  • statically assigned hosts
  • excluded hosts

Warning

At a minimum, the range of included addresses should span enough values to allocate a unique address to the VM Squared dashboard AND every VM Squared host.

Example

In this example, we create a new network for the nfs service, and supply a range of unique IP addresses.

  1. Select Option 1 to create a new network. Enter the network name nfsnet and subnet 192.168.3.0/24.
VMsquared:vmsquared\dashboard> manage-networking

Configure external networking
-----------------------------
0) Quit
1) Create new network

Please select [0-1]: 1
Enter a name for the network: nfsnet
Enter a subnet in CIDR format: 192.168.3.0/24

Configure Network
-----------------

   Name: nfsnet
   Subnet: 192.168.3.0/24
   VLAN: None
   Default gateway: None
   Routes:
   Included ranges:
   Excluded ranges:
   Statically assigned hosts:
   Excluded hosts:

0) Back
1) Edit VLAN
2) Edit default gateway
3) Edit routes
4) Edit included ranges
5) Edit excluded ranges
6) Edit statically assigned hosts
7) Edit excluded hosts

Please select [0-7]:
  1. Select Option 4 to specify a range of IP addresses to use. In this case, the start address is 192.168.3.100, and the end address is 192.168.3.200.
Edit included ranges for nfsnet
----------------------------
0) Back
1) Add new included range

Please select [0-1]: 1
Enter address at start of range: 192.168.3.100
Enter address at end of range:   192.168.3.200

Edit included ranges for nfsnet
----------------------------
0) Back
1) Add new included range
2) Remove 192.168.3.100 - 192.168.3.200

Please select [0-2]: 0

Configure Network
-----------------

   Name: nfsnet
   Subnet: 192.168.3.0/24
   VLAN: None
   Default gateway: None
   Routes:
   Included ranges:
      192.168.3.100 - 192.168.3.200
   Excluded ranges:
   Statically assigned hosts:
   Excluded hosts:

0) Back
1) Edit VLAN
2) Edit default gateway
3) Edit routes
4) Edit included ranges
5) Edit excluded ranges
6) Edit statically assigned hosts
7) Edit excluded hosts

Please select [0-7]:
  1. Select Option 3 to specify a route.
Edit routes for nfsnet
-------------------
0) Back
1) Add new route

Please select [0-1]: 1
Enter target subnet (as CIDR): 10.11.12.0/24
Enter gateway: 192.168.3.1

Edit routes for nfsnet
-------------------
0) Back
1) Add new route
2) Remove 192.168.3.1 -> 10.11.12.0/24

Please select [0-2]: 0

Configure Network
-----------------

   Name: nfsnet
   Subnet: 192.168.3.0/24
   VLAN: None
   Default gateway: None
   Routes:
      192.168.3.1 -> 10.11.12.0/24
   Included ranges:
      192.168.3.100 - 192.168.3.200
   Excluded ranges:
   Statically assigned hosts:
   Excluded hosts:

0) Back
1) Edit VLAN
2) Edit default gateway
3) Edit routes
4) Edit included ranges
5) Edit excluded ranges
6) Edit statically assigned hosts
7) Edit excluded hosts

Please select [0-7]:
  1. The user can choose to specify a range of IPs to exclude, statically assign IPs to specific hosts, or exclude hosts from this network. In this example, we skip these options and select [0] to return to the main menu. Once back at the main menu, select option 5 to commit changes.
Configure external networking
-----------------------------
0) Quit
1) Create new network
2) Edit nfsnet
3) Remove nfsnet
4) Open in text editor
5) Commit changes

Please select [0-5]: 5