H3CIE 備考:分解實(shí)驗(yàn) 03 Smart link+VRRP

Smart link 配置拓?fù)鋱D圖示
官方配置文檔連接:https://www.h3c.com/cn/d_202302/1783904_30005_0.htm
Smart link配置白板,Smart Link 命令設(shè)置步驟
(一)??SW3配置信息
①???創(chuàng)建VLAN
System-view
Vlan 10 //模擬業(yè)務(wù)A
Vlan 20 //模擬業(yè)務(wù)B
Vlan 100 //模擬業(yè)務(wù)control-vlan
Vlan 200 //模擬業(yè)務(wù)control-vlan
②???配置接口放行業(yè)務(wù)vlan 和保護(hù)vlan
interface gigabitethernet 1/0/1
?shutdown
undo stp enable
port link-type trunk
port trunk permit vlan 10 20 100 200
quit
interface gigabitethernet 1/0/2
?shutdown
undo stp enable
port link-type trunk
port trunk permit vlan 10 20 100 200
quit
③???創(chuàng)建vlan映射到對(duì)應(yīng)MST域的配置
stp region-configuration
instance 1 vlan 10
instance 2 vlan 20
active region-configuration
quit
④???創(chuàng)建Smart link 組1,并配置其保護(hù)VLAN為MST X所映射的VLAN
smart-link group 1
protected-vlan reference-instance 1
#配置Smart Link組1的主端口為GigabitEthernet1/0/1,從端口為GigabitEthernet1/0/2。
port gigabitethernet 1/0/1 primary
port gigabitethernet 1/0/2 secondary
#在Smart Link組1中配置搶占模式為角色搶占模式;開(kāi)啟發(fā)送Flush報(bào)文的功能,并指定發(fā)送Flush報(bào)文的控制VLAN為VLAN 10。
preemption mode role
flush enable control-vlan 100
quit
⑤???創(chuàng)建Smart link 組2,并配置其保護(hù)VLAN為MST 2所映射的VLAN
smart-link group 2
protected-vlan reference-instance 2
# 配置Smart Link組2的主端口為GigabitEthernet1/0/2,從端口為GigabitEthernet1/0/1。
?port gigabitethernet 1/0/2 primary
port gigabitethernet 1/0/1 secondary
# 在Smart Link組2中配置搶占模式為角色搶占模式;開(kāi)啟發(fā)送Flush報(bào)文的功能,并指定發(fā)送Flush報(bào)文的控制VLAN為VLAN 110。
preemption mode role
flush enable control-vlan 200
quit
⑥???重新開(kāi)啟端口GigabitEthernet1/0/1和GigabitEthernet1/0/2。
interface gigabitethernet 1/0/1
undo shutdown
quit
interface gigabitethernet 1/0/1
undo shutdown
quit
(二)??SW2配置信息
①???創(chuàng)建VLAN
System-view
Vlan 10 //模擬業(yè)務(wù)A
Vlan 20 //模擬業(yè)務(wù)B
Vlan 100 //模擬業(yè)務(wù)control-vlan
Vlan 200 //模擬業(yè)務(wù)control-vlan
②???將端口GigabitEthernet1/0/1 GigabitEthernet1/0/2配置為T(mén)runk端口且允許VLAN 10 20 100 200通過(guò),在該端口上開(kāi)啟接收Flush報(bào)文的功能,并指定接收Flush報(bào)文的控制VLAN為VLAN 100和110。
interface rang gigabitethernet 1/0/1 gigabitethernet 1/0/2
port link-type trunk
port trunk permit vlan 10 20 100 200
undo stp enable
smart-link flush enable control-vlan 100 200
quit
(三)??SW2配置信息
①???創(chuàng)建VLAN
System-view
Vlan 10 //模擬業(yè)務(wù)A
Vlan 20 //模擬業(yè)務(wù)B
Vlan 100 //模擬業(yè)務(wù)control-vlan
Vlan 200 //模擬業(yè)務(wù)control-vlan
②???將端口GigabitEthernet1/0/1 GigabitEthernet1/0/2配置為T(mén)runk端口且允許VLAN 10 20 100 200通過(guò),在該端口上開(kāi)啟接收Flush報(bào)文的功能,并指定接收Flush報(bào)文的控制VLAN為VLAN 100和110。
interface rang gigabitethernet 1/0/1 gigabitethernet 1/0/2
port link-type trunk
port trunk permit vlan 10 20 100 200
undo stp enable
smart-link flush enable control-vlan 100 200
quit
(四)??配置驗(yàn)證
①???通過(guò)使用display smart-link group命令可以查看設(shè)備上Smart Link組的信息:
# 顯示SW3上Smart Link組的信息。
截圖信息
②???通過(guò)使用display smart-link flush命令可以查看設(shè)備上收到的Flush報(bào)文信息:
# 顯示SW1-3上收到的Flush報(bào)文信息。
示意截圖信息
?