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
...
- Restart the server.
- After the server is up again login via SSH.
Use the "ip route show tab" command and the "ip rule show" command make sure the routing entries and the routing rule persists after the restart. Confirm the needed network connectivity to the monitored device:
Open new CLI session via SSH and start capture network traffic passing through eth1 to the wanted monitored device.
The following command will capture network traffic to 192.168.1.120:Code Block language bash theme RDark tcpdump -i eth1 host 192.168.1.120
On the second SSH session run telnet command to test connectivity to the monitored device using port 5550 (XML Management Interface Port):Code Block language bash theme RDark telnet 192.168.1.120 5550
The output of the tcpdump command should look similar to the following:
The source of the tcp connection is the new eth1 ip address and the destination is the monitored device ip address:
Configure DPOD to the New Network Interface
After the new network interface is configure correctly we need to change DPOD configuration to use the new interface.
Change DPOD configuration
Edit the file /etc/hosts and alter the following entries to point to the new ip address :
In this example we changed the entries to the new ip address 192.168.1.178Code Block 192.168.1.178 montier-syslog 192.168.1.178 montier-wsm
- Restart the application using the CLI Admin Menu
Re Configure Syslog and WS-M
After DPOD was configured to use the new ip address we need to re-configure the monitored devices to communicate with DPOD via the new address.
In order to re-configure the monitored devices follow the instructions on the following item "Adding Monitored Devices" sub items "Setup Syslog For The New Monitored Device" and "WS-M setup for device" .