Fortinet white logo
Fortinet white logo

CLI Reference

Config static

config static

Description: Configures redistribute static routes.

Config redistribute

Config static

Set status [enable | disable]

Set metric-type [1 | 2]

Set metric [0 – 16777214]

Set routemap <name1>

Unset

Show

End

Show

End

Show

End

Sample command:
FX201E5919000057 (ospf) # show
config router ospf
    set status disable
    set router-id 0.0.0.0
    config area
        edit 192.168.200.24
        next
    end
    config network
        edit 1
            set prefix 192.168.200.0/24
            set area 192.168.200.24
        next
    end
    config ospf-interface
        edit 1
            set status enable
            set interface lan
            set mtu-ignore enable
            set cost 3400
        next
    end
    config redistribute
        config connected
            set status disable
            set metric-type 2
            set metric 10
            set routemap
        end
        config static
            set status disable
            set metric-type 2
            set metric 10
            set routemap
        end
    end
end

Config static

config static

Description: Configures redistribute static routes.

Config redistribute

Config static

Set status [enable | disable]

Set metric-type [1 | 2]

Set metric [0 – 16777214]

Set routemap <name1>

Unset

Show

End

Show

End

Show

End

Sample command:
FX201E5919000057 (ospf) # show
config router ospf
    set status disable
    set router-id 0.0.0.0
    config area
        edit 192.168.200.24
        next
    end
    config network
        edit 1
            set prefix 192.168.200.0/24
            set area 192.168.200.24
        next
    end
    config ospf-interface
        edit 1
            set status enable
            set interface lan
            set mtu-ignore enable
            set cost 3400
        next
    end
    config redistribute
        config connected
            set status disable
            set metric-type 2
            set metric 10
            set routemap
        end
        config static
            set status disable
            set metric-type 2
            set metric 10
            set routemap
        end
    end
end