6.2.1.15. network-config
6.2.1.15.1. Introduction
The GCap includes:
Capture and monitoring interfaces.
Network interfaces for managing the probe via SSH and for pairing with the GCenter.
Two cases are possible:
Single-interface configuration
SSH connection for GCap management and VPN communication are managed through one interface (formerlygcp0).dual-interface configuration
The VPN communication is controlled by the one interface (formerlygcp0).
The SSH connection for GCap management is handled by another interface (formerlygcp1).
For more information on network interfaces, refer to the GCap input / output description section.
The network-config command of the show subgroup enables displaying:
The status of all GCap interfaces: command
show network-config configurationThe status for each interface: command
show network-config tunnelorshow network-config managementThe domain name: command
show network-config domainThe host name: command
show network-config hostname
6.2.1.15.2. Prerequisites
User: setup
Dependencies: N/A
6.2.1.15.3. Commands
show network-config {configuration|domain|hostname|management|tunnel}
6.2.1.15.4. Example of displaying the GCap configuration
Enter the following command.
(gcap-cli) show network-config configuration
Validate.
Depending on the single or dual interface configuration, the information is different.
The two cases are listed below.
6.2.1.15.4.1. 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
}
}
6.2.1.15.4.2. Dual-interface configuration
In this case, the system displays the configuration information.
(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
}
}
6.2.1.15.5. Example of displaying the GCap domain
Enter the following command.
(gcap-cli) show network-config domain
Validate.
The system displays the domain name.Current domain name: gatewatcher.com
6.2.1.15.6. Example of displaying the management interface configuration
Enter the following command.
(gcap-cli) show network-config management
Validate.
The system displaying themanagementinterface configuration.
For example:
Interface tunnel configuration
- IP Address: 192.168.1.2
- Mask: 255.255.255.0
- Gateway: 192.168.1.1
6.2.1.15.7. Example of displaying the tunnel interface configuration
Enter the following command.
(gcap-cli) show network-config tunnel
Validate.
The system displaying thetunnelinterface configuration.
For example:Interface tunnel configuration - IP Address: 192.168.2.2 - Mask: 255.255.255.0 - Gateway: 192.168.2.1
6.2.1.15.8. Example of displaying the host name of the GCap
Enter the following command.
(gcap-cli) show network-config hostname
Validate.
The system displays the interface the host name of the GCap.Current hostname: GCap-name