Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
abbio90
New Contributor

STATIC Public IP /32

Good morning, I have a public ip 1.2.3.4/255.255.255.255 with gateway 192.168.80.1 if I set ip on the interface in /32 and create a route with dst 0.0.0.0/0.0.0.0 gw 192.168.80.1 doesn't work. Maybe because the connected route to reach 192.168.80.1 is not created, how should I configure it? If I set the same directly on a PC it works

I create guides on the network, you can find them on my website
I create guides on the network, you can find them on my website
5 REPLIES 5
ndumaj
Staff
Staff

Dear @abbio90
Where is the GW 192.168.80.1 set?
Where did you set the Public IP?
What is the FGT firmware version in place?

BR

- Happy to help, hit like and accept the solution -
abbio90
New Contributor

the gateway is set as static default route. I enter the public IP in the interface itself. the version is 5.2.15

I create guides on the network, you can find them on my website
I create guides on the network, you can find them on my website
ndumaj

Hello @abbio90 
FGT 5.2.15 quite old :)
Then check the routing part on FW:
get router info routing-table all

Going to to Router > Static > Static Routes.
Create a route external  --> share the error.

Check the handbook:
https://fortinetweb.s3.amazonaws.com/docs.fortinet.com/v2/attachments/ad42e5fa-1a0f-11e9-9685-f8bc12...

also CLI refrence:
https://fortinetweb.s3.amazonaws.com/docs.fortinet.com/v2/attachments/27300d29-1a11-11e9-9685-f8bc12...

BR

- Happy to help, hit like and accept the solution -
dbu
Staff
Staff

Hi @abbio90 , 
Your public IP should be on same network with the ISP IP. 

1.2.3.4/32 and 192.168.80.1 gateway have nothing in common.
Maybe i missing something here. 

Regarding the static route you can set like this from GUI :

static.PNG

 

Or from CLI :
config router static
edit 1
set gateway 10.191.31.111
set device "port1"
next
end

 



Regards!
If you have found a solution, please like and accept it to make it easily accessible for others.
alwis
Staff
Staff

Dear @abbio90 

 

If you set your subnet to be /32 on the interface, i don't think its possible to create a static

route on fortigate since it was /32 and the only available ip is the 1.2.3.4 only since it was /32. Further more the ip set on interface and the gateway was not in any of the interface on your environment.

You mentioned you set on PC it works, are you configure it on network adapter?, can you show us how you configure it?

 

Regards

Alwis

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors