m-lag
m-lag:跨機(jī)箱的鏈路聚合
peer-link作用:
1.m-lag協(xié)商
2.表項(xiàng)同步
不同廠商的設(shè)備也可以做m-lag,不同型號(hào)也可而已,但是配置更多,比較麻煩
拓?fù)鋱D:
m-lag配置:
zerotouch cancel 取消設(shè)備0配置上線
show interface status 查看接口狀態(tài)
配置鏈路聚合口:
sw1:
interface ethernet 1-2
channel-group 1 mode active 將peer-link接口加入鏈路聚合組1(peer-link必須加入鏈路聚合組,peer-link只支持聚合協(xié)商)
interface port-channel1
switchport mode trunk 聚合端口模式改為trunk
switchport trunk group peertrunk 聚合端口加入trunk聚合組,組名peertrunk
sw2:
interface ethernet 1-2
channel-group 1 mode active 將peer-link接口加入鏈路聚合組1(peer-link必須加入鏈路聚合組,peer-link只支持聚合協(xié)商)
interface port-channel1
switchport mode trunk 聚合端口模式改為trunk
switchport trunk group peertrunk 聚合端口加入trunk聚合組,組名peertrunk
創(chuàng)建peer-link管理vlan并為vlan配置ip,關(guān)閉生成樹:
sw1:
vlan 4094 創(chuàng)建vlan,用于配置ip為peer-link鏈路協(xié)商做準(zhǔn)備
trunk group peertrunk 將vlan加入到trunk組peertrunk中
interface vlan 4094 為vlan 4094配置ip
ip address 172.16.1.1/24
no autostate
exit
no spanning-tree vlan-id 4094 禁用vlan 4094的生成樹選舉,以免阻塞接口
sw2:
vlan 4094 創(chuàng)建vlan,用于配置ip為peer-link鏈路協(xié)商做準(zhǔn)備
trunk group peertrunk 將vlan加入到trunk組peertrunk中
interface vlan 4094 為vlan 4094配置ip
ip address 172.16.1.2/24
no autostate
exit
no spanning-tree vlan-id 4094 禁用vlan 4094的生成樹選舉,以免阻塞接口
配置peer-link協(xié)商:
sw1:
mlag configuration
domain-id galaxy 配置mlag域名
heartbeat-interval 3000 配置心跳包文間隔3000毫秒(3秒)(每隔3秒發(fā)一次報(bào)文檢測(cè)對(duì)端狀態(tài))
local-interface vlan4094 用自己本地的vlan4094進(jìn)行mlag協(xié)商
peer-address 172.16.1.2
peer-link port-channel1 協(xié)商peer-link鏈路為聚合port-channel1
reload-delay 150(默認(rèn)配置)
sw2:
mlag configuration
domain-id galaxy 配置mlag域名
heartbeat-interval 3000 配置心跳包文間隔3000毫秒(3秒)(每隔3秒發(fā)一次報(bào)文檢測(cè)對(duì)端狀態(tài))
local-interface vlan4094 用自己本地的vlan4094進(jìn)行mlag協(xié)商
peer-address 172.16.1.1
peer-link port-channel1 協(xié)商peer-link鏈路為聚合port-channel1
reload-delay 150(默認(rèn)配置)
配置m-lag:
sw1:
interface ethernet 3-4
channel-group 101 mode active 將接口3和4加入聚合組101
interface port-channel101
switchport mode trunk
mlag 1
sw2:
interface ethernet 3-4
channel-group 101 mode active 將接口3和4加入聚合組101(sw1和sw2接口號(hào)可以不同,但聚合組號(hào)必須相同)
interface port-channel101
switchport mode trunk
mlag 1
sw3:
interface ethernet 1-4
channel-group 101 mode active 將四個(gè)口鏈路聚合
interface port-channel101
switchport mode trunk
sw1:show mlag 查看mlag對(duì)等體同步以及狀態(tài)信息
sw3:show port-channel summary 查看端口鏈路聚合信息
sw1:show port-channel summary 查看端口鏈路聚合信息(包含mlag的聚合端口,包括對(duì)等體的兩條,一共四條)
關(guān)閉二層口功能,配置ip
sw1:
interface ethernet 5
no switchport 關(guān)閉二層口功能
ip address 192.168.1.1/24
sw2:
interface ethernet 5
no switchport 關(guān)閉二層口功能
ip address 192.168.2.1/24
ar:
interface g0/0
ip address 192.168.1.2/24
interface g0/2
ip address 192.168.2.2/24
interface loopback1
ip address 100.1.1.1 32
配置ospf路由:
sw1:
ospf 1
router-id 1.1.1.1
network 10.1.1.0 0.0.0.255 area 0
network 192.168.1.0 0.0.0.255 area 0
sw2:
ospf 1
router-id 2.2.2.2
network 10.1.1.0 0.0.0.255 area 0
network 192.168.2.0 0.0.0.255 area 0
show ip ospf neighbor
show ip route
sw1:ip routing
配置sw1/sw2業(yè)務(wù)vlan雙活網(wǎng)關(guān)
sw1:vlan 10
interface vlan 10
ip address 10.1.1.1/24
mac address virtual-router
sw3:
vlan 10
interface ethernet 5
switchport access vlan 10
spanning-tree portfast
配置pc
pc:
ip 10.1.1.0 255.255.255.0 10.1.1.1
sw3:show port-channel load-balance 查看鏈路聚合負(fù)載分擔(dān)
總結(jié)
- 上一篇: 逆波兰计算器
- 下一篇: 能把计算机c盘我的文档,电脑c盘哪些文件