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
interfaceThe SSH connection for GCap management is handled by the
gcp1
This procedure outlines the switch-over from a single-interface configuration to a dual-interface configuration.
Important
`gcp1`
interface.`gcp0`
.
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
User: setup
Commands used in this procedure:
5.5.12.3. Preliminary operations
As appropriate, refer to:
Stop the detection engine (see monitoring-engine).
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 thegcp1
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 thegcp0
interface indicates that thegcp1
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 thegcp0
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 thegcp1
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.