8.10. Procedure to manage the network parameters of `Tunnel` and `Management` interfaces

A - Introduction

This procedure describes:


B - Prerequisites


C - Preliminary operations


D - Procedure to display the network configuration

The command prompt is displayed.

(gcap-cli)
  1. Enter the command
    show  network-config configuration
    
  2. Validate
    The system displays the information of all network interfaces
    In this procedure, only the information on the management and tunnel network interfaces is detailed
    For information on capture interfaces `monx`, refer to Procedure to manage the `monx` capture interface settings
    The system displays the following information:
    • System name (hostname)

    • Domain name (domain_name)

    • Details of the TCP/IP settings for each network interface (`management` and `tunnel`)

    • Whether or not the interface is enabled

    {
       "hostname": "GCap",
       "domain_name": "domain.local",
       "tunnel": {
           "ip_address": "192.168.1.1",
           "mask": "255.255.255.0",
           "default_gateway": "192.168.1.254",
       },
       "management": {
           "ip_address": "192.168.2.1",
           "mask": "255.255.255.0",
           "default_gateway": "192.168.1.254",
       },
    

    Note

    The configuration in the above example is dual interface.


E - Procedure to display the status of the GCap network interfaces

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    show interfaces
    
  2. Validate.
    The system displays the status of the GCap network interfaces.

    image0

    For each interface, the following information is displayed:
    • `Label`: the label name of the interface

    • `Name`: the system name of the interface

    • `Role`: the role assigned to the interface

    • `Capture capability`: if the interface can capture traffic

    • `MTU`: the MTU of the interface

    • `Physical Address`: the MAC address of the interface

    • `Speed`: the interface speed

    • `Type`: the type of cable/sfp connected to the physical port

    • `Vendor ID`: the Vendor ID of the network card

    • `Device ID`: the ID of the network card

    • `PCI bus`: PCI bus number used by the network card


F - Procedure to display/change the GCap domain name

The command prompt is displayed.

(gcap-cli)
  1. To display the current name:

    1. Enter the command

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

    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 appl.. _proc9E:y this new configuration? (y/N)
      
    3. Press the <y> button

    4. Validate

      Applying configuration...
      Procedure completed with success
      
  3. 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
      

G - Procedure to display or change the GCap name

The command prompt is displayed.

(gcap-cli)
  1. To display the current name:

    1. Enter the command

      show network-config hostname
      
    2. Validate
      The system displays the interface the host name of the GCap
      Current hostname: GCap-name
      
  2. To change the current name:

    1. Enter the command

      set network-config hostname gcap-name
      
    2. Validate

      Setting hostname/domain name to:
       - Hostname: gcap-name
       - Domain name: gatewatcher.com
      Do you want to apply this new configuration? (y/N)
      
    3. Press the <y> button

    4. Validate

      Applying configuration...
      Procedure completed with success
      
  3. To check the value modification:

    1. Enter the following command

      show network-config hostname
      
    2. The system displays the host name of the GCap.

      Current hostname: GCap-name
      

H - Procedure to display or modify the interface used to manage the GCap in SSH

The command prompt is displayed.

(gcap-cli)
  1. To display the current configuration:

    1. Enter the command

      show interfaces
      
    2. Validate
      The system displays the role of the different interface of GCap (`management` for SSH connection management, `tunnel` for IPSec tunnel, `management-tunnel` for both )
      • In the case of the single-interface configuration, the system displays:

      image1

      • In the case of the dual-interface configuration, the system displays:

      image2

  2. To configure the `enpXXXX` interface for SSH and the `enpYYYY` interface for IPSec :

    1. Enter the command

      set interfaces assign-role enpXXXX management
      
    2. Validate

    3. Enter the command

      set interfaces assign-role enpYYYY tunnel
      
    4. Validate

    5. Enter the command

      Note

      Replace in the following commands:

      • IP by its value

      • GATEWAY by its value

      • MASK by its value

      set network-config management ip-address IP gateway GATEWAY mask MASK
      
    6. Validate

    7. Enter the command

      set network-config tunnel ip-address IP gateway GATEWAY mask MASK
      
    8. Validate

  3. To configure the `enpXXXX` interface for SSH and IPSec:

    Note

    No other interface is not used.

    1. Enter the command
      set interfaces assign-role enpXXXX management-tunnel
      
    2. Validate

    3. Enter the command

      set network-config management ip-address IP gateway GATEWAY mask MASK
      
    4. Validate


I - Procedure to display or change the MTU value

The command prompt is displayed.

(gcap-cli)
  1. To display the current configuration of enabled interfaces:

    1. Enter the command

      show interfaces
      
    2. Validate
      The system displays the result

      image1

      The values are displayed for all enabled network interfaces.
  2. To change the current configuration of enabled interfaces: e.g. to change the MTU value of the `management` interface:

    1. Enter the command

      set advanced-configuration mtu enp19s0 2000
      
    2. Validate
      The system displays the result
      Updating Network MTU configuration to:
         - enp19s0: 2000
      

J - Procedure to display or modify the TCP/IP settings of a `management` and/or `tunnel` interface

The command prompt is displayed.

(gcap-cli)
  1. To display the `management` and `tunnel` interface configuration :

    1. Enter the command

      show network-config management
      
    2. Validate

      {
        "hostname": "GCap",
        "domain_name": "domain.local",
        "tunnel": {
          "ip_address": "192.168.1.1",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.1.254",
      },
        "management": {
          "ip_address": "192.168.1.1",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.1.254",
       },
      
  2. To change the configuration of the `management` interface address :

    1. Enter the command

      set network-config management ip-address IP gateway GATEWAY mask MASK conf
      
    2. Validate
      The system displays the `management` interface configuration.
      Setting interface management to configuration :
         - IP Address:
         - Mask:
         - Gateway:
      Do you want to apply this new configuration? (y/N)
      
    3. Press the <y> button

    4. Validate