Fortinet black logo

Configuring static routes

Copy Link
Copy Doc ID 61564576-2605-11ec-8c53-00505692583a:862886
Download PDF

Configuring static routes

The System > Network > Routing tab displays a list of routes and lets you configure static routes and gateways used by the FortiVoice Gateway.

Static routes direct traffic exiting the FortiVoice Gateway. You can specify through which network interface a packet will leave, and the IP address of a next-hop router that is reachable from that network interface. The router is aware of which IP addresses are reachable through various network pathways, and can forward those packets along pathways capable of reaching the packets’ ultimate destinations.

A default route is a special type of static route. A default route matches all packets, and defines a gateway router that can receive and route packets if no other, more specific static route is defined for the packet’s destination IP address.

You should configure at least one static route, a default route, that points to your gateway. However, you may configure multiple static routes if you have multiple gateway routers, each of which should receive packets destined for a different subset of IP addresses.

To determine which route a packet will be subject to, the FortiVoice Gateway compares the packet’s destination IP address to those of the static routes and forwards the packet to the route with the large prefix match.

When you add a static route through the web-based manager, the FortiVoice Gateway evaluates the route to determine if it represents a different route compared to any other route already present in the list of static routes. If no route having the same destination exists in the list of static routes, the FortiVoice Gateway adds the static route.

To view or configure static routes
  1. Go to System > Network > Routing.

    GUI field

    Description

    Destination IP/Netmask

    Displays the destination IP address and subnet of packets subject to the static route. A setting of 0.0.0.0/0.0.0 indicates that the route matches all destination IP addresses.

    Gateway

    Displays the IP address of the next-hop router to which packets subject to the static route will be forwarded.

    Interface

    The interface that this route applies to.

  2. Either click New to add a route or double-click a route to modify it.

    A Routing Entry dialog appears.

  3. Select Enable to activate the static route.
  4. In Destination IP/netmask, enter the destination IP address and netmask of packets that will be subject to this static route.

    To create a default route that will match all packets, enter 0.0.0.0/0.0.0.0.

  5. Select the interface that this route applies to.
  6. In Gateway, type the IP address of the next-hop router to which the FortiVoice Gateway will forward packets subject to this static route. This router must know how to route packets to the destination IP addresses that you have specified in Destination IP/netmask. For an Internet connection, the next hop routing gateway routes traffic to the Internet.
  7. In Comments, enter any notes you have for the route.
  8. Click Create or OK.

Configuring static routes

The System > Network > Routing tab displays a list of routes and lets you configure static routes and gateways used by the FortiVoice Gateway.

Static routes direct traffic exiting the FortiVoice Gateway. You can specify through which network interface a packet will leave, and the IP address of a next-hop router that is reachable from that network interface. The router is aware of which IP addresses are reachable through various network pathways, and can forward those packets along pathways capable of reaching the packets’ ultimate destinations.

A default route is a special type of static route. A default route matches all packets, and defines a gateway router that can receive and route packets if no other, more specific static route is defined for the packet’s destination IP address.

You should configure at least one static route, a default route, that points to your gateway. However, you may configure multiple static routes if you have multiple gateway routers, each of which should receive packets destined for a different subset of IP addresses.

To determine which route a packet will be subject to, the FortiVoice Gateway compares the packet’s destination IP address to those of the static routes and forwards the packet to the route with the large prefix match.

When you add a static route through the web-based manager, the FortiVoice Gateway evaluates the route to determine if it represents a different route compared to any other route already present in the list of static routes. If no route having the same destination exists in the list of static routes, the FortiVoice Gateway adds the static route.

To view or configure static routes
  1. Go to System > Network > Routing.

    GUI field

    Description

    Destination IP/Netmask

    Displays the destination IP address and subnet of packets subject to the static route. A setting of 0.0.0.0/0.0.0 indicates that the route matches all destination IP addresses.

    Gateway

    Displays the IP address of the next-hop router to which packets subject to the static route will be forwarded.

    Interface

    The interface that this route applies to.

  2. Either click New to add a route or double-click a route to modify it.

    A Routing Entry dialog appears.

  3. Select Enable to activate the static route.
  4. In Destination IP/netmask, enter the destination IP address and netmask of packets that will be subject to this static route.

    To create a default route that will match all packets, enter 0.0.0.0/0.0.0.0.

  5. Select the interface that this route applies to.
  6. In Gateway, type the IP address of the next-hop router to which the FortiVoice Gateway will forward packets subject to this static route. This router must know how to route packets to the destination IP addresses that you have specified in Destination IP/netmask. For an Internet connection, the next hop routing gateway routes traffic to the Internet.
  7. In Comments, enter any notes you have for the route.
  8. Click Create or OK.