Step 4 (Optional): Cloud-init
This section is specific to configuring cloud-init. If not using this function, proceed to Launch instance.
This section describes how to bootstrap a FortiNAC VM using cloud-init. This method can be used if deploying VMs on AWS. When the new instance is launched, it boots with a predetermined configuration.
-
FortiNAC day zero configuration:
-
Port1 IP Address
-
Subnet mask
-
Gateway
Configure
-
Create the FortiNAC configuration script via text editor. The configuration script for a FortiNAC VM uses FortiNAC-OS CLI syntax.
Script should contain the following content:
#<HostName> Day0 Configuration
config system interface
edit port1
set ip <port1 IP address>/<mask>
set allowaccess https-adminui ssh
next end config system route
edit 1
set device port1
set gateway <Default Gateway for port1>
next
end
Example
Hostname = FNC
port1 IP address and mask = 10.12.234.175/22
Default gateway = 10.12.232.1
#FNC Day0 Configuration
config system interface
edit port1
set ip 10.12.234.175/22
set allowaccess https-adminui ssh
next end config system route
edit 1
set device port1
set gateway 10.12.232.1
next
end
-
Under Advanced Details, paste configuration script content in the User data section.