#!/bin/bash
portlist='eth0 eth1'
nmcli connection add con-name bond0 type bond ifname bond0 downdelay 0 miimon 100 mode active-backup updelay 0 ipv6.method ignore
for port in $portlist;
do
nmcli connection down $port
nmcli connection delete $port
nmcli connection add type bond-slave ifname $port master bond0
nmcli connection up bond-slave-$port
done
服务器租用托管,机房租用托管,主机租用托管,https://www.e1idc.com