5.5.11. Switching to a single-interface configuration

5.5.11.1. Introduction

In single-interface configuration, the SSH connection for managing the GCap and the VPN communication are handled by the gcp0 interface.

In dual-interface configuration:

  • the VPN communication is controlled by the gcp0 interface

  • the SSH connection for GCap management is handled by the gcp1

This procedure outlines the switchover from a dual-interface configuration to a single-interface configuration.

Important

The user will lose the session if the connection between the GCap and the user's PC is made remotely via SSH.

This is because in dual-interface, the link via SSH is on the `gcp1` interface.

However, after running this command, this link will be disabled and the interface to be used will be `gcp0`.

In order to avoid this disconnection, connect to the GCap:

  • either by a direct connection (connect directly to the server)

  • or by a HTTP remote connection (iDRAC function for a Dell server)

  • or by a remote connection to the CLI in SSH via the iDRAC interface in serial port redirection mode


5.5.11.2. Prerequisites



5.5.11.4. Procedure for displaying the current configuration

  • To display the gcp0 interface configuration:

    • Enter the following command.

    (gcap-cli) show network-config gcp0
    
    • Validate.

    The system displaying the gcp0 interface configuration.

    Depending on the single or dual interface configuration, the information is different.

    The two cases are listed below.

Single-interface configuration

SSH and VPN connections are handled by the gcp0 interface.

In this case, the system displays:

  Interface gcp0 configuration (VPN / SSH):
   - IP Address: X.X.X.X
   - Mask: 255.255.255.0
   - Gateway: X.X.X.X

The VPN/ SSH field indicates that the current configuration is single-interface.

In this case, there is nothing to do.

Dual-interface configuration

The VPN communication is controlled by the gcp0 interface.

The SSH connection for GCap management is handled by the gcp1 interface.

In this case, the system displays:

Interface gcp0 configuration (VPN):
        - IP Address: X.X.X.X
        - Mask: 255.255.255.0
        - Gateway: X.X.X.X

The VPN field indicates that the current configuration is dual-interface.

The absence of the SSH parameter on the gcp0 interface indicates that the gcp1 interface is managing the SSH.

conclusion: the current configuration is dual-interface.

In this case, continue with this procedure.


5.5.11.5. Procedure for switching from dual to single interface configuration

  • Enter the set network-config ssh gcp0 command followed by the network parameters of the gcp0 interface.

    Example:

    • set network-config gcp0 ip-address 192.168.1.1 gateway 192.168.1.254 mask 255.255.255.0

(gcap-cli) set network-config gcp0 ip-address 192.168.1.1 gateway 192.168.1.254 mask 255.255.255.0
  • Validate.

 Setting interface gcp0 (VPN / SSH) to configuration:
	- IP Address: 192.168.1.1
	- Mask: 255.255.255.0
	- Gateway: 192.168.1.254
Do you want to apply this new configuration? (y/N)
  • Press y and then confirm.

Applying configuration...
00% Generating interfaces configuration     [OK]
09% Generating network configuration        [OK]
18% Generating sshd configuration           [OK]
27% Reconfiguring network                   [OK]
36% Reconfiguring firewall                  [OK]
45% Notifying new network addresses         [OK]
54% Restarting sshd service                 [OK]
63% Restarting rsyslog service              [OK]
72% Restarting GCenter-xfer-daemon service  [OK]
81% Restarting heartbeat service            [OK]
90% Restarting netdata service              [OK]
Procedure completed with success

The system shows the progress and displays the message - Procedure completed with success, to indicate that the switch to single interface was successful.

  • Rewire the GCap network cables if necessary.

Note

It is necessary to add the command attribute 'confirm' at the end of the command if the pairing with the GCenter is active.