Fortinet Document Library

Version:


Table of Contents

CLI Reference

6.2.1
Copy Link

Configure RIP.

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

config router rip

Parameter Name Description Type Size
default-information-originate Enable/disable generation of default route.
enable: Enable setting.
disable: Disable setting.
option -
default-metric Default metric. integer Minimum value: 1 Maximum value: 16
max-out-metric Maximum metric allowed to output(0 means 'not set'). integer Minimum value: 0 Maximum value: 15
recv-buffer-size Receiving buffer size. integer Minimum value: 8129 Maximum value: 2147483647
passive-interface <name> Passive interface configuration.
Passive interface name.
string Maximum length: 79
update-timer Update timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
timeout-timer Timeout timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
garbage-timer Garbage timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
version RIP version.
1: Version 1.
2: Version 2.
option -
Parameter Name Description Type Size
prefix Distance prefix. ipv4-classnet-any Not Specified
distance Distance (1 - 255). integer Minimum value: 1 Maximum value: 255
access-list Access list for route destination. string Maximum length: 35
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
direction Distribute list direction.
in: Filter incoming packets.
out: Filter outgoing packets.
option -
listname Distribute access/prefix list name. string Maximum length: 35
interface Distribute list interface name. string Maximum length: 15
Parameter Name Description Type Size
ip IP address. ipv4-address Not Specified
Parameter Name Description Type Size
prefix Network prefix. ipv4-classnet Not Specified
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
direction Offset list direction.
in: Filter incoming packets.
out: Filter outgoing packets.
option -
access-list Access list name. string Maximum length: 35
offset offset integer Minimum value: 1 Maximum value: 16
interface Interface name. string Maximum length: 15
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
metric Redistribute metric setting. integer Minimum value: 1 Maximum value: 16
routemap Route map name. string Maximum length: 35
Parameter Name Description Type Size
auth-keychain Authentication key-chain name. string Maximum length: 35
auth-mode Authentication mode.
none: None.
text: Text.
md5: MD5.
option -
auth-string Authentication string/password. password Not Specified
receive-version Receive version.
1: Version 1.
2: Version 2.
option -
send-version Send version.
1: Version 1.
2: Version 2.
option -
send-version2-broadcast Enable/disable broadcast version 1 compatible packets.
disable: Disable broadcasting.
enable: Enable broadcasting.
option -
split-horizon-status Enable/disable split horizon.
enable: Enable setting.
disable: Disable setting.
option -
split-horizon Enable/disable split horizon.
poisoned: Poisoned.
regular: Regular.
option -
flags flags integer Minimum value: 0 Maximum value: 255

Configure RIP.

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

config router rip

Parameter Name Description Type Size
default-information-originate Enable/disable generation of default route.
enable: Enable setting.
disable: Disable setting.
option -
default-metric Default metric. integer Minimum value: 1 Maximum value: 16
max-out-metric Maximum metric allowed to output(0 means 'not set'). integer Minimum value: 0 Maximum value: 15
recv-buffer-size Receiving buffer size. integer Minimum value: 8129 Maximum value: 2147483647
passive-interface <name> Passive interface configuration.
Passive interface name.
string Maximum length: 79
update-timer Update timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
timeout-timer Timeout timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
garbage-timer Garbage timer in seconds. integer Minimum value: 5 Maximum value: 2147483647
version RIP version.
1: Version 1.
2: Version 2.
option -
Parameter Name Description Type Size
prefix Distance prefix. ipv4-classnet-any Not Specified
distance Distance (1 - 255). integer Minimum value: 1 Maximum value: 255
access-list Access list for route destination. string Maximum length: 35
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
direction Distribute list direction.
in: Filter incoming packets.
out: Filter outgoing packets.
option -
listname Distribute access/prefix list name. string Maximum length: 35
interface Distribute list interface name. string Maximum length: 15
Parameter Name Description Type Size
ip IP address. ipv4-address Not Specified
Parameter Name Description Type Size
prefix Network prefix. ipv4-classnet Not Specified
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
direction Offset list direction.
in: Filter incoming packets.
out: Filter outgoing packets.
option -
access-list Access list name. string Maximum length: 35
offset offset integer Minimum value: 1 Maximum value: 16
interface Interface name. string Maximum length: 15
Parameter Name Description Type Size
status status
enable: Enable setting.
disable: Disable setting.
option -
metric Redistribute metric setting. integer Minimum value: 1 Maximum value: 16
routemap Route map name. string Maximum length: 35
Parameter Name Description Type Size
auth-keychain Authentication key-chain name. string Maximum length: 35
auth-mode Authentication mode.
none: None.
text: Text.
md5: MD5.
option -
auth-string Authentication string/password. password Not Specified
receive-version Receive version.
1: Version 1.
2: Version 2.
option -
send-version Send version.
1: Version 1.
2: Version 2.
option -
send-version2-broadcast Enable/disable broadcast version 1 compatible packets.
disable: Disable broadcasting.
enable: Enable broadcasting.
option -
split-horizon-status Enable/disable split horizon.
enable: Enable setting.
disable: Disable setting.
option -
split-horizon Enable/disable split horizon.
poisoned: Poisoned.
regular: Regular.
option -
flags flags integer Minimum value: 0 Maximum value: 255