Fortinet white logo
Fortinet white logo

CLI Reference

config static

config static

Description: Configure 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
Parameter Description Type Size Default
status Status of the OSPF configuration. option - disable

Option Description
enable Enable OSPF.
disable Disable OSPF.
router-id Router ID. IPv4 address - 0.0.0.0
config area OSPF area configuration. IPv4 address - none
config network OSPF network configuration. option - none
Option Description
prefix Prefix.
area Attach the network to area.
config ospf-interface OSPF interface configuration. option - none
Option Description
status Enable/disable status.
interface Interface name.
cost Cost of the interface: 0 - 65535; 0 means auto-cost.
mtu-ignore Enable/disable ignore MTU.
config redistribute Redistribute configuration. option - none

Option Description
config connected
Option Description
status Enable/disable redistribute connected.
metric-type Metric type integer.
metric Redistribute metric setting.
routemap Route map name.
config static
Option Description
status Enable/disable redistribute static.
metric-type Metric type integer.
metric Redistribute metric setting.
routemap Route map name.

config static

config static

Description: Configure 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
Parameter Description Type Size Default
status Status of the OSPF configuration. option - disable

Option Description
enable Enable OSPF.
disable Disable OSPF.
router-id Router ID. IPv4 address - 0.0.0.0
config area OSPF area configuration. IPv4 address - none
config network OSPF network configuration. option - none
Option Description
prefix Prefix.
area Attach the network to area.
config ospf-interface OSPF interface configuration. option - none
Option Description
status Enable/disable status.
interface Interface name.
cost Cost of the interface: 0 - 65535; 0 means auto-cost.
mtu-ignore Enable/disable ignore MTU.
config redistribute Redistribute configuration. option - none

Option Description
config connected
Option Description
status Enable/disable redistribute connected.
metric-type Metric type integer.
metric Redistribute metric setting.
routemap Route map name.
config static
Option Description
status Enable/disable redistribute static.
metric-type Metric type integer.
metric Redistribute metric setting.
routemap Route map name.