DPOD can be configure with two network interface :
- First Interface - For accessing DPOD's Web Console via web browser and DPOD's CLI via SSH.
- Second Interface - For communicating with the monitored devices.
The second network interface can not share the same class C network as the first network interface ( example : the two interface can not have IP address on the sub net 192.169.10.x )
Connect the Second Network Interface to the Server
Use your system administrator assistance to add a second network interface to your virtual machine or physical server.
In some cases there will be a need to restart the server before the new network will be available.
After the server restart, the operating system will automatically configure the new network interface using DHCP.
Log in to DPOD's Console or CLI via SSH with the user "root" and type the command "ifconfig"
The new network interface should be displayed as "eth1"
On a Non Appliance installation when customer provide per-installed server, the network interfaces name might be different ( the network interface naming depends on the operating system configuration).
Configure the New Network Interface
- Copy the network interface MAC address as displayed in the "ifconfig" command output after the attribute "ether"
change directory to /etc/sysconfig/network-scripts
cd /etc/sysconfig/network-scripts
duplicate the eth0 (first network interface) network interface configuration file for the new network interface file (eth1)
cp ifcfg-eth0 ifcfg-eth1
Edit the new file (ifcfg-eth1) and alter the following attributes based on the new network interface properties
DEVICE=eth1 BOOTPROTO=static ONBOOT=yes NM_CONTROLLED=no HWADDR=00:0c:29:14:7a:88 IPADDR=192.168.1.178 NETMASK=255.255.255.0 USERCTL=no DNS1=8.8.8.8 DNS2=8.8.4.4 IFCONFIG_OPTS="txqueuelen 10000"
DEVICE : The network interface device name should be eth1
HWADDR : The network interface MAC address as displayed at section 1.
NETMASK : The network mask based on the new interface properties (the network administrator should supply this information)Restart the network service by entering the following command
service network restart The command output should be : Restarting network (via systemctl): [ OK ]
- Use the command "ifconfig" to make sure the new network interface is up and configured with the correct IP address
If the new IP address is not displayed restart the server. - sdf
Configure Routing
In order to support the second network interface a new routing table and routing rule should be defined.
Create New Routing Table
Edit the file /etc/iproute2/rt_tables and add new routing table entry with id "1" named "rt1"
In order to add new routing entry to the new routing table use the "ip route" command.
This command will add new temporary entry to the routing table.Add a default gateway entry :
default via <interface default gateway> dev <interface name> table <routing table name>
Example : For adding the default gateway 192.168.1.1 to interface eth1ip route add default via 192.168.1.1 dev eth1 table rt1
After confirming the needed network connectivity to the monitored device.
Add New Routing Rules
The