Fortinet 400 manual Adding the routes using the CLI

Models: 400

1 308
Download 308 pages 48.56 Kb
Page 56
Image 56

Configuration example: Multiple connections to the Internet

NAT/Route mode installation

 

 

3Select New to add a route for connections to the network of ISP1.

Destination IP: 100.100.100.0

Mask: 255.255.255.0

Gateway #1: 1.1.1.1

Gateway #2: 2.2.2.1

Device #1: port2

Device #2: port3

4Select New to add a route for connections to the network of ISP2.

Destination IP: 200.200.200.0

Mask: 255.255.255.0

Gateway #1: 2.2.2.1

Gateway #2: 1.1.1.1

Device #1: port3

Device #2: port2

Select OK.

5Change the order of the routes in the routing table to move the default route below the other two routes.

For the default route select Move to .

Type a number in the Move to field to move this route to the bottom of the list. If there are only 3 routes, type 3.

Select OK.

Adding the routes using the CLI

1Add the route for connections to the network of ISP2.

set system route number 1 dst 100.100.100.0 255.255.255.0 gw1 1.1.1.1 dev1 port2 gw2 2.2.2.1 dev2 port3

1Add the route for connections to the network of ISP1.

set system route number 2 dst 200.200.200.0 255.255.255.0 gw1 2.2.2.1 dev1 port3 gw2 1.1.1.1 dev2 port2

2Add the default route for primary and backup links to the Internet.

set system route number 3 dst 0.0.0.0 0.0.0.0 gw1 1.1.1.1 dev1 port2 gw2 2.2.2.1 dev2 port3

The routing table should have routes arranged as shown in Table 13.

Table 13: Example combined routing table

Destination IP‘

Mask

Gateway #1

Device #1

Gateway #2

Device #2

 

 

 

 

 

 

100.100.100.0

255.255.255.0

1.1.1.1

port2

2.2.2.1

port3

 

 

 

 

 

 

200.200.200.0

255.255.255.0

2.2.2.1

port3

1.1.1.1

port2

 

 

 

 

 

 

0.0.0.0

0.0.0.0

1.1.1.1

port2

2.2.2.1

port3

 

 

 

 

 

 

56

Fortinet Inc.

Page 56
Image 56
Fortinet 400 manual Adding the routes using the CLI, Routing table should have routes arranged as shown in Table