Fortinet white logo
Fortinet white logo

hc-settings

hc-settings

Configure the unit as a HA-Cluster mode unit.

syntax

hc-settings [-h|-l|-sc|-t|-n|-c|-p|-i|-si|-a|-se|-sd]

Option

Description

-h (or --help)

Help information.

-l

List the Cluster configuration.

-sc

Set this unit to be a HA-Cluster mode unit.

Option

Description

-t<N|M|P|R>

Set this unit to be a HA-Cluster mode unit.

N

N/A.

M

Primary unit.

P

Secondary unit.

R

Worker unit.

-n<name string>

Set alias name for this unit.

-c<HA-CLUSTER name>

Set the HA-Cluster name for primary unit.

-p<authentication code>

Set the authentication code for primary unit.

-i<interface>

Set interface used for cluster internal communication.

-si

Set the fail-over IPs for this cluster for primary unit.

Option

Description

-i<interface>

Specify the interface for external communication

-a<IP/netmask>

Specify the IP address and netmask for external communication. This IP address is applied as the alias IP of the specified interface. It must be in the same subnet as the unit IP subnet of the specified interface.

-se

Enable traffic encryption between HA cluster members.

-sd

Disable traffic encryption between HA cluster members.

Example

hc-settings -sc -tM -nPrimay -cClusterTest -p1111 -iport2

hc-settings

hc-settings

Configure the unit as a HA-Cluster mode unit.

syntax

hc-settings [-h|-l|-sc|-t|-n|-c|-p|-i|-si|-a|-se|-sd]

Option

Description

-h (or --help)

Help information.

-l

List the Cluster configuration.

-sc

Set this unit to be a HA-Cluster mode unit.

Option

Description

-t<N|M|P|R>

Set this unit to be a HA-Cluster mode unit.

N

N/A.

M

Primary unit.

P

Secondary unit.

R

Worker unit.

-n<name string>

Set alias name for this unit.

-c<HA-CLUSTER name>

Set the HA-Cluster name for primary unit.

-p<authentication code>

Set the authentication code for primary unit.

-i<interface>

Set interface used for cluster internal communication.

-si

Set the fail-over IPs for this cluster for primary unit.

Option

Description

-i<interface>

Specify the interface for external communication

-a<IP/netmask>

Specify the IP address and netmask for external communication. This IP address is applied as the alias IP of the specified interface. It must be in the same subnet as the unit IP subnet of the specified interface.

-se

Enable traffic encryption between HA cluster members.

-sd

Disable traffic encryption between HA cluster members.

Example

hc-settings -sc -tM -nPrimay -cClusterTest -p1111 -iport2