6.2.2.9. network-config

6.2.2.9.1. Introduction

For more information on the network interfaces (gcp0/gcp1) and the capture and monitoring interfaces (mon0 to monx), refer to the show network-config command.

The network-config command of the set subgroup enables modifying the network configuration of the GCap.

The network-config command of the set subgroup enables configuring:

  • each interface with the network parameters: set network-config {gcp0|gcp1} [ip-address IP_value] [gateway GATEWAY_value] [mask MASK_value] command

  • the domain name: set network-config domain NAME_value command

  • the host name: set network-config hostname HOSTNAME_value command

  • the interface used to manage the probe in SSH: set network-config ssh {gcp0|gcp1} command

  • the speed of the VPN link between GCap and GCenter: set network-config vpn-link speed {slow|fast} command

    • The slow parameter defines a link of less than 100Mbit/s.

    • The fast parameter defines a link higher than 100Mbit/s.


6.2.2.9.2. Prerequisites

  • User: setup

  • Dependencies: the detection engine must be switched off


6.2.2.9.3. Command

set network-config {gcp0|gcp1} [ip-address IP_value] [gateway GATEWAY_value] [mask MASK_value] [confirm] [no-reload]

set network-config ssh {gcp0|gcp1} [confirm] [no-reload]

set network-config [domain-name NAME_value|hostname HOSTNAME_value] [confirm]

set network-config vpn-link speed {slow|fast}

Note

The no-reload option enables not reloading network services.


6.2.2.9.4. Example of configuring the gcp0 interface for pairing and the gcp1 interface for management

  • Enter the following command.

(gcap-cli) set network-config ssh gcp1
  • Validate.

  • Enter the following command.

(gcap-cli) set network-config gcp0 ip-address X.X.X.X gateway Z.Z.Z.Z mask Z.Z.Z.Z
  • Validate.

  • Enter the following command.

(gcap-cli) set network-config gcp1 ip-address Y.Y.Y.Y gateway Z.Z.Z.Z mask Z.Z.Z.Z confirm
  • Validate.


6.2.2.9.5. Example of configuring the gcp0 interface for pairing and for management

Note

L'interface `gcp1` n'est pas utilisée.

  • Enter the following command.

(gcap-cli) set network-config ssh gcp0
  • Validate.

  • Enter the following command.

(gcap-cli) set network-config gcp0 ip-address X.X.X.X gateway X.X.X.X mask X.X.X.X confirm
  • Validate.


6.2.2.9.6. Example of displaying the Gcap in gatewatcher.com

  • To change the GCap domain in gatewatcher.com:

    • Enter the following command.

    (gcap-cli) set network-config domain-name gatewatcher.com
    
    • Validate.

    Setting hostname/domain name to:
        - Hostname: gcap-int-129-dag
        - Domain name: gatewatcher.com
    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 netdata service              [OK]
    90% Restarting rsyslog service              [OK]
    Procedure completed with success
    
  • To check the value modification:

    • Enter the following command

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

    The system displays the domain name.

    Current domain name: gatewatcher.com