“网卡绑定”的版本间的差异
来自CloudWiki
Cloud lucky(讨论 | 贡献) |
Cloud lucky(讨论 | 贡献) |
||
第26行: | 第26行: | ||
[[文件:虚拟网卡配置IP.png]] | [[文件:虚拟网卡配置IP.png]] | ||
+ | |||
+ | |||
+ | == 第一块网卡创建team0-slavel连接成功 == | ||
+ | |||
+ | <nowiki>nmcli connection add con-name team0-slavel type team-slave ifname eno16777736 master team0</nowiki> | ||
+ | |||
+ | [[文件:team0-slavel.png]] | ||
+ | |||
+ | |||
+ | == 第二块网卡创建team0-slavel2连接成功 == | ||
+ | |||
+ | <nowiki>nmcli connection add con-name team0-slave2 type team-slave ifname eno33554984 master team0</nowiki> | ||
+ | |||
+ | [[文件:team0-slave2.png]] |
2020年9月18日 (五) 13:57的版本
目录
网络的基本配置
查看网卡
nmcli connection
创建虚拟网卡
nmcli connection add con-name team0 type team ifname team0 config '{"runner":{name":"activebackup"}}'
给虚拟网卡配置IP地址 改成手动配置模式
nmcli connection modify team0 ipv4.addresses "192.168.0.128/22" nmcli connection modify team0 ipv4.method manual
第一块网卡创建team0-slavel连接成功
nmcli connection add con-name team0-slavel type team-slave ifname eno16777736 master team0
第二块网卡创建team0-slavel2连接成功
nmcli connection add con-name team0-slave2 type team-slave ifname eno33554984 master team0