EVE模拟交换机三层EC和Linux服务器端口绑定(bond team)对接
生活随笔
收集整理的這篇文章主要介紹了
EVE模拟交换机三层EC和Linux服务器端口绑定(bond team)对接
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、實驗拓撲
由于老版本IOL不支持三層EC,所有需要最新版本的IOL ,LINUX使用的是Centos 7
實驗拓撲
2、交換機端配置
1、etherchannel 配置 interface Port-channel1no switchportip address 1.1.1.1 255.255.255.0 endinterface rang Ethernet0/0-1no switchportno ip addresschannel-group 1 mode on end查看EC狀態
SW1#show etherchannel summary Flags: D - down P - bundled in port-channelI - stand-alone s - suspendedH - Hot-standby (LACP only)R - Layer3 S - Layer2U - in use N - not in use, no aggregationf - failed to allocate aggregatorM - not in use, minimum links not metm - not in use, port not aggregated due to minimum links not metu - unsuitable for bundlingw - waiting to be aggregatedd - default portA - formed by Auto LAGNumber of channel-groups in use: 1 Number of aggregators: 1Group Port-channel Protocol Ports ------+-------------+-----------+----------------------------------------------- 1 Po1(RU) - Et0/0(P) Et0/1(P) 2、lacp模式配置 interface Port-channel1no switchportip address 1.1.1.1 255.255.255.0interface rang Ethernet0/0-1no switchportno ip addresschannel-protocol lacpchannel-group 1 mode passive 因為服務器端位active這個最好配置為passive2、linux服務器端配置
1、創建Bond綁定 (1)關閉防火墻 關閉: systemctl stop firewalld 查看狀態: systemctl status firewalld 開機禁用 : systemctl disable firewalld (2)關閉selinux getenforce 查看selinux狀態 setenforce 0 修改文件/etc/sysconfig/selinux selinx=diabled (3)Bonding配置 修改/etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=none BONDING_OPTS= “miimon=100 mode=0” #這里用的是模式0 IPADDR=1.1.1.2 PREFIX=24修改/etc/sysconfig/network-scripts/ifcfg-eth0 #添加eth0到bond0中 DEVICE=eth0 BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no修改/etc/sysconfig/network-scripts/ifcfg-eth1 #添加eth1到bond1中 DEVICE=eth1 BOOTPROTO=none MASTER=bond0 SLAVE=yes USERCTL=no重啟網絡服務 systemctl restart network查看bond0狀態:cat/proc/net/bonding/bond0
顯示如下表示正常
2、創建team 綁定(lacp模式) nmcli con add type team con-name team0 ifname team0 config '{"runner": {"name": "lacp"}}' ipv4.method manual ipv4.addresses 1.1.1.2/24 nmcli con add type team-slave con-name team0-slave0 ifname eth0 master team0 nmcli con add type team-slave con-name team0-slave1 ifname eth1 master team0 nmcli con up team0 啟用team0配置 nmcli con up team0-slave-eth0 啟用eth0配置 nmcli con up team0-slave-eth1 啟用eth1配置查看team狀態
3、測試
相互可以Ping通說明實驗成功
總結
以上是生活随笔為你收集整理的EVE模拟交换机三层EC和Linux服务器端口绑定(bond team)对接的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 必看的盘口语言
- 下一篇: 人车交互论文阅读(一)Semi-Coop