9.3.2.8. set network-config
A - Introduction
`network-config` command of the `set` sub-group enables modifying the network configuration of the GCap management and tunnel interfaces.`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]`commandThe domain name:
`set network-config domain NAME_value`commandThe host name:
`set network-config hostname HOSTNAME_value`command
`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)
Enter the command
set network-config tunnel ip-address x.y.z.w gateway Z.Z.Z.Z mask Z.Z.Z.Z
Validate
Enter the command
set network-config management ip-address x.y.z.w gateway Z.Z.Z.Z mask Z.Z.Z.Z confirm
Validate
E - Procedure to modify the GCap domain name
The command prompt is displayed.
(gcap-cli)
To change the GCap domain in gatewatcher.com:
Enter the command
set network-config domain-name gatewatcher.com
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)
Press <y> and then confirm
To check the value modification:
Enter the following command
show network-config domain
- ValidateThe system displays the domain name
Current domain name: gatewatcher.com