Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DPOD can be configure configured with two network interface interfaces:

  1. First Interface interface - For for accessing DPOD's Web Console via web browser and DPOD's CLI via SSH.
  2. Second Interface interface - For for communicating with the monitored devices.

...

Note

The second network interface can not cannot share the same class C network as the first network interface (for example : , the two interface can not interfaces cannot have IP address addresses on the sub net subnet 192.169.10.x).

Connect the Second Network Interface to the Server

...

In some cases there will be a need to restart the server before the new network will be available.

After the server restartrestarts,   the operating system will automatically configure the new network interface  interface using DHCP.

Log in to DPOD's Console or CLI via SSH with the user "root"   and type the command "ifconfig". The command output should be similar to the following screenshot:

The new network interface should be displayed as "eth1".

Note

On a Non-Appliance installation when customer provide perprovides pre-installed server,  the  the network interfaces name names might be different (the network interface naming depends on the operating system configuration).

...

  1. Edit the file /etc/iproute2/rt_tables and add new routing table entry with id "1" named "rt1"



  2. 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.

  3. Add a default gateway entry (should be executed only once)

    Code Block
    ip route add default via <interface default gateway> dev <interface name> table <routing table name>


    Example : For adding the default gateway 192.168.1.1 to interface eth1


    Code Block
    languagebash
    themeRDark
    ip route add default via 192.168.1.1 dev eth1 table rt1


    Note

    Adding default gateway to network interface should be executed only once.



  4. Add a routing entry  (should be executed as needed for every monitored device)

    Code Block
    ip route add <destinamtion ip address or subnet> dev <interface name> table <routing table name>


    Example : For adding the route entry to subnet 192.168.1.x to interface eth1

    Code Block
    languagebash
    themeRDark
    ip route add 192.168.1.0/24 dev eth1 table rt1


    Note

    Adding specific routing entry should be executed as needed for every monitored device



  5. In order to make these entries permanent edit the file /etc/sysconfig/network-scripts/route-<interface name> and add the following :

    Code Block
    default via <interface default gateway> dev <interface name> table <routing table name>
    <destinamtion ip address or subnet> dev <interface name> table <routing table name>


    For example : Create new permanent routing file for interface eth1 and add the entries used at previous examples :

    Code Block
    default via 192.168.1.1 dev eth1 table rt1
    192.168.1.0/24 dev eth1 table rt1


  6. To confirm that the new routing table includes the new routing entries use the following command to display the content of the table :

    Code Block
     ip route show tab <routing table name>


    For example : To display the content of table rt1

    Code Block
    languagebash
    themeRDark
    ip route show tab rt1
    
    The output should be :
    default via 192.168.1.1 dev eth1
    192.168.1.0/24 dev eth1  scope link


Create New Routing Rule

The routing rule instruct the operating system when to use the new routing table.

  1. In order to add new routing rule entry to the new routing table use the "ip rule" command.
    This command will add 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
    languagebash
    themeRDark
    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

  2. 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


  3. To confirm that the new routing rules entries added use the following command to display them :

    Code Block
    languagebash
    themeRDark
    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


...