“网卡绑定”的版本间的差异
来自CloudWiki
Cloud lucky(讨论 | 贡献) (创建页面,内容为“ == 网络的基本配置 == 文件:网络的基本配置.png”) |
Cloud lucky(讨论 | 贡献) |
||
(未显示同一用户的13个中间版本) | |||
第2行: | 第2行: | ||
== 网络的基本配置 == | == 网络的基本配置 == | ||
− | [[文件:网络的基本配置.png]] | + | [[文件:网络的基本配置.png|600px]] |
+ | |||
+ | |||
+ | == 查看网卡 == | ||
+ | |||
+ | <nowiki>nmcli connection</nowiki> | ||
+ | |||
+ | [[文件:查看网卡.png]] | ||
+ | |||
+ | |||
+ | == 创建虚拟网卡 == | ||
+ | |||
+ | <nowiki>nmcli connection add con-name team0 type team ifname team0 config '{"runner":{name":"activebackup"}}' </nowiki> | ||
+ | |||
+ | [[文件:创建虚拟网卡.png]] | ||
+ | |||
+ | |||
+ | == 给虚拟网卡配置IP地址 改成手动配置模式 == | ||
+ | |||
+ | <nowiki>nmcli connection modify team0 ipv4.addresses "192.168.0.128/22"</nowiki> | ||
+ | |||
+ | <nowiki>nmcli connection modify team0 ipv4.method manual</nowiki> | ||
+ | |||
+ | [[文件:虚拟网卡配置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]] | ||
+ | |||
+ | == 激活网卡 == | ||
+ | |||
+ | <nowiki>nmcli connection up team0</nowiki> | ||
+ | |||
+ | [[文件:激活网卡.png]] | ||
+ | |||
+ | [[文件:ping.png]] | ||
+ | |||
+ | |||
+ | == 验证 == | ||
+ | |||
+ | <nowiki>teamdctl team0 state</nowiki> | ||
+ | |||
+ | [[文件:验证.png]] |
2020年9月18日 (五) 14:04的最新版本
目录
网络的基本配置
查看网卡
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
激活网卡
nmcli connection up team0
验证
teamdctl team0 state