Versions Compared

Key

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

...

  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 :

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


  4. Add a routing entry :

    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



  5. After confirming the needed network connectivity to the monitored device.

Add New Routing Rules

The