Fortinet white logo
Fortinet white logo

CLI Reference

switch-controller initial-config template

Configure template for auto-generated VLANs.

  config switch-controller initial-config template
      Description: Configure template for auto-generated VLANs.
      edit <name>
          set vlanid {integer}
          set ip {ipv4-classnet-host}
          set allowaccess {option1}, {option2}, ...
          set auto-ip [enable|disable]
          set dhcp-server [enable|disable]
      next
  end

config switch-controller initial-# config template

Parameter Name Description Type Size
vlanid Unique VLAN ID. integer Minimum value: 1 Maximum value: 4094
ip Interface IPv4 address and subnet mask. ipv4-classnet-host Not Specified
allowaccess Permitted types of management access to this interface.
ping: PING access.
https: HTTPS access.
ssh: SSH access.
snmp: SNMP access.
http: HTTP access.
telnet: TELNET access.
fgfm: FortiManager access.
radius-acct: RADIUS accounting access.
probe-response: Probe access.
fabric: Security Fabric access.
ftm: FTM access.
option -
auto-ip Automatically allocate interface address and subnet block.
enable: Enable auto-ip status.
disable: Disable auto-ip status.
option -
dhcp-server Enable/disable a DHCP server on this interface.
enable: Enable DHCP server.
disable: Disable DHCP server.
option -

switch-controller initial-config template

Configure template for auto-generated VLANs.

  config switch-controller initial-config template
      Description: Configure template for auto-generated VLANs.
      edit <name>
          set vlanid {integer}
          set ip {ipv4-classnet-host}
          set allowaccess {option1}, {option2}, ...
          set auto-ip [enable|disable]
          set dhcp-server [enable|disable]
      next
  end

config switch-controller initial-# config template

Parameter Name Description Type Size
vlanid Unique VLAN ID. integer Minimum value: 1 Maximum value: 4094
ip Interface IPv4 address and subnet mask. ipv4-classnet-host Not Specified
allowaccess Permitted types of management access to this interface.
ping: PING access.
https: HTTPS access.
ssh: SSH access.
snmp: SNMP access.
http: HTTP access.
telnet: TELNET access.
fgfm: FortiManager access.
radius-acct: RADIUS accounting access.
probe-response: Probe access.
fabric: Security Fabric access.
ftm: FTM access.
option -
auto-ip Automatically allocate interface address and subnet block.
enable: Enable auto-ip status.
disable: Disable auto-ip status.
option -
dhcp-server Enable/disable a DHCP server on this interface.
enable: Enable DHCP server.
disable: Disable DHCP server.
option -