Centos7 network card binding

1. Add bond0 , bond0-ens37 , bond0-ens38

nmcli connection add type bond con-name bond0 ifname bond0 mode active-backup
nmcli connection add type bond-slave con-name bond0-ens37 ifname ens37 master bond0
nmcli connection add type bond-slave con-name bond0-ens38 ifname ens38 master bond0

 

2. Modify ifcfg-bond0

 

3. Turn on the network card

nmcli connection up bond0
nmcli connection up bond0-ens37
nmcli connection up bond0-ens38

Guess you like

Origin blog.csdn.net/David_ifx/article/details/113857191