20.2. IP Routing table

Changes of static routings are active immediately, while Abilis CPX works.

The command save conf saves only static routings inside the table.

The maximum size of the IP routing table can be configured through the parameter MAXROUTE of the IP Router resource, whose default value is 500.

In the configuration files up to 255 static routings are saved, while the connected routings are derived from the configurations of IP ports. See Section 20.3.5.1, “Examples of REDIS parameter use” to have more information about connected routings.

The available commands for managing the IP routings table are the following:

20.2.1. D IPR (Display IP Routing)

It shows the IP routing table. By typing d ipr ? command it's possible to display the meaning of all parameters.

[14:36:28] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |   GW: or IPLB   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 010.000.020.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|C| | | 010.255.255.000/30 | 255.255.255.252    |                 |  14|  0|
|*|R| | | 010.255.255.004/30 | 255.255.255.252    | 010.000.020.002 |   0|120|
| |S| | | 010.096.000.000/12 | 255.240.000.000    |                 |D 22|  1|
| |S| | | 010.096.000.000/12 | 255.240.000.000    |                 |  10|  1|
|*|R| | | 000.000.000.000/0  | 000.000.000.000    | 010.255.255.002 |  14|120|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

Meaning of the parameters:

B (Best)

This parameter has only an informative value and it cannot be modified. In case that two or more routings with the same NET value are present, it identifies the best one.

P (Provenience)

This parameter has only an informative value and it cannot be modified. It shows the origin of the routing [S: static; R: obtained from the RIP protocol; O: obtained from the OSPF protocol; C: obtained from the configuration table of the IP ports (this kind of routing is referred as directly connected)].

S (Status)

It indicates the state of the single routing. Every time some changes occurs to IPRTR table, routings could change their state [Empty Field: normal state; A: Added state: routing is just added into the table and is going to be accepted. Once confirmed by IPRTR, it will go into normal state; C: Changed state: routing has changed some parameters and is going to be accepted. Once confirmed by IPRTR, it will go into normal state; D: Deleted state: routing is just requested for being deleted from table. Once request is confirmed by IPRTR, routing will be removed from the table; H: Hidden state: routing hidden parameter is changed from NO to YES. Once request is confirmed by IPRTR, routing will go into normal state].

H (Hide)

It sets whether the static routing has to be hidden to the other dynamic routing protocols like RIP and OSPF [NO: the field will be empty and the routing will be inserted in the RIP and OSPF local table; YES: the character * will be shown, meaning that the routing won't be inserted in the RIP and OSPF local table].

NET/MASK

It sets the destination network of the routing; it's shown in Slash Notation.

MASK/ or SRNET/SRMASK

It sets the mask related to the destination network shown in DDN (Dotted Decimal Notation), but can also indicate address and mask (in Slash Notation) of the source network that make true the routing.

GW/or IPLB

It sets the address of the destination gateway, in Dotted Decimal Notation.

IP

It sets the IP resource where to route the IP datagram. If, at the moment of the visualization, the IP resource that is referenced by the routing is in DOWN state, beside the port index, the character D will appear. The value NONE stands for “no IP resource”; it can be used for deactivating the IP routing without cancelling it. The value R-ID stands for “Router-ID”; it cannot be manually set and it means that the specified routing is the Router ID.

AD (Administrative Distance)

Distance used for route priority into IP Routing table. This is a particular metric used to indicate priorities between routings of the same and different protocol. Routings with the minor AD value have a major priority.

[Tip]Tip

Use the command d ipre to show the routings descriptions:

[14:41:51] ABILIS_CPX:d ipre                                                    

- Not Saved (SAVE CONF) -------------------------------------------------------

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
|[DESCR:]                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| |*| 127.000.000.001/32 | 255.255.255.255    |                 |LOOP|  0|
|*|S| | | 129.132.002.021/32 | 255.255.255.255    |                 |D  2|  1|
|*|C| | | 192.168.000.201/32 | 255.255.255.255    |                 |R-ID|  0|
|*|C| | | 192.168.000.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 192.168.001.000/24 | 255.255.255.000    |                 |D  4|  1|
|*|C| | | 192.168.031.000/24 | 255.255.255.000    |                 |D 21|  0|
|*|S| | | 192.168.000.000/16 | 255.255.000.000    | 192.168.000.251 |   1|  1|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.000.251 |   1|  1|
|default_GW                                                                  |
| |S| | | 000.000.000.000/0  | 000.000.000.000    |                 |D  3|120|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.2. A IPR (Add IP Routing)

It adds a new IP static routing definition with the specified parameters. Unspecified ones are set to their default values.

To display the syntax of the command, type a ipr ?.

[Tip]Tip

The -FD option can be optionally specified to force routing duplication, i.e. the addition of two routings with the same destination network and mask, but with different destination IP resources.

Some examples follow:

[14:00:15] ABILIS_CPX:a ipr net:10.211.16.0/24 ip:4

COMMAND EXECUTED

[14:00:15] ABILIS_CPX:a ipr net:0.0.0.0/0 gw:192.168.1.254 ip:1

COMMAND EXECUTED

[14:01:01] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|S| | | 10.211.016.0000/24 | 255.255.255.000    |                 |   4|  1|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.3. C IPR (Clear IP Routing)

It deletes from the table the IP routing identified by the specified destination network “NET:x.x.x.x”, expressed in Dotted Decimal Notation.

To display the syntax of the command, type c ipr ?.

Some examples follow:

[13:55:27] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|S| | | 10.211.016.0000/24 | 255.255.255.000    |                 |   4|  1|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

[13:55:27] ABILIS_CPX:c ipr net:10.211.16.0/24 ip:4

COMMAND EXECUTED

[13:55:27] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.4. S IPR (Set IP Routing)

It sets one or more parameters to their new values, in the IP routing identified by the specified destination network “NET:x.x.x.x”, expressed in Dotted Decimal Notation. This command can only be used to modify static IP routing definitions in the table.

Type s ipr ? to display the syntax of the command.

Some examples follow:

[13:56:01] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|S| | | 10.211.016.0000/24 | 255.255.255.000    |                 |   4|  1|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

[13:56:25] ABILIS_CPX:s ipr net:10.211.16.0/24 ip:6

COMMAND EXECUTED

[13:57:38] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|S| | | 10.211.016.0000/24 | 255.255.255.000    |                 |   6|  1|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.5. IP Source Routing

It allows to define paths to reach hosts and networks, specifying:

  • the source routing network address/mask [SRNET: /SRMASK:];

  • the destination network address/mask [NET: /MASK:];

  • the destination gateway IP address [GW];

  • the outgoing IP resource [IP].

The available commands for managing the IP source routings are the following:

20.2.5.1. D IPSR (Display IP Source Routing)

It shows the IP source routing table.

By typing d ipsr ? command it's possible to display the meaning of all parameters.

[11:02:59] ABILIS_CPX:d ipsr

+-----+--------------------+--------------------+-----------------+------+----+
| ID: |     NET:/MASK:     |   SRNET:/SRMASK:   |        GW:      | IP:  | UN:|
+-----+--------------------+--------------------+-----------------+------+----+
|   0 | 001.001.001.001/32 | 005.005.005.005/32 | 000.000.000.000 | NONE | NO |
|   1 | 002.002.000.000/16 | 005.005.005.005/32 | 000.000.000.000 |    0 | NO |
|   2 | 002.002.000.000/16 | 005.005.005.005/32 | 000.000.000.000 | NONE | NO |
|   3 | 002.002.000.000/16 | 005.005.005.005/32 | 000.000.000.000 |    2 | YES|
|   4 | 002.002.000.000/16 | 005.005.005.005/32 | 000.000.000.000 |    1 | YES|
+-----+--------------------+--------------------+-----------------+------+----+

The meaning of the fields is the same of the IP Routing table.

A routing can be set to Unconditional (UN:YES) or Conditional (UN:NO). When it's set to Unconditional, it's moved to the top of the generic routing table, in order to give it the highest priority.

IP Source routing can be displayed also in the IP routing table; in the example below they're represented with bold characters:

[11:02:59] ABILIS_CPX:d ipr

+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 001.001.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|C| | | 001.001.001.001/24 | 255.255.255.000    |                 |   1|  0|
|*|C| | | 002.002.002.002/24 | 255.255.255.000    |                 |   2|  0|
|*|C| | | 003.003.003.003/24 | 255.255.255.000    |                 |   3|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    |                 |   3|  1|
| | | | |                    | 002.002.002.000/24 |                 |   4|   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

The meaning of the route above is that the default gateway for IP source 2.2.2.0/24 is the IP resource “IP-4”.

20.2.5.2. A IPSR (Add IP Source Routing)

It adds new IP source routing. The command can only be executed by off-line configurator. To display the syntax of the command, type a ipsr id: ?.

[14:00:15] ABILIS_CPX:a ipr net:10.124.48.0/24 srnet:192.168.1.20/32 ip:4

COMMAND EXECUTED

[13:56:01] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
| | | | | 010.124.048.000/24 | 255.255.255.000    |                 |    |   |
| | | | |                    | 192.168.001.020/32 |                 |   4|   |
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.5.3. C IPSR (Clear IP Source Routing)

It removes an existing IP source routing from the related table. The command can only be executed by off-line configurator. To display the syntax of the command, type c ipsr id: ?.

[14:00:15] ABILIS_CPX:c ipr net:10.124.48.0/24 srnet:192.168.1.20/32

COMMAND EXECUTED

[13:56:01] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

20.2.5.4. S IPSR (Set IP Source Routing)

It sets the parameters of the specified IP source routing to their new values. The command can only be executed for setting IP source routing parameter by off-line configurator. To display the syntax of the command, type c ipsr id: ?

[13:56:01] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
| | | | | 010.124.048.000/24 | 255.255.255.000    |                 |    |   |
| | | | |                    | 192.168.001.020/32 |                 |   4|   |
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+

[13:56:48] ABILIS_CPX:s ipr net:10.124.48.0/24 srnet:192.168.1.20/32 ip:6

COMMAND EXECUTED

[13:57:25] ABILIS_CPX:d ipr

Destination routes and conditional source routes:
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|B|P|S|H|     NET:/MASK:     |      MASK: or      |  GW: or IPLB:   |IP: |AD:|
| | | | |                    |   SRNET:/SRMASK:   |                 |    |   |
+-+-+-+-+--------------------+--------------------+-----------------+----+---+
|*|C| | | 192.168.001.001/32 | 255.255.255.255    |                 |R-ID|  0|
| | | | | 010.124.048.000/24 | 255.255.255.000    |                 |    |   |
| | | | |                    | 192.168.001.020/32 |                 |   6|   |
|*|C| | | 192.168.001.000/24 | 255.255.255.000    |                 |   1|  0|
|*|S| | | 000.000.000.000/0  | 000.000.000.000    | 192.168.001.254 |   1|  1|
+-+-+-+-+--------------------+--------------------+-----------------+----+---+