Skip to main content
adonisd
New Member
August 23, 2015
Solved

How do I set a gateway on my WAN if it is set to Manual?

Hello,

 

What I would like to know is how do I set up a default gateway for a WAN that is manual (Static IP?)

 

I know you can go to route --> Static route and just add that as a default route for everything outgoing.

However is there a way to set it as let's say PPPOE ? Where we can assign a default gateway?

    ede_pfau
    ede_pfauAnswer
    SuperUser
    August 27, 2015

    Nobody is reading the original post...he's got a STATIC WAN IP. Not PPPoE or DHCP.

     

    Answer: in this case you specify a STATIC route to "0.0.0.0/0" via your ISP's gateway address explicitly. This address should be known to you. There is no way to query it - only DHCP and PPPoE protocols do that and are supported in FortiOS.

    4 replies

    vjoshi_FTNT
    Staff
    Staff
    August 23, 2015

    Hello,

     

    What kind of WAN connection you have?

    - Do you have the details of the default gateway from the ISP or it is dynamic?

    May I know the actual requirement?

     

    gschmitt
    New Member
    August 24, 2015

    adonisd wrote:

    Where we can assign a default gateway?

    The term "default gateway" is just a nice way of saying a "0.0.0.0/0 route in case everything else fails"

    A static route pointing to your Gateway in wan1 is the same as the automatically added route for PPPoE

     

    The issue with PPPoE is just that in many countries those connections have dynamic IPs hence a static route would not work

    vjoshi_FTNT
    Staff
    Staff
    August 24, 2015

    Also, there is an option under interface settings to fetch the default gateway dynamically:

     

    config system interface

    edit <interface_name>

    set mode pppoe

    set defaultgw enable     ----->>>> this command does the trick

    end

    ede_pfau
    SuperUser
    ede_pfauAnswer
    SuperUser
    August 27, 2015

    Nobody is reading the original post...he's got a STATIC WAN IP. Not PPPoE or DHCP.

     

    Answer: in this case you specify a STATIC route to "0.0.0.0/0" via your ISP's gateway address explicitly. This address should be known to you. There is no way to query it - only DHCP and PPPoE protocols do that and are supported in FortiOS.

    Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
    Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
    Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT