ULPP 典型案例應用
ULPP 可以通過配置來實現 VLAN 負載均衡。如圖 所示,switchA 上配置了兩個 ULPP 組:
組 1 中端口 E1/0/1 做為主端口,端口 E1/0/2 為副端口,
組 2 中端口 E1/0/2 為主端口,端 口 E1/0/1 為副端口,
組 1 和組 2 保護的 VLAN 分別為 1-100 和 101-200。
此時端口 E1/0/1 和端 口 E1/0/2 同時處於轉發狀態,主端口和副端口互為備份,分別轉發不同范圍 VLAN 的報文。
端口 E1/0/1 發生故障時,VLAN 1-200 的流量都會由端口 E1/0/2 進行轉發。
此后當端口 E1/0/1 恢復正常時,端口 E1/0/2 繼續轉發 VLAN 101-200 的數據,VLAN 1-100 的數據切換到端口 E1/0/1 轉發。
switchA 配置任務序列:
Switch(Config)#spanning-tree mst configuration
Switch(Config-Mstp-Region)#instance 1 vlan 1-100
Switch(Config-Mstp-Region)#instance 2 vlan 101-200
Switch(Config-Mstp-Region)#exit
Switch(Config)#ulpp group 1
Switch(ulpp-group-1)#protect vlan-reference-instance 1
Switch(ulpp-group-1)#preemption mode
Switch(ulpp-group-1)#exit
Switch(Config)#ulpp group 2
Switch(ulpp-group-2)#protect vlan-reference-instance 2
Switch(ulpp-group-2)#preemption mode
Switch(ulpp-group-2)#exit
Switch(Config)#interface ethernet 1/0/1
Switch(config-If-Ethernet1/0/1)#switchport mode trunk
Switch(config-If-Ethernet1/0/1)#ulpp group 1 master
Switch(config-If-Ethernet1/0/1)#ulpp group 2 slave
Switch(config-If-Ethernet1/0/1)#exit
Switch(Config)#interface Ethernet 1/0/2
Switch(config-If-Ethernet1/0/2)#switchport mode trunk
Switch(config-If-Ethernet1/0/2)# ulpp group 1 slave
Switch(config-If-Ethernet1/0/2)# ulpp group 2 master
switchB 配置任務序列:
Switch(Config)#interface ethernet 1/0/1
Switch(config-If-Ethernet1/0/1)#switchport mode trunk
Switch(config-If-Ethernet1/0/1)# ulpp flush enable mac
Switch(config-If-Ethernet1/0/1)#ulpp flush enable arp
switchC 配置任務序列:
Switch(Config)#interface ethernet 1/0/2
Switch(config-If-Ethernet1/0/2)# switchport mode trunk
Switch(config-If-Ethernet1/0/2)# ulpp flush enable mac
Switch(config-If-Ethernet1/0/2)# ulpp flush enable arp