Fortinet Document Library

Version:

Version:


Table of Contents

Admin Guide (Standalone)

Download PDF
Copy Link

View routing configurations

Use the following commands to view routing configurations.

View routing targets:

get router info target

== [ target.lo ]

device : lo

next-hop : 0.0.0.0

route type : automatic

routing-table : target.lo.rt.tbl

reference counter : 0

 

== [ target.lan]

device : lan

next-hop : 192.168.10.99

route type : automatic

routing-table : target.lan.rt.tbl

reference counter : 0

 

== [ target.vwan1 ]

device : vwan1

next-hop : 0.0.0.0

route type : automatic

routing-table : target.vwan1.rt.tbl

reference counter : 0

View PBR configurations:

get router info policy

== [ vwan1-pbr ]

seq : 100

status : enable

input-interface :

src : 192.168.2.0/24

src-addr :

dst :

dst-addr :

service :

target : target.vwan1

routing-table : target.vwan1.rt.tbl

comment :

View routing tables:

get router info routing-table all

Codes: K - kernel, C - connected, S - static

* - candidate default

* 0.0.0.0/0 is the default routing.

View routing configurations

Use the following commands to view routing configurations.

View routing targets:

get router info target

== [ target.lo ]

device : lo

next-hop : 0.0.0.0

route type : automatic

routing-table : target.lo.rt.tbl

reference counter : 0

 

== [ target.lan]

device : lan

next-hop : 192.168.10.99

route type : automatic

routing-table : target.lan.rt.tbl

reference counter : 0

 

== [ target.vwan1 ]

device : vwan1

next-hop : 0.0.0.0

route type : automatic

routing-table : target.vwan1.rt.tbl

reference counter : 0

View PBR configurations:

get router info policy

== [ vwan1-pbr ]

seq : 100

status : enable

input-interface :

src : 192.168.2.0/24

src-addr :

dst :

dst-addr :

service :

target : target.vwan1

routing-table : target.vwan1.rt.tbl

comment :

View routing tables:

get router info routing-table all

Codes: K - kernel, C - connected, S - static

* - candidate default

* 0.0.0.0/0 is the default routing.