【中兴交换机MC-LAG配置】
生活随笔
收集整理的這篇文章主要介紹了
【中兴交换机MC-LAG配置】
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
【中興交換機MC-LAG配置】
- 主設備配置如下:
- Keepalive鏈路
- Peer-Link鏈路
- MC-LAG配置
- mc-lag業務成員口配置
- 生成樹配置
- 三層逃生
- 備設備配置如下:
- Keepalive鏈路
- Peer-Link鏈路
- MC-LAG配置
- mc-lag業務成員口配置
- 生成樹配置
- 三層逃生
主設備配置如下:
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設置為peerlinkexit exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan xx //peer-link透傳下行業務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表項,每一個RG組綁定10個SG。peer 1.1.1.6apply mac //表明這個rg會用于同步macapply arp //表明這個rg會用于同步arpapply nd //表明這個rg會用于同步ndapply stp //表明這個rg會用于同步stp exitredundancy interchassis group 2 //配置RG組,用于TOR鏈路同步mac表項,每一個RG組綁定10個SG。peer 1.1.1.6apply mac //表明這個rg會用于同步macapply arp //表明這個rg會用于同步arpapply nd //表明這個rg會用于同步ndapply stp //表明這個rg會用于同步stp exit ///若干個lacpmc-lag priority 120 //根據優先級協商設備級的主備,優先級小的為主,peerlink斷鏈時,備設備進行退避,建議主為120,備為150mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag track zte peer-type //綁定track ,用于退避之前檢測keepalive鏈路mc-lag exempt smartgroup1023 //配置退避豁免口,退避時不會將keepalive端口down掉mc-lag reload-delay-up 480 //重啟上電后端口延時UP時間配置,默認是480s exitmc-lag業務成員口配置
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 ///若干個mc-lag mode force-master //設置為雙主模式 mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag priority 120 //優先級值越小為主設備mc-lag roid 11 node-id 1 //兩臺設備同一個mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0011 sys-priority 111 //兩臺設備同一個mc-lag的sys-id和sys-priority 需要一致,為100+SG編號exitinterface smartgroup12 ///若干個mc-lag mode force-master //設置為雙主模式 mc-lag ipv4 source 1.1.1.1 destination 1.1.1.2 vrf keepalivemc-lag priority 120 //優先級值越小為主設備mc-lag roid 12 node-id 1 //兩臺設備同一個mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0012 sys-priority 112 //兩臺設備同一個mc-lag的sys-id和sys-priority 需要一致,為100+SG編號exit exiticbg sg11 //配置同步使用的ICBG組,用于指定表項同步的接口bind interface smartgroup11 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時同步間隔,最小是5分鐘,默認是10分鐘 exiticbg sg12 //配置同步使用的ICBG組,用于指定表項同步的接口bind interface smartgroup12 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時同步間隔,最小是5分鐘,默認是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 //與服務器對接的端口設置為邊緣端口 edged-port enableexitinterface smartgroup12 //與服務器對接的端口設置為邊緣端口 edged-port enableexit///若干個interface smartgroup1024 //加入MC-LAG的PEER-LINK設置為內部端口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 互相指相關地址段靜態即可,注意優先級; ip route 0.0.0.0 0.0.0.0 vlan4090 192.168.1.2 250=======================================================
備設備配置如下:
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設置為peerlinkexit exitswitchvlan-configurationinterface smartgroup1024switchport mode trunkswitchport trunk vlan xx //peer-link透傳下行業務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表項,每一個RG組綁定10個SG。peer 1.1.1.5apply mac //表明這個rg會用于同步macapply arp //表明這個rg會用于同步arpapply nd //表明這個rg會用于同步ndapply stp //表明這個rg會用于同步stp exitredundancy interchassis group 2 //配置RG組,用于TOR鏈路同步mac表項,每一個RG組綁定10個SG。peer 1.1.1.5apply mac //表明這個rg會用于同步macapply arp //表明這個rg會用于同步arpapply nd //表明這個rg會用于同步ndapply stp //表明這個rg會用于同步stp exit ///若干個lacpmc-lag priority 150 //根據優先級協商設備級的主備,優先級小的為主,peerlink斷鏈時,備設備進行退避,建議主為120,備為150mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag track zte peer-type //綁定track ,用于退避之前檢測keepalive鏈路mc-lag exempt smartgroup1023 //配置退避豁免口,退避時不會將keepalive端口down掉mc-lag reload-delay-up 480 //重啟上電后端口延時UP時間配置,默認是480s exitmc-lag業務成員口配置
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 ///若干個mc-lag mode force-master //設置為雙主模式 mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag priority 150 //優先級值越小為主設備mc-lag roid 11 node-id 2 兩臺設備同一個mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0011 sys-priority 111 //兩臺設備同一個mc-lag的sys-id和sys-priority 需要一致,為100+SG編號exitinterface smartgroup12 ///若干個mc-lag mode force-master //設置為雙主模式 mc-lag ipv4 source 1.1.1.2 destination 1.1.1.1 vrf keepalivemc-lag priority 150 //優先級值越小為主設備mc-lag roid 11 node-id 2 //兩臺設備同一個mc-lag的 roid值要一致,node-id值要不一樣mc-lag sys-id 0000.5960.0012 sys-priority 112 //兩臺設備同一個mc-lag的sys-id和sys-priority 需要一致,為100+SG編號exit exiticbg sg11 //配置同步使用的ICBG組,用于指定表項同步的接口bind interface smartgroup11 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時同步間隔,最小是5分鐘,默認是10分鐘 exiticbg sg12 //配置同步使用的ICBG組,用于指定表項同步的接口bind interface smartgroup12 //需要同步mac的接口bind rg 1 //綁定同步的rgbind slave-interface smartgroup1024 //綁定peerlink鏈路group-backup-interval 5 //定時同步間隔,最小是5分鐘,默認是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 //與服務器對接的端口設置為邊緣端口 edged-port enableexitinterface smartgroup12 //與服務器對接的端口設置為邊緣端口 edged-port enableexit///若干個interface smartgroup1024 //加入MC-LAG的PEER-LINK設置為內部端口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 互相指相關地址段靜態即可,注意優先級; ip route 0.0.0.0 0.0.0.0 vlan4090 192.168.1.1 250總結
以上是生活随笔為你收集整理的【中兴交换机MC-LAG配置】的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 7. 从0学ARM-GNU伪指令、代码编
- 下一篇: 太阳高度角计算题_太阳高度练习题