9.3.2.8. set network-config

A - Introduction

The `network-config` command of the `set` sub-group enables modifying the network configuration of the GCap management and tunnel interfaces.
The `network-config` command of the `set` sub-group enables configuring:
  • Each interface with the network parameters: `set network-config {management|tunnel}} [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

For more information on the network interfaces (management, tunnel) and the capture interfaces (`mon0` to `monx`), refer to the show network-config command.

B - Prerequisites

  • User: setup

  • Dependencies: the detection engine must be switched off


C - Command

`set network-config {management|tunnel} [ip-address IP_value] [gateway GATEWAY_value] [mask MASK_value] [confirm] [no-reload]` `set network-config [domain-name NAME_value|hostname HOSTNAME_value] [confirm]`

Note

The no-reload option enables not reloading network services.


D - Procedure to configure the `management` interface and the `tunnel` interface

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    set network-config tunnel ip-address x.y.z.w gateway Z.Z.Z.Z mask Z.Z.Z.Z
    
  2. Validate

  3. Enter the command

    set network-config management ip-address x.y.z.w gateway Z.Z.Z.Z mask Z.Z.Z.Z confirm
    
  4. Validate


E - Procedure to modify the GCap domain name

The command prompt is displayed.

(gcap-cli)
  1. To change the GCap domain in gatewatcher.com:

    1. Enter the command

      set network-config domain-name gatewatcher.com
      
    2. 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)
      
    3. Press <y> and then confirm

  2. To check the value modification:

    1. Enter the following command

      show network-config domain
      
    2. Validate
      The system displays the domain name
      Current domain name: gatewatcher.com