Versions Compared

Key

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

...

  1. Copy the network interface MAC address as displayed in the "ifconfig"  command output after the attribute "ether"

  2. change directory to /etc/sysconfig/network-scripts

    Code Block
    languagebash
    themeRDark
    cd /etc/sysconfig/network-scripts


  3. duplicate the eth0 (first network interface) network interface configuration file for the new network interface file (eth1)

    Code Block
    languagebash
    themeRDark
     cp ifcfg-eth0 ifcfg-eth1 


  4. Edit the new file (ifcdfifcfg-eth1) and alter the following attributes based on the new network interface properties

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

  5. Restart the network service by entering the following command

    Code Block
    languagebash
    themeRDark
    service network restart
    The command output should be : Restarting network (via systemctl):                        [  OK  ]


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

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

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

    Image Added


  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
    ip 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