Creating a route, Adding an all-nets route – Amer Networks E5Web GUI User Manual
Page 242

3.11.4. Creating a Route
Initially, no route will exist in the main routing table that allows traffic to reach the Internet so
this must be defined. The routes parameters will be as follows:
Interface
Network
Gateway
wan
all-nets
gw-world
Notice that the destination network for this route is all-nets. When cOS Core needs to determine
which interface the received traffic should be forwarded out from, it looks in a routing table for
the "narrowest" destination network match. This all-nets route is therefore a catch-all route that
will be used when no other, more specific, matching route exists. There should therefore only be
one all-nets route.
The all-nets route is, in fact, created automatically by cOS Core when the gateway IPv4 address is
specified for an Ethernet interface.
To create the route manually in the Web Interface or InControl go to Routes > New Route.
The route to access wan_net via the wan interface will be automatically created when the
wan_net object is edited and the gateway defined.
See Chapter 4, Routing for more information about routes.
Example 3.43. Adding an all-nets Route
This example shows how an all-nets route is added manually to the main routing table. The IP
address object isp_gw_ip is the IP of the ISP's gateway.
Command-Line Interface
Change the context to be the routing table:
Device:/> cc RoutingTable main
Add the route:
Device:/main> add Route
Interface=wan
Network=all-nets
Gateway=isp_gw_ip
Return to the default CLI context:
Device:/main> cc
Device:/>
InControl
Follow the same steps used for the Web Interface below.
Web Interface
1.
Go to: Network > Routing > Routing Tables > main > Add > Route
2.
Now enter:
Chapter 3: Fundamentals
242