83.12. How to configure the default IP route

83.12.1. How to configure the default IP route in case Abilis is connected to an ADSL USB or V.35/G.703 modem

Enter into the Abilis control-program or open the configuration file with the Console configurator and type the following commands.

a ipr net:0.0.0.0/0 ip:3Add a default route by configuring in the IP parameter the IP resource associated to the WAN connection.
save confSave the configuration.
[Note]Note

In the Console configurator, you must type the command: a sipr id:0 net:0.0.0.0/0 ip:3

83.12.2. How to configure the default IP route in case Abilis is connected to an Ethernet ADSL router

Enter into the Abilis control-program or open the configuration file with the Console configurator and type the following commands.

a ipr net:0.0.0.0/0 gw:192.168.2.254 ip:2Add a default route by configuring in the GW parameter the IP address of the ADSL router and in the IP parameter the IP resource connected to the ADSL router.
save confSave the configuration.
[Note]Note

In the Console configurator, you must type the command: a sipr id:0 net:0.0.0.0/0 gw:192.168.2.254 ip:2

83.12.3. How to configure an alternative default IP route

Administrative distance is a feature used by routers to select the best path when there are two or more different routes towards the same destination; the route with the lowest value of AD has the highest priority into the IP Routing table.

In the following scheme, the “Best” route for the network 0.0.0.0/0 is the IP-3 resource. Let's see how to configure the IP-4 resource as the alternative route that will be considered only if the primary one is down; in normal conditions the route towards IP-4 resource is ignored.

Enter into the Abilis control-program or open the configuration file with the Console configurator and type the following commands.

a ipad net:0.0.0.0/0 prot:static distance:180 ip:4Add an entry in the IPAD table for the network 0.0.0.0/0.
a ipr net:0.0.0.0/0 ip:4 -fdAdd an entry in the IPR table for the network 0.0.0.0/0.
save confSave the configuration.

On a working Abilis, you must refresh the IPAD table: init ipad.

[Note]Note

The option -fd has been used because a static routing towards network 0.0.0.0/0 was already present.

[17:53:34] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |       GW:       |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
...
...
|*|S| | | 000.000.000.000/0  | 000.000.000.000    |                 |   3|  1|
| |S| | | 000.000.000.000/0  | 000.000.000.000    |                 |   4|180|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
[Note]Note

In the Console configurator, you must type the command: a sipr id:1 net:0.0.0.0/0 ip:4