Configure NIC(Network Interface Card) bonding in CentOS 7 / RHEL 7

Pradeep Kumar

I am a huge fan of open source and love to share How To's tutorials on Linux, Cloud and DevOps. I have been working as Linux Consultant, Cloud & DevOps Engineer since 2010

You may also like...

1 Response

  1. two cents ... says:

    Simpler solution, also we shouldn’t use bond in Redhat/Centos 7 – its deprecated, insted that use teamd :D.

    #show all device
    nmcli -p dev status
    #add interface with ipv4 only address, two slaves and active-backup
    nmcli connection add type bond ifname bond0 con-name bond0 mode active-backup primary enp0s3 miimon 200 ip4 213.222.208.14 gw4 213.222.208.1
    nmcli connection mod bond0 ipv4.dns “8.8.8.8” ipv6.method “ignore”
    nmcli connection add type bond-slave ifname enp0s3 master bond0
    nmcli connection add type bond-slave ifname enp0s8 master bond0

    #ifup 😀
    nmcli c u bond0

    #verification
    nmcli -p connection show bond0 | less
    nmcli -p connection show -a
    nmcli network connectivity

Leave a Reply

Your email address will not be published. Required fields are marked *