Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.0.0
Download PDF
Copy Link

system stp

Use this command to configure Spanning Tree Protocol on an Internal interface switch in switch mode.

config system stp
    set region-name {string}   Set region name. size[31]
    set config-revision {integer}   STP configuration revision (0 - 4294967295, default = 0). range[0-4294967295]
    set switch-priority {option}   STP switch priority; the lower the number the higher the priority (select from 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, and 57344).
            0      0
            4096   4096
            8192   8192
            12288  12288
            16384  16384
            20480  20480
            24576  24576
            28672  28672
            32768  32768
            36864  36864
            40960  40960
            45056  45056
            49152  49152
            53248  53248
            57344  57344
    set hello-time {integer}   Hello time (1 - 10 sec, default = 2). range[1-10]
    set forward-delay {integer}   Forward delay (4 - 30 sec, default = 15). range[4-30]
    set max-age {integer}   Maximum packet age (6 - 40 sec, default = 20). range[6-40]
    set max-hops {integer}   Maximum number of hops (1 - 40, default = 20). range[1-40]
end

system stp

Use this command to configure Spanning Tree Protocol on an Internal interface switch in switch mode.

config system stp
    set region-name {string}   Set region name. size[31]
    set config-revision {integer}   STP configuration revision (0 - 4294967295, default = 0). range[0-4294967295]
    set switch-priority {option}   STP switch priority; the lower the number the higher the priority (select from 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, and 57344).
            0      0
            4096   4096
            8192   8192
            12288  12288
            16384  16384
            20480  20480
            24576  24576
            28672  28672
            32768  32768
            36864  36864
            40960  40960
            45056  45056
            49152  49152
            53248  53248
            57344  57344
    set hello-time {integer}   Hello time (1 - 10 sec, default = 2). range[1-10]
    set forward-delay {integer}   Forward delay (4 - 30 sec, default = 15). range[4-30]
    set max-age {integer}   Maximum packet age (6 - 40 sec, default = 20). range[6-40]
    set max-hops {integer}   Maximum number of hops (1 - 40, default = 20). range[1-40]
end