Fortinet black logo

CLI Reference

config switch-controller initial-config template

config 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

Description

Type

Size

Default

vlanid

Unique VLAN ID.

integer

Minimum value: 1 Maximum value: 4094

0

ip

Interface IPv4 address and subnet mask.

ipv4-classnet-host

Not Specified

0.0.0.0 0.0.0.0

allowaccess

Permitted types of management access to this interface.

option

-

Option

Description

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.

auto-ip

Automatically allocate interface address and subnet block.

option

-

enable

Option

Description

enable

Enable auto-ip status.

disable

Disable auto-ip status.

dhcp-server

Enable/disable a DHCP server on this interface.

option

-

disable

Option

Description

enable

Enable DHCP server.

disable

Disable DHCP server.

config 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

Description

Type

Size

Default

vlanid

Unique VLAN ID.

integer

Minimum value: 1 Maximum value: 4094

0

ip

Interface IPv4 address and subnet mask.

ipv4-classnet-host

Not Specified

0.0.0.0 0.0.0.0

allowaccess

Permitted types of management access to this interface.

option

-

Option

Description

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.

auto-ip

Automatically allocate interface address and subnet block.

option

-

enable

Option

Description

enable

Enable auto-ip status.

disable

Disable auto-ip status.

dhcp-server

Enable/disable a DHCP server on this interface.

option

-

disable

Option

Description

enable

Enable DHCP server.

disable

Disable DHCP server.