【中兴交换机MC-LAG配置】
生活随笔
收集整理的這篇文章主要介紹了
【中兴交换机MC-LAG配置】
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
【中興交換機(jī)MC-LAG配置】
- 主設(shè)備配置如下:
- Keepalive鏈路
- Peer-Link鏈路
- MC-LAG配置
- mc-lag業(yè)務(wù)成員口配置
- 生成樹配置
- 三層逃生
- 備設(shè)備配置如下:
- Keepalive鏈路
- Peer-Link鏈路
- MC-LAG配置
- mc-lag業(yè)務(wù)成員口配置
- 生成樹配置
- 三層逃生
主設(shè)備配置如下:
Keepalive鏈路
interface smartgroup1023 //用作MC-LAG的Keepalive鏈路接口switch attribute disable yesdescription For_Keepalived exitinterface xgei-0/1/1/47switch attribute disable yesdescription For_Keepalived exitinterface xgei-0/1/1/48switch attribute disable yesdescription For_Keepalived exitsmartgroup fast-switch 1023 enable //開啟smartgroup口快速切換功能lacpinterface smartgroup1023lacp mode 802.3adlacp fast respond //lacp快速收斂 exitinterface xgei-0/1/1/47smartgroup 1023 mode activeexitinterface xgei-0/1/1/48smartgroup 1023 mode activeexit exitip vrf keepalive rd 1:1address-family ipv4exit exitinterface smartgroup1023 //配置keepalive鏈路的三層接口地址ip vrf forwarding keepaliveip address 1.1.1.1 255.255.255.252 exitsamgrtrack zte interface smartgroup1023 exitPeer-Link鏈路
interface smartgroup1024description For_PeerLink exitinterface xlgei-0/1/1/53description For_PeerLink exitinterface xlgei-0/1/1/54description For_PeerLink exitsmartgroup fast-switch 1024 enable //開啟smartgroup口快速切換功能lacpinterface smartgroup1024lacp mode 802.3adlacp fast respondexitinterface xlgei-0/1/1/53smartgroup 1024 mode activeexit interface xlgei-0/1/1/54smartgroup 1024 mode activeexitexitlacp peer-link smartgroup1024 // 將smartgroup1024設(shè)置為peerlinkexit exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan xx //peer-link透?jìng)飨滦袠I(yè)務(wù)VLANswitchport trunk native vlan 4094 //將ICCP通道使用的VLAN作為本地vlanacceptable frame types tagexit exiticcp peerlink vlan 4094interface vlan 4094ip address 1.1.1.5 255.255.255.252 exitMC-LAG配置
mpls ldp instance 1 router-id 1.1.1.5 exitredundancy interchassis group 1 //配置RG組,用于TOR鏈路同步mac表項(xiàng),每一個(gè)RG組綁定10個(gè)SG。peer 1.1.1.6apply mac //表明這個(gè)rg會(huì)用于同步macapply arp //表明這個(gè)rg會(huì)用于同步arpapply nd //表明這個(gè)rg會(huì)用于同步ndapply stp //表明這個(gè)rg會(huì)用于同步stp exitredundancy interchassis group 2 //配置RG組,用于TOR鏈路同步mac表項(xiàng),每一個(gè)RG組綁定10個(gè)SG。peer 1.1.1.6apply mac //表明這個(gè)rg會(huì)用于同步macapply arp //表明這個(gè)rg會(huì)用于同步arpapply nd //表明這個(gè)rg會(huì)用于同步ndapply stp //表明這個(gè)rg會(huì)用于同步stp exit ///若干個(gè)lacpmc-lag priority 120 //根據(jù)優(yōu)先級(jí)協(xié)商設(shè)備級(jí)的主備,優(yōu)先級(jí)小的為主,peerlink斷鏈時(shí),備設(shè)備進(jìn)行退避,建議主為120,備為150mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag track zte peer-type //綁定track ,用于退避之前檢測(cè)keepalive鏈路mc-lag exempt smartgroup1023 //配置退避豁免口,退避時(shí)不會(huì)將keepalive端口down掉mc-lag reload-delay-up 480 //重啟上電后端口延時(shí)UP時(shí)間配置,默認(rèn)是480s exitmc-lag業(yè)務(wù)成員口配置
interface smartgroup11description connect-to-server1 exitinterface smartgroup12description connect-to-server2 exitlacpinterface smartgroup11lacp mode 802.3ad lacp fast respondexitinterface xgei-0/1/1/1smartgroup 11 mode activeexitinterface smartgroup12lacp mode 802.3ad lacp fast respondexitinterface xgei-0/1/1/2smartgroup 11 mode activeexit exitlacpinterface smartgroup11 ///若干個(gè)mc-lag mode force-master //設(shè)置為雙主模式 mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag priority 120 //優(yōu)先級(jí)值越小為主設(shè)備mc-lag roid 11 node-id 1 //兩臺(tái)設(shè)備同一個(gè)mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0011 sys-priority 111 //兩臺(tái)設(shè)備同一個(gè)mc-lag的sys-id和sys-priority 需要一致,為100+SG編號(hào)exitinterface smartgroup12 ///若干個(gè)mc-lag mode force-master //設(shè)置為雙主模式 mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag priority 120 //優(yōu)先級(jí)值越小為主設(shè)備mc-lag roid 12 node-id 1 //兩臺(tái)設(shè)備同一個(gè)mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0012 sys-priority 112 //兩臺(tái)設(shè)備同一個(gè)mc-lag的sys-id和sys-priority 需要一致,為100+SG編號(hào)exit exiticbg sg11 //配置同步使用的ICBG組,用于指定表項(xiàng)同步的接口bind interface smartgroup11 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時(shí)同步間隔,最小是5分鐘,默認(rèn)是10分鐘 exiticbg sg12 //配置同步使用的ICBG組,用于指定表項(xiàng)同步的接口bind interface smartgroup12 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時(shí)同步間隔,最小是5分鐘,默認(rèn)是10分鐘 exitswitchvlan-configurationinterface smartgroup11switchport mode accessswitchport access vlan xxexitinterface smartgroup12switchport mode accessswitchport access vlan xxexit exit生成樹配置
spantree //配置VSTPenable mode rstptc-guard enablevstp enable interface smartgroup11 //與服務(wù)器對(duì)接的端口設(shè)置為邊緣端口 edged-port enableexitinterface smartgroup12 //與服務(wù)器對(duì)接的端口設(shè)置為邊緣端口 edged-port enableexit///若干個(gè)interface smartgroup1024 //加入MC-LAG的PEER-LINK設(shè)置為內(nèi)部端口internal-port enable exit interfacesmartgroup 1 //上行接口disabledisable exit exit三層逃生
interface vlan4090description For_Service-Escapeip address 192.168.1.1 255.255.255.252 exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan add 4090exit exit 互相指相關(guān)地址段靜態(tài)即可,注意優(yōu)先級(jí); ip route 0.0.0.0 0.0.0.0 vlan4090 192.168.1.2 250=======================================================
備設(shè)備配置如下:
Keepalive鏈路
interface smartgroup1023 //用作MC-LAG的Keepalive鏈路接口switch attribute disable yesdescription For_Keepalived exitinterface xgei-0/1/1/47switch attribute disable yesdescription For_Keepalived exitinterface xgei-0/1/1/48switch attribute disable yesdescription For_Keepalived exitsmartgroup fast-switch 1023 enable //開啟smartgroup口快速切換功能lacpinterface smartgroup1023lacp mode 802.3adlacp fast respond //lacp快速收斂exitinterface xgei-0/1/1/47smartgroup 1023 mode activeexitinterface xgei-0/1/1/48smartgroup 1023 mode activeexit exitip vrf keepalive rd 1:1address-family ipv4exit exitinterface smartgroup1023 //配置keepalive鏈路的三層接口地址ip vrf forwarding keepaliveip address 1.1.1.2 255.255.255.252 exitsamgrtrack zte interface smartgroup1023 exitPeer-Link鏈路
interface smartgroup1024description For_PeerLink exitinterface xlgei-0/1/1/53description For_PeerLink exitinterface xlgei-0/1/1/54description For_PeerLink exitsmartgroup fast-switch 1024 enable //開啟smartgroup口快速切換功能lacpinterface smartgroup1024lacp mode 802.3adlacp fast respondexitinterface xlgei-0/1/1/53smartgroup 1024 mode activeexit interface xlgei-0/1/1/54smartgroup 1024 mode activeexitexitlacp peer-link smartgroup1024 // 將smartgroup1024設(shè)置為peerlinkexit exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan xx //peer-link透?jìng)飨滦袠I(yè)務(wù)VLANswitchport trunk native vlan 4094 //將ICCP通道使用的VLAN作為本地vlanacceptable frame types tagexit exiticcp peerlink vlan 4094interface vlan 4094ip address 1.1.1.6 255.255.255.252 exitMC-LAG配置
mpls ldp instance 1 router-id 1.1.1.6 exitredundancy interchassis group 1 //配置RG組,用于TOR鏈路同步mac表項(xiàng),每一個(gè)RG組綁定10個(gè)SG。peer 1.1.1.5apply mac //表明這個(gè)rg會(huì)用于同步macapply arp //表明這個(gè)rg會(huì)用于同步arpapply nd //表明這個(gè)rg會(huì)用于同步ndapply stp //表明這個(gè)rg會(huì)用于同步stp exitredundancy interchassis group 2 //配置RG組,用于TOR鏈路同步mac表項(xiàng),每一個(gè)RG組綁定10個(gè)SG。peer 1.1.1.5apply mac //表明這個(gè)rg會(huì)用于同步macapply arp //表明這個(gè)rg會(huì)用于同步arpapply nd //表明這個(gè)rg會(huì)用于同步ndapply stp //表明這個(gè)rg會(huì)用于同步stp exit ///若干個(gè)lacpmc-lag priority 150 //根據(jù)優(yōu)先級(jí)協(xié)商設(shè)備級(jí)的主備,優(yōu)先級(jí)小的為主,peerlink斷鏈時(shí),備設(shè)備進(jìn)行退避,建議主為120,備為150mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag track zte peer-type //綁定track ,用于退避之前檢測(cè)keepalive鏈路mc-lag exempt smartgroup1023 //配置退避豁免口,退避時(shí)不會(huì)將keepalive端口down掉mc-lag reload-delay-up 480 //重啟上電后端口延時(shí)UP時(shí)間配置,默認(rèn)是480s exitmc-lag業(yè)務(wù)成員口配置
interface smartgroup11description connect-to-server exit lacpinterface smartgroup11 lacp mode 802.3ad lacp fast respondexitinterface xgei-0/1/1/1 smartgroup 11 mode activeexitinterface smartgroup12lacp mode 802.3ad lacp fast respondexitinterface xgei-0/1/1/2 smartgroup 12 mode activeexit exitlacpinterface smartgroup11 ///若干個(gè)mc-lag mode force-master //設(shè)置為雙主模式 mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag priority 150 //優(yōu)先級(jí)值越小為主設(shè)備mc-lag roid 11 node-id 2 兩臺(tái)設(shè)備同一個(gè)mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0011 sys-priority 111 //兩臺(tái)設(shè)備同一個(gè)mc-lag的sys-id和sys-priority 需要一致,為100+SG編號(hào)exitinterface smartgroup12 ///若干個(gè)mc-lag mode force-master //設(shè)置為雙主模式 mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag priority 150 //優(yōu)先級(jí)值越小為主設(shè)備mc-lag roid 11 node-id 2 //兩臺(tái)設(shè)備同一個(gè)mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0012 sys-priority 112 //兩臺(tái)設(shè)備同一個(gè)mc-lag的sys-id和sys-priority 需要一致,為100+SG編號(hào)exit exiticbg sg11 //配置同步使用的ICBG組,用于指定表項(xiàng)同步的接口bind interface smartgroup11 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時(shí)同步間隔,最小是5分鐘,默認(rèn)是10分鐘 exiticbg sg12 //配置同步使用的ICBG組,用于指定表項(xiàng)同步的接口bind interface smartgroup12 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時(shí)同步間隔,最小是5分鐘,默認(rèn)是10分鐘 exitswitchvlan-configurationinterface smartgroup11switchport mode accessswitchport access vlan xxexitinterface smartgroup12switchport mode accessswitchport access vlan xxexit exit生成樹配置
spantree //配置VSTPenable mode rstptc-guard enablevstp enable interface smartgroup11 //與服務(wù)器對(duì)接的端口設(shè)置為邊緣端口 edged-port enableexitinterface smartgroup12 //與服務(wù)器對(duì)接的端口設(shè)置為邊緣端口 edged-port enableexit///若干個(gè)interface smartgroup1024 //加入MC-LAG的PEER-LINK設(shè)置為內(nèi)部端口internal-port enable exit interfacesmartgroup 1 //上行接口disabledisable exit exit三層逃生
interface vlan4090description For_Service-Escapeip address 192.168.1.2 255.255.255.252 exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan add 4090exit exit 互相指相關(guān)地址段靜態(tài)即可,注意優(yōu)先級(jí); ip route 0.0.0.0 0.0.0.0 vlan4090 192.168.1.1 250總結(jié)
以上是生活随笔為你收集整理的【中兴交换机MC-LAG配置】的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 7. 从0学ARM-GNU伪指令、代码编
- 下一篇: 太阳高度角计算题_太阳高度练习题