FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
riteshpv
Staff
Staff
Article Id 194617
Description
This article describes when it is recommended to disable auto-stp-priority.

Solution
If the FortiSwitch is managed by FortGate and there is a need to overwrite the priority of the FortiSwitch then it is possible to disable the auto-stp-priority on that particular FortiSwitch.
# config switch global
    set auto-stp-priority disable
end
It is possible to push this same config from FortGate using custom command:

Create Custom command.
# config switch-controller custom-command
    edit "test"
        set description ''
        set command "config switch global %0a set auto-stp-priority disable %0a end %0a"
    next
end
Apply Custom command to specific FortiSwitch.
# config switch-controller  managed-switch
    edit S448DFXXXXXXXX
# config custom-command
    edit "1"
        set command-name "test"
    next
Verify the config is reflecting in the FortiSwitch using the command directly on FortiSwitch:
S448DFXXXXXXX # show full switch global
# config switch global
    set auto-isl enable
    set auto-isl-port-group 0
    set auto-stp-priority disable                         <-----
    set dhcp-snooping-database-export disable
end

Related Articles

Technical Tip: Configure STP priority using 'custom-command 'on FortiGate

Contributors