Fortinet white logo
Fortinet white logo

CLI Reference

config router rip

config router rip

Configure RIP.

config router rip
    Description: Configure RIP.
    set default-information-originate [enable|disable]
    set default-metric {integer}
    config distance
        Description: Distance.
        edit <id>
            set access-list {string}
            set distance {integer}
            set prefix {ipv4-classnet-any}
        next
    end
    config distribute-list
        Description: Distribute list.
        edit <id>
            set direction [in|out]
            set interface {string}
            set listname {string}
            set status [enable|disable]
        next
    end
    set garbage-timer {integer}
    config interface
        Description: RIP interface configuration.
        edit <name>
            set auth-keychain {string}
            set auth-mode [none|text|...]
            set auth-string {password}
            set flags {integer}
            set receive-version {option1}, {option2}, ...
            set send-version {option1}, {option2}, ...
            set send-version2-broadcast [disable|enable]
            set split-horizon [poisoned|regular]
            set split-horizon-status [enable|disable]
        next
    end
    set max-out-metric {integer}
    config neighbor
        Description: Neighbor.
        edit <id>
            set ip {ipv4-address}
        next
    end
    config network
        Description: Network.
        edit <id>
            set prefix {ipv4-classnet}
        next
    end
    config offset-list
        Description: Offset list.
        edit <id>
            set access-list {string}
            set direction [in|out]
            set interface {string}
            set offset {integer}
            set status [enable|disable]
        next
    end
    set passive-interface <name1>, <name2>, ...
    config redistribute
        Description: Redistribute configuration. Read-only.
        edit <name>
            set metric {integer}
            set routemap {string}
            set status [enable|disable]
        next
    end
    set timeout-timer {integer}
    set update-timer {integer}
    set version [1|2]
end

config router rip

Parameter

Description

Type

Size

Default

default-information-originate

Enable/disable generation of default route.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

default-metric

Default metric.

integer

Minimum value: 1 Maximum value: 16

1

garbage-timer

Garbage timer in seconds.

integer

Minimum value: 5 Maximum value: 2147483647

120

max-out-metric

Maximum metric allowed to output(0 means 'not set').

integer

Minimum value: 0 Maximum value: 15

0

passive-interface <name>

Passive interface configuration.

Passive interface name.

string

Maximum length: 79

timeout-timer

Timeout timer in seconds.

integer

Minimum value: 5 Maximum value: 2147483647

180

update-timer

Update timer in seconds.

integer

Minimum value: 1 Maximum value: 2147483647

30

version

RIP version.

option

-

2

Option

Description

1

Version 1.

2

Version 2.

config distance

Parameter

Description

Type

Size

Default

access-list

Access list for route destination.

string

Maximum length: 35

distance

Distance.

integer

Minimum value: 1 Maximum value: 255

0

id

Distance ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix

Distance prefix.

ipv4-classnet-any

Not Specified

0.0.0.0 0.0.0.0

config distribute-list

Parameter

Description

Type

Size

Default

direction

Distribute list direction.

option

-

out

Option

Description

in

Filter incoming packets.

out

Filter outgoing packets.

id

Distribute list ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

Distribute list interface name.

string

Maximum length: 15

listname

Distribute access/prefix list name.

string

Maximum length: 35

status

Status.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

config interface

Parameter

Description

Type

Size

Default

auth-keychain

Authentication key-chain name.

string

Maximum length: 35

auth-mode

Authentication mode.

option

-

none

Option

Description

none

None.

text

Text.

md5

MD5.

auth-string

Authentication string/password.

password

Not Specified

flags

Flags. Read-only.

integer

Minimum value: 0 Maximum value: 255

8

name

Interface name.

string

Maximum length: 35

receive-version

Receive version.

option

-

Option

Description

1

Version 1.

2

Version 2.

send-version

Send version.

option

-

Option

Description

1

Version 1.

2

Version 2.

send-version2-broadcast

Enable/disable broadcast version 1 compatible packets.

option

-

disable

Option

Description

disable

Disable broadcasting.

enable

Enable broadcasting.

split-horizon

Enable/disable split horizon.

option

-

poisoned

Option

Description

poisoned

Poisoned.

regular

Regular.

split-horizon-status

Enable/disable split horizon.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

config neighbor

Parameter

Description

Type

Size

Default

id

Neighbor entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip

IP address.

ipv4-address

Not Specified

0.0.0.0

config network

Parameter

Description

Type

Size

Default

id

Network entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix

Network prefix.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

config offset-list

Parameter

Description

Type

Size

Default

access-list

Access list name.

string

Maximum length: 35

direction

Offset list direction.

option

-

out

Option

Description

in

Filter incoming packets.

out

Filter outgoing packets.

id

Offset-list ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

Interface name.

string

Maximum length: 15

offset

Offset.

integer

Minimum value: 1 Maximum value: 16

0

status

Status.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

config redistribute

Parameter

Description

Type

Size

Default

metric

Redistribute metric setting.

integer

Minimum value: 1 Maximum value: 16

0

name

Redistribute name.

string

Maximum length: 35

routemap

Route map name.

string

Maximum length: 35

status

Status.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

config router rip

config router rip

Configure RIP.

config router rip
    Description: Configure RIP.
    set default-information-originate [enable|disable]
    set default-metric {integer}
    config distance
        Description: Distance.
        edit <id>
            set access-list {string}
            set distance {integer}
            set prefix {ipv4-classnet-any}
        next
    end
    config distribute-list
        Description: Distribute list.
        edit <id>
            set direction [in|out]
            set interface {string}
            set listname {string}
            set status [enable|disable]
        next
    end
    set garbage-timer {integer}
    config interface
        Description: RIP interface configuration.
        edit <name>
            set auth-keychain {string}
            set auth-mode [none|text|...]
            set auth-string {password}
            set flags {integer}
            set receive-version {option1}, {option2}, ...
            set send-version {option1}, {option2}, ...
            set send-version2-broadcast [disable|enable]
            set split-horizon [poisoned|regular]
            set split-horizon-status [enable|disable]
        next
    end
    set max-out-metric {integer}
    config neighbor
        Description: Neighbor.
        edit <id>
            set ip {ipv4-address}
        next
    end
    config network
        Description: Network.
        edit <id>
            set prefix {ipv4-classnet}
        next
    end
    config offset-list
        Description: Offset list.
        edit <id>
            set access-list {string}
            set direction [in|out]
            set interface {string}
            set offset {integer}
            set status [enable|disable]
        next
    end
    set passive-interface <name1>, <name2>, ...
    config redistribute
        Description: Redistribute configuration. Read-only.
        edit <name>
            set metric {integer}
            set routemap {string}
            set status [enable|disable]
        next
    end
    set timeout-timer {integer}
    set update-timer {integer}
    set version [1|2]
end

config router rip

Parameter

Description

Type

Size

Default

default-information-originate

Enable/disable generation of default route.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

default-metric

Default metric.

integer

Minimum value: 1 Maximum value: 16

1

garbage-timer

Garbage timer in seconds.

integer

Minimum value: 5 Maximum value: 2147483647

120

max-out-metric

Maximum metric allowed to output(0 means 'not set').

integer

Minimum value: 0 Maximum value: 15

0

passive-interface <name>

Passive interface configuration.

Passive interface name.

string

Maximum length: 79

timeout-timer

Timeout timer in seconds.

integer

Minimum value: 5 Maximum value: 2147483647

180

update-timer

Update timer in seconds.

integer

Minimum value: 1 Maximum value: 2147483647

30

version

RIP version.

option

-

2

Option

Description

1

Version 1.

2

Version 2.

config distance

Parameter

Description

Type

Size

Default

access-list

Access list for route destination.

string

Maximum length: 35

distance

Distance.

integer

Minimum value: 1 Maximum value: 255

0

id

Distance ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix

Distance prefix.

ipv4-classnet-any

Not Specified

0.0.0.0 0.0.0.0

config distribute-list

Parameter

Description

Type

Size

Default

direction

Distribute list direction.

option

-

out

Option

Description

in

Filter incoming packets.

out

Filter outgoing packets.

id

Distribute list ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

Distribute list interface name.

string

Maximum length: 15

listname

Distribute access/prefix list name.

string

Maximum length: 35

status

Status.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.

config interface

Parameter

Description

Type

Size

Default

auth-keychain

Authentication key-chain name.

string

Maximum length: 35

auth-mode

Authentication mode.

option

-

none

Option

Description

none

None.

text

Text.

md5

MD5.

auth-string

Authentication string/password.

password

Not Specified

flags

Flags. Read-only.

integer

Minimum value: 0 Maximum value: 255

8

name

Interface name.

string

Maximum length: 35

receive-version

Receive version.

option

-

Option

Description

1

Version 1.

2

Version 2.

send-version

Send version.

option

-

Option

Description

1

Version 1.

2

Version 2.

send-version2-broadcast

Enable/disable broadcast version 1 compatible packets.

option

-

disable

Option

Description

disable

Disable broadcasting.

enable

Enable broadcasting.

split-horizon

Enable/disable split horizon.

option

-

poisoned

Option

Description

poisoned

Poisoned.

regular

Regular.

split-horizon-status

Enable/disable split horizon.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

config neighbor

Parameter

Description

Type

Size

Default

id

Neighbor entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

ip

IP address.

ipv4-address

Not Specified

0.0.0.0

config network

Parameter

Description

Type

Size

Default

id

Network entry ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

prefix

Network prefix.

ipv4-classnet

Not Specified

0.0.0.0 0.0.0.0

config offset-list

Parameter

Description

Type

Size

Default

access-list

Access list name.

string

Maximum length: 35

direction

Offset list direction.

option

-

out

Option

Description

in

Filter incoming packets.

out

Filter outgoing packets.

id

Offset-list ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

interface

Interface name.

string

Maximum length: 15

offset

Offset.

integer

Minimum value: 1 Maximum value: 16

0

status

Status.

option

-

enable

Option

Description

enable

Enable setting.

disable

Disable setting.

config redistribute

Parameter

Description

Type

Size

Default

metric

Redistribute metric setting.

integer

Minimum value: 1 Maximum value: 16

0

name

Redistribute name.

string

Maximum length: 35

routemap

Route map name.

string

Maximum length: 35

status

Status.

option

-

disable

Option

Description

enable

Enable setting.

disable

Disable setting.