DPOD can be configured with two network interfaces:
...
Create a New Routing Rule
The routing rule instructs the operating system when to use the new routing table.
In order to add a new routing rule entry to the new routing table use the "ip rule" command.
This command will add a new temporary rule entry.Code Block ip rule add from <source ip address or subnet> table <routing table name> ip rule add to <destination ip address or subnet> table <routing table name>
For example: The routing rule for monitored device 192.168.1.120 areĀCode Block language bash theme RDark ip rule add from 192.168.1.120/32 table rt1 ip rule add to 192.168.1.120/32 table rt1
The specific IP address can be replaced with subnet if subnet rule is appropriate: 192.168.1.0/24
In order to make these entries permanent edit the file /etc/sysconfig/network-scripts/rule-<interface name> and add the following:
Code Block from <source ip address or subnet> table <routing table name> to <destination ip address or subnet> table <routing table name>
For example: The routing rule for monitored device 192.168.1.120 are
Code Block from 192.168.1.120/32 table rt1 to 192.168.1.120/32 table rt1
To confirm that the new routing rules entries added use the following command to display them:
Code Block language bash theme RDark ip rule show The output should include the following lines: 32764: from all to 192.168.1.120 lookup rt1 32765: from 192.168.1.120 lookup rt1
...