温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

rhel7网卡bond和team

发布时间:2020-08-09 17:09:02 来源:ITPUB博客 阅读:121 作者:mengbing1990 栏目:建站服务器

配置网卡bond

1. 创建主接口

nmcli con add type bond con-name bond0 ifname bond0 mode active-backup

2. 给主接口分配ip地址

nmcli con mod bond0  ipv4.addresses '11.16.25.100/24'

nmcli con mod bond0  ipv4.method manual

nmcli con mod bond0 connection.autoconnect yes

3. 创建从接口

nmcli con add type bond-slave ifname eno1 master bond0

nmcli con add type bond-slave ifname eno2 master bond0

4. 开启主接口和从接口

nmcli con up bond-slave-eno2

nmcli con up bond-slave-eno1

nmcli con up bond0

网卡teaming配置

#nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "activebackup"}}'

#nmcli con mod team0 ipv4.addresses '192.168.0.100/24'

#nmcli con mod team0 ipv4.method manual

#nmcli con add type team-slave con-name team0-port1 ifname eno1 master team0

#nmcli con add type team-slave con-name team0-port2 ifname eno2 master team0

#teamdctl team0 state(查看状态)

 


向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI