5.5.12. Switching to a dual-interface configuration

5.5.12.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 single-interface configuration to a dual-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.12.2. Prerequisites



5.5.12.4. Procedure for displaying 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.

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, there is nothing to do.

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, continue with the following procedure.


5.5.12.5. Procedure for switching from single to dual interface configuration

  • enter the set network-config ssh gcp1 command followed by the network parameters of the gcp1 interface.

    Note

    Example

    set network-config gcp1 ip-address 192.168.1.2 gateway 192.168.1.254 mask 255.255.255.0_

  • Validate.

    (gcap-cli) set network-config ssh gcp1
    SSH has been set to interface gcp1
    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 dual interface was successful.

  • Rewire the GCap network cables if necessary.