Fortinet white logo
Fortinet white logo

CLI Reference

diagnose ip route

diagnose ip route

Routing table.

This topic includes the following commands:

diagnose ip route add

Add static route.

diagnose ip route add <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295> <verify> <ha>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string

<verify>

Verify operation.

string

<ha>

HA protocol

string

diagnose ip route delete

Delete static route.

diagnose ip route delete <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295> <verify> <ha>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string

<verify>

Verify operation.

string

<ha>

HA protocol

string

diagnose ip route list

List routing table.

diagnose ip route list

diagnose ip route match

Match kernel route.

diagnose ip route match <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <intf-name> <intf-name> <0-511>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

Destination address.

string

<XXX.XXX.XXX.XXX>

Source address.

string

<intf-name>

Outgoing interface.

string

<intf-name>

Incoming interface.

string

<0-511>

VRF.

string

diagnose ip route verify

Verify static route.

diagnose ip route verify <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string

diagnose ip route

diagnose ip route

Routing table.

This topic includes the following commands:

diagnose ip route add

Add static route.

diagnose ip route add <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295> <verify> <ha>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string

<verify>

Verify operation.

string

<ha>

HA protocol

string

diagnose ip route delete

Delete static route.

diagnose ip route delete <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295> <verify> <ha>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string

<verify>

Verify operation.

string

<ha>

HA protocol

string

diagnose ip route list

List routing table.

diagnose ip route list

diagnose ip route match

Match kernel route.

diagnose ip route match <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <intf-name> <intf-name> <0-511>

Parameter

Description

Type

Size

<XXX.XXX.XXX.XXX>

Destination address.

string

<XXX.XXX.XXX.XXX>

Source address.

string

<intf-name>

Outgoing interface.

string

<intf-name>

Incoming interface.

string

<0-511>

VRF.

string

diagnose ip route verify

Verify static route.

diagnose ip route verify <intf-name> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <XXX.XXX.XXX.XXX> <1-255> <0-4294967295>

Parameter

Description

Type

Size

<intf-name>

Interface Name.

string

<XXX.XXX.XXX.XXX>

IP address.

string

<XXX.XXX.XXX.XXX>

IP network mask.

string

<XXX.XXX.XXX.XXX>

Nexthop IP address.

string

<1-255>

Route distance.

string

<0-4294967295>

Route priority.

string