5.5.10. Managing capture interface settings monx
5.5.10.1. Introduction
This procedure describes:
Viewing the network settings
Modifying these parameters
To... |
Use the command |
described in the procedure |
---|---|---|
obtain an overview of the information on all network interfaces |
Procedure A |
|
display the MTU value of the interfaces |
Procedure B |
|
modify the MTU value of the interfaces |
Procedure B |
|
display the available detection interfaces |
Procedure C |
|
manage the available detection interfaces |
Procedure C |
5.5.10.2. Prerequisites
User: setup
Commands used in this procedure:
5.5.10.3. Preliminary operations
Connect to the GCap (see Procedure for connecting to the GCap via SSH).
Stop the detection engine (see monitoring-engine).
5.5.10.4. Procedure A: Display the network configuration
Enter the following command.
(gcap-cli) show interfaces
Validate.
The system displays the information of all network interfaces.
Note
The mon0
, mon1
, mon2
interface is enabled ( field: role, value : capture ).
The enp27s0
interface is disabled ( field: role, value : inactive ).
5.5.10.5. Procedure B: display or change the MTU value
To display the current configuration of enabled interfaces:
Enter the following command.
(gcap-cli) show interfaces
Validate.
The system displays the result.
The values are displayed for all enabled network interfaces (*MTU* field )
In our example, to change the current configuration of enabled interfaces: e.g. to change the MTU value of the
mon0
interfaceEnter the following command.
(gcap-cli) set advanced-configuration mtu mon1 2000
Validate.
The system displays the result.Updating Network MTU configuration to: - enp4s0: 2000
5.5.10.6. Procedure C: display or change the available detection interfaces
To display the information on the detection interfaces:
Enter the following command.
(gcap-cli) show interfaces
Validate.
The system displays the available detection interfaces.
The information displayed is:
Label
: the label name of the interfaceName
: the system name of the interfaceRole
: the role assigned to the interfaceCapture capability
: if the interface can capture trafficMTU
: the MTU of the interfacePhysical Address
: the MAC address of the interfaceSpeed
: the interface speedType
: the type of cable/sfp connected to the physical portVendor ID
: the Vendor ID of the network cardDevice ID
: the Device ID of the network cardPCI bus
: PCI bus number used by the network cardIn our example, mon0, mon1 and mon2 are enabled ( field: role, value : capture ).
To activate an interface (here enp27s0 for example):
Enter the following command.
(gcap-cli) set interfaces assign-role enp27s0 capture
Validate.
then to check the new configuration
(gcap-cli) show interfaces
Validate.
The system displays the available detection interfaces.
To deactivate an interface (here mon0 for example):
Enter the following command.
(gcap-cli) set interfaces assign-role enp27s0 inactive
Validate.
To change the interface start-up delay by five seconds for example
Enter the following command.
(gcap-cli) set interfaces delay 5
Validate.