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 configurationSSH connection for GCap management and VPN communication are managed through the interface tunnel- management.
- dual-interface configurationThe 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.
`network-config` command of the `show` sub-group enables displaying:The status of all GCap interfaces:
`show network-config configuration`commandThe status for each interface:
`show network-config tunnel`or`show network-config management`commandThe domain name:
`show network-config domain`commandThe 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)
Enter the command
show network-config configuration
- ValidateDepending on the single or dual interface configuration, the information is differentThe 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)
Enter the command
show network-config domain
- ValidateThe 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)
Enter the command
show network-config management
- ValidateThe system displays the
`management`interface configurationFor example:Interface management configuration - IP Address: - Mask: - Gateway:
I - Procedure to display the `tunnel` interface configuration
The command prompt is displayed.
(gcap-cli)
Enter the command
show network-config tunnel
- ValidateThe system displaying the
`tunnel`interface configurationFor example:
Interface tunnel configuration - IP Address: - Mask: - Gateway:
J - Procedure to display the GCap hostname
The command prompt is displayed.
(gcap-cli)
Enter the command
show network-config hostname
- ValidateThe system displays the interface the host name of the GCap
Current hostname: GCap-name