-->

DEVOPSZONES

  • Recent blogs

    How create & Configure Bonding in RHEL 7 using nmtui

    How create & Configure Bonding in RHEL 7 using nmtui



    What is Network Bonding:


    nmtuiThe Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical bonded interface. The behavior of the bonded interfaces depends upon the bonding mode that is defined. In most of the cases we use bonding to provide Active/Backup or load balancing services.

    Now i'll let you  know how to configure bonding in a RHEL 7 system. 

    1. You need to have 2 NIC's. 

    2: eno16777736: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast  state UP qlen 1000
        link/ether 00:50:56:2b:d3:4c brd ff:ff:ff:ff:ff:ff
    3: eno33554992: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
        link/ether 00:50:56:21:f4:bc brd ff:ff:ff:ff:ff:ff
     
    2.  Now you have 3 ways to create bonding. manual,CLI,TUI. Lets start with TUI.

    3. You need to execute "nmtui" .

     
    4. Now click  on "Edit a Connection" 
    5. Then click on "Add"


    6. In the menu choose Bond and click on create.


    7. Now fill in the details in the pop-up window for Bond. I'll explain those to you.



    Profile Name: Configuration file name
    Device: Bond's Display Name
    Slave: Add the Interface details you want to add.
    Mode: Choose the Mode as acoordance to your requirement. I've chosen "Active-Backup".
     
     Primary: The Interface on which the ip will be plumbed when network service starts, if the NIC is available.
    Link Monitoring : Type of monitoring to be applied for this bond profile. The other option is ARP.
    Monitoring Frequency: It's self explanatory. You change the value as desired.
    Then comes the section where you need to put the IP, Subnet Mask, Gateway, DNS servers, Search Domains.

    8. Then choose "Automatically Connect" & "Available to all users" and click on OK.



    9. Then restart the network service.

    systemctl restart network 

    10. Then Check the Configuration.The Ethernet cards are SLAVE of Master bond007. IP is Plumbed on bond00.

    2: eno16777736: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond007 state UP qlen 1000
      
    3: eno33554992: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond007 state UP qlen 1000
       
    4: bond007: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
        link/ether 00:50:56:2b:d3:4c brd ff:ff:ff:ff:ff:ff
        inet 192.168.142.128/24 brd 192.168.142.255 scope global bond007
           valid_lft forever preferred_lft forever

    11. This can be achieved through the CLI tool (nmcli) aswell.

    12. We can achieve the same through manually configuring network files.

    /etc/sysconfig/network-scripts/ifcfg-Bond007


    /etc/sysconfig/network-scripts/ifcfg-Pri
     
    /etc/sysconfig/network-scripts/ifcfg-sec






    No comments