Fortinet black logo

CLI Reference

system physical-switch

system physical-switch

Use this command to configure the Layer 2 functions on FortiGate hardware-based switches.

config system physical-switch
    edit {name}
    # Configure physical switches.
        set name {string}   Name. size[15]
        set age-enable {enable | disable}   Enable/disable layer 2 age timer.
        set age-val {integer}   Layer 2 table age timer Value. range[0-4294967295]
        config port
            edit {name}
            # Configure member ports.
                set name {string}   Physical port name. size[15]
                set speed {option}   Speed.
                        auto      Automatically adjust speed.
                        10full    10M full-duplex.
                        10half    10M half-duplex.
                        100full   100M full-duplex.
                        100half   100M half-duplex.
                        1000full  1000M full-duplex.
                        1000half  1000M half-duplex.
                        1000auto  1000M auto adjust.
                set status {up | down}   Interface status.
                        up    Interface up.
                        down  Interface down.
            next
    next
end

Additional information

The following section is for those options that require additional explanation.

age-val {seconds}

Specify the Layer 2 ageing timer value in seconds. Range: 0 - 4294967295, the upper limit is approximately 138 years. Default: 3158067, or approximately one month.

system physical-switch

Use this command to configure the Layer 2 functions on FortiGate hardware-based switches.

config system physical-switch
    edit {name}
    # Configure physical switches.
        set name {string}   Name. size[15]
        set age-enable {enable | disable}   Enable/disable layer 2 age timer.
        set age-val {integer}   Layer 2 table age timer Value. range[0-4294967295]
        config port
            edit {name}
            # Configure member ports.
                set name {string}   Physical port name. size[15]
                set speed {option}   Speed.
                        auto      Automatically adjust speed.
                        10full    10M full-duplex.
                        10half    10M half-duplex.
                        100full   100M full-duplex.
                        100half   100M half-duplex.
                        1000full  1000M full-duplex.
                        1000half  1000M half-duplex.
                        1000auto  1000M auto adjust.
                set status {up | down}   Interface status.
                        up    Interface up.
                        down  Interface down.
            next
    next
end

Additional information

The following section is for those options that require additional explanation.

age-val {seconds}

Specify the Layer 2 ageing timer value in seconds. Range: 0 - 4294967295, the upper limit is approximately 138 years. Default: 3158067, or approximately one month.