admin管理员组文章数量:1632045
具体步骤如下:
1.一台主机两块网卡,添加网卡
首先在软件VMware Workstation Pro主界面的上侧指示栏上点击“虚拟机”
接着选中最下面的“设置”,在设置硬件中选择“添加”这一项,最后选中“网络适配器”,完成即可。
本次实验需要添加两块网卡,重复此步骤一次,保证两个网卡是同一种网络模式(同一网段)。
在软件中查看网卡是否添加完成,主机能否识别网卡
命令:
[root@localhost ~]# ip a
2.激活真实网卡
命令:
[root@localhost huawei]# nmcli device connect ens224
[root@localhost huawei]# nmcli device connect ens256
3.添加虚拟网卡team0(主设备)
[root@localhost example_configs]# nmcli connection add type team con-name team0 ifname team0 config '{"runner": {"name": "activebackup"}}'
"runner": {"name": "activebackup"}出处
[root@localhost huawei]# cd /usr/share/doc/teamd/example_configs/ //切换目录(共享文本)
[root@localhost example_configs]# ll //查看模式
[root@localhost example_configs]# vim activebackup_arp_ping_2.conf //查看主备模式
4.虚拟网卡绑定真实网卡(从设备)
[root@localhost example_configs]# nmcli connection add type team-slave con-name team0-port1 ifname ens224 master team0
[root@localhost example_configs]# nmcli connection add type team-slave con-name team0-port2 ifname ens256 master team0
5.添加设备
先激活从会话,再激活主会话
[root@localhost example_configs]# nmcli connection up team0-port1
[root@localhost example_configs]# nmcli connection up team0-port2
[root@localhost example_configs]# nmcli connection up team0
版权声明:本文标题:在当前主机添加两块网卡,将两块网卡绑定实现网卡冗余操作 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://m.elefans.com/dianzi/1729100936a1186618.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论