centos7使用nmcli配置网卡聚合链路_第1页
centos7使用nmcli配置网卡聚合链路_第2页
centos7使用nmcli配置网卡聚合链路_第3页
centos7使用nmcli配置网卡聚合链路_第4页
centos7使用nmcli配置网卡聚合链路_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、CentOS 7 使用 nmcli 配置网卡聚合链路CentOS7 系列对多网卡的配置发生很大的改变, 以下以 基于 RECL-7.0 系列对 actviebackup 属性的配置笔记。rootserver0 # nmcli con show/ 蓝色粗体的网卡是本例配置的网卡NAME UUIDTYPE DEVICEEthernet connection 2 8afe67cc-20ef-4985-86c3-b8d3c9371fc9 ens34802-3-ethernetEthernet connection 30cf045a5-012c-46bd-9367-1139666871b5802-3-e

2、thernet ens35eth0ff18a078-5b66-4bb8-8bba-fafd426b9d39802-3-ethernetens32# 创建一个名为 team0 并且属性为team 的链路接口rootserver0 # nmcli con add type team con-nameteam0 ifname team0 config runner:name:activebackup# 为 team0 配置 ip 地址与网关rootserver0 # nmcli connection modify team0 ipv4.addresses 192.168.25.211/24 192.

3、168.25.250# 为 team0 配置 DNSrootserver0 # nmcli connection modify team0 ipv4.dns192.168.10.86 192.168.10.87# 设置 team0 的属性为 manualrootserver0 # nmcli connection modify team0 ipv4.method manual# 将 ent34 网卡口 加到 team0 接口rootserver0 # nmcli connection add type team-slaveconn-name team-port1 ifname ens34 ma

4、ster team0# ent35 网卡口 加到 team0 接口启用rootserver0 # nmcli connection add type team-slave conn-name team-port2 ifname ens35 master team0# 接口中的网卡rootserver0 # nmcli connection up team-port1;nmcli connection up team-port2Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager

5、/ActiveConnection/25)Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/26)r ootserver0 # teamdctl team0 state viewsetup:runner: activebackup ports:ens34link watches:link summary: up instancelink_watch_0:name: ethtool link: upens35link watches:link

6、 summary: up instancelink_watch_0:name: ethtoollink: uprunner:active port: ens34/当前 team0 的主接口rootserver0 # ifconfig team0team0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST& gt; mtu 1500inet 192.168.25.211 netmask 255.255.255.0 broadcast 192.168.25.255inet6 fe80:20c:29ff:fea7:34bprefixlen 64scopeid

7、 0x20<link>ether 00:0c:29:a7:03:4b txqueuelen 0 (Ethernet)RX packets 55 bytes 4477 (4.3 KiB)RX errors 0 dropped 70 overruns 0 frame 0TX packets 61 bytes 8297 (8.1 KiB)TX errors 0 dropped 9 overruns 0 carrier 0 collisions 0rootserver0 # teamnl team0 ports4: ens35: up 1000Mbit FD3: ens34: up 100

8、0Mbit FDrootserver0 # teamnl team0 optionsqueue_id (port:ens35) 0priority (port:ens35) 0user_linkup_enabled (port:ens35) falseuser_linkup (port:ens35) trueenabled (port:ens35) truequeue_id (port:ens34) 0 priority (port:ens34) 0 user_linkup_enabled (port:ens34) false user_linkup (port:ens34) true enabled (port:ens34) true mcast_rejoin_interval 0 mcast_rejoin_count 0 notify_peers_interval 0 notify_peers_count

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论