Fortinet white logo
Fortinet white logo

CLI Reference

config firewall shaping-profile

config firewall shaping-profile

Configure shaping profiles.

config firewall shaping-profile
    Description: Configure shaping profiles.
    edit <profile-name>
        set comment {var-string}
        set default-class-id {integer}
        config shaping-entries
            Description: Define shaping entries of this shaping profile.
            edit <id>
                set class-id {integer}
                set priority [top|critical|...]
                set guaranteed-bandwidth-percentage {integer}
                set maximum-bandwidth-percentage {integer}
                set limit {integer}
                set burst-in-msec {integer}
                set cburst-in-msec {integer}
                set red-probability {integer}
                set min {integer}
                set max {integer}
            next
        end
        set type [policing|queuing]
    next
end

config firewall shaping-profile

Parameter

Description

Type

Size

Default

comment

Comment.

var-string

Maximum length: 1023

default-class-id

Default class ID to handle unclassified packets (including all local traffic).

integer

Minimum value: 0 Maximum value: 4294967295

0

profile-name

Shaping profile name.

string

Maximum length: 35

type

Select shaping profile type: policing / queuing.

option

-

policing

Option

Description

policing

Enable policing mode.

queuing

Enable queuing mode.

config shaping-entries

Parameter

Description

Type

Size

Default

id

ID number.

integer

Minimum value: 0 Maximum value: 4294967295

0

class-id

Class ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

priority

Priority.

option

-

high

Option

Description

top

Top priority.

critical

Critical priority.

high

High priority.

medium

Medium priority.

low

Low priority.

guaranteed-bandwidth-percentage

Guaranteed bandwidth in percentage.

integer

Minimum value: 0 Maximum value: 100

0

maximum-bandwidth-percentage

Maximum bandwidth in percentage.

integer

Minimum value: 1 Maximum value: 100

1

limit

Hard limit on the real queue size in packets.

integer

Minimum value: 5 Maximum value: 10000

1000

burst-in-msec

Number of bytes that can be burst at maximum-bandwidth speed. Formula: burst = maximum-bandwidth*burst-in-msec.

integer

Minimum value: 0 Maximum value: 2000

0

cburst-in-msec

Number of bytes that can be burst as fast as the interface can transmit. Formula: cburst = maximum-bandwidth*cburst-in-msec.

integer

Minimum value: 0 Maximum value: 2000

0

red-probability

Maximum probability (in percentage) for RED marking.

integer

Minimum value: 0 Maximum value: 20

0

min

Average queue size in packets at which RED drop becomes a possibility.

integer

Minimum value: 3 Maximum value: 3000

83

max

Average queue size in packets at which RED drop probability is maximal.

integer

Minimum value: 3 Maximum value: 3000

250

config firewall shaping-profile

config firewall shaping-profile

Configure shaping profiles.

config firewall shaping-profile
    Description: Configure shaping profiles.
    edit <profile-name>
        set comment {var-string}
        set default-class-id {integer}
        config shaping-entries
            Description: Define shaping entries of this shaping profile.
            edit <id>
                set class-id {integer}
                set priority [top|critical|...]
                set guaranteed-bandwidth-percentage {integer}
                set maximum-bandwidth-percentage {integer}
                set limit {integer}
                set burst-in-msec {integer}
                set cburst-in-msec {integer}
                set red-probability {integer}
                set min {integer}
                set max {integer}
            next
        end
        set type [policing|queuing]
    next
end

config firewall shaping-profile

Parameter

Description

Type

Size

Default

comment

Comment.

var-string

Maximum length: 1023

default-class-id

Default class ID to handle unclassified packets (including all local traffic).

integer

Minimum value: 0 Maximum value: 4294967295

0

profile-name

Shaping profile name.

string

Maximum length: 35

type

Select shaping profile type: policing / queuing.

option

-

policing

Option

Description

policing

Enable policing mode.

queuing

Enable queuing mode.

config shaping-entries

Parameter

Description

Type

Size

Default

id

ID number.

integer

Minimum value: 0 Maximum value: 4294967295

0

class-id

Class ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

priority

Priority.

option

-

high

Option

Description

top

Top priority.

critical

Critical priority.

high

High priority.

medium

Medium priority.

low

Low priority.

guaranteed-bandwidth-percentage

Guaranteed bandwidth in percentage.

integer

Minimum value: 0 Maximum value: 100

0

maximum-bandwidth-percentage

Maximum bandwidth in percentage.

integer

Minimum value: 1 Maximum value: 100

1

limit

Hard limit on the real queue size in packets.

integer

Minimum value: 5 Maximum value: 10000

1000

burst-in-msec

Number of bytes that can be burst at maximum-bandwidth speed. Formula: burst = maximum-bandwidth*burst-in-msec.

integer

Minimum value: 0 Maximum value: 2000

0

cburst-in-msec

Number of bytes that can be burst as fast as the interface can transmit. Formula: cburst = maximum-bandwidth*cburst-in-msec.

integer

Minimum value: 0 Maximum value: 2000

0

red-probability

Maximum probability (in percentage) for RED marking.

integer

Minimum value: 0 Maximum value: 20

0

min

Average queue size in packets at which RED drop becomes a possibility.

integer

Minimum value: 3 Maximum value: 3000

83

max

Average queue size in packets at which RED drop probability is maximal.

integer

Minimum value: 3 Maximum value: 3000

250