0
点赞
收藏
分享

微信扫一扫

创建 Active-backup bond 脚本

暮晨夜雪 2023-04-27 阅读 44
bond运维


#!/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










举报

相关推荐

0 条评论