9.3.1.10. show network-config

A - Introduction

The GCap includes:

  • the capture interfaces

  • Network interfaces for managing the probe via SSH and for pairing with the GCenter

Two cases are possible:

  • The single interface configuration
    SSH connection for GCap management and VPN communication are managed through the interface tunnel- management.
  • dual-interface configuration
    The VPN communication for the connection with the GCenter is managed by the tunnel interface.
    The SSH connection for GCap management is handled by another management interface.
For more information on network interfaces, refer to Description of the GCap inputs / outputs section.
The `network-config` command of the `show` sub-group enables displaying:
  • The status of all GCap interfaces: `show network-config configuration` command

  • The status for each interface: `show network-config tunnel` or `show network-config management` command

  • The domain name: `show network-config domain` command

  • The host name: `show network-config hostname` command


B - Prerequisites

  • User: setup

  • Dependencies: N/A


C - Command

`show network-config {configuration|tunnel|management|hostname|domain}`


D - Procedure to display the GCap configuration

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    show network-config configuration
    
  2. Validate
    Depending on the single or dual interface configuration, the information is different
    The two cases are listed below

    Example of single-interface configuration

    (gcap-cli) show network-config configuration
    {
       "hostname": "GCap",
       "domain_name": "gatewatcher.com",
       "tunnel": {
          "ip_address": "192.168.1.2",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.1.1"
       },
       "management": {
          "ip_address": "192.168.1.2",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.1.1"
       },
       "enp12s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "enp20s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "enp27s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "monvirt": {
          "filtering_rules": {},
          "mtu": 1500
       }
    }
    

    The `ip_address` values of the `tunnel` and `management` interfaces are identical.

    Example of dual-interface configuration

    (gcap-cli) show network-config configuration
    {
       "hostname": "GCap",
       "domain_name": "gatewatcher.com",
       "tunnel": {
          "ip_address": "192.168.1.2",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.1.1"
       },
       "management": {
          "ip_address": "192.168.2.2",
          "mask": "255.255.255.0",
          "default_gateway": "192.168.2.1"
       },
       "enp12s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "enp20s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "enp27s0": {
          "filtering_rules": {},
          "mtu": 1500
       },
       "monvirt": {
          "filtering_rules": {},
          "mtu": 1500
       }
    }
    

    The `ip_address` values of the `tunnel` and `management` interfaces are different.


E - Procedure to display the GCap domain name

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

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

F - Procedure to display the `management` interface configuration

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    show network-config management
    
  2. Validate
    The system displays the `management` interface configuration
    For example:
    Interface management configuration
     - IP Address:
     - Mask:
     - Gateway:
    

I - Procedure to display the `tunnel` interface configuration

The command prompt is displayed.

(gcap-cli)
  1. Enter the command

    show network-config tunnel
    
  2. Validate
    The system displaying the `tunnel` interface configuration
    For example:
Interface tunnel configuration
 - IP Address:
 - Mask:
 - Gateway:

J - Procedure to display the GCap hostname

The command prompt is displayed.

(gcap-cli)
  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