ERPS(Ethernet Ring Protection Switching):以太网多环保护技术
ERPS节点信息
1、RPL owner 节点(主节点)
一个 ERPS 环只有一个 RPL owner 节点,由用户配置决定,通过阻塞 RPL 端口来防止 ERPS 环中产生环路,当 RPL owner 节点收到故障报文得知 ERPS 环上其他节点或链路故障时,会自动放开 RPL 端口,此端口恢复流量的接收和发送,保证流量不会中断;
2、RPL neighbour 节点(邻近节点)
与 RPL owner 节点的 RPL 端口直接相连的节点,正常情况下, RPL owner 节点的 RPL 端口和 RPL neighbour 节点的 RPL 端口都会被阻塞,以防止环路产生。当 ERPS 环出现故障时,RPL owner 节点的 RPL 端口和 RPL neighbour 节点的 RPL 端口都会被放开;
主节点和邻近节点这两种节点之间的端口是RPL端口,RPL连接的这根链路在erps环网正常的情况下是不通的。
3、传输节点
每个环网内需要主节点、临近节点各一,其它都为transfer节点(传输节点)。
以H3C交换机举例配置图
配置A
创建 vlan1~30,并将这些 vlan都映射到 MSTI 1 上,并激活 MST 域的配置。
system-view
[DeviceA] vlan 1 to 30
[DeviceA] stp region-configuration
[DeviceA-mst-region] instance 1 vlan 1 to 30
[DeviceA-mst-region] active region-configuration
[DeviceA-mst-region] quit
#分别在端口 GigabitEthernet1/0/1 和 GigabitEthernet1/0/2 上配置物理连接状态 up/down 抑 制时间为 0 秒(即不抑制) ,关闭生成树协议, 并将端口配置为 Trunk 端口且允许 VLAN 1~ 30 通过。
[DeviceA] interface gigabitethernet 1/0/1
[DeviceA-GigabitEthernet1/0/1] link-delay up 0
[DeviceA-GigabitEthernet1/0/1] link-delay down 0
[DeviceA-GigabitEthernet1/0/1] undo stp enable
[DeviceA-GigabitEthernet1/0/1] port link-type trunk
[DeviceA-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceA-GigabitEthernet1/0/1] quit
[DeviceA] interface gigabitethernet 1/0/2
[DeviceA-GigabitEthernet1/0/2] link-delay up 0
[DeviceA-GigabitEthernet1/0/2] link-delay down 0
[DeviceA-GigabitEthernet1/0/2] undo stp enable
[DeviceA-GigabitEthernet1/0/2] port link-type trunk
[DeviceA-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceA-GigabitEthernet1/0/2] quit
#创建 ERPS 环 1。
[DeviceA] erps ring 1
#配置 ERPS 环成员端口。
[DeviceA-erps-ring1] port0 interface gigabitethernet 1/0/1
[DeviceA-erps-ring1] port1 interface gigabitethernet 1/0/2
#创建 ERPS 实例 1。
[DeviceA-erps-ring1] instance 1
#配置节点角色。
[DeviceA-erps-ring1-inst1] node-role owner rpl port0
#配置控制 VLAN。
[DeviceA-erps-ring1-inst1] control-vlan 100
#配置保护 VLAN。
[DeviceA-erps-ring1-inst1] protected-vlan reference-instance 1
#实例 1 使能 ERPS 协议。
[DeviceA-erps-ring1-inst1] instance enable
[DeviceA-erps-ring1-inst1] quit
[DeviceA-erps-ring1] quit
#使能 ERPS 协议。
[DeviceA] erps enable
配置B
#创建 VLAN 1~30,将这些 VLAN 都映射到 MSTI 1 上,并激活 MST 域的配置。
system-view
[DeviceB] vlan 1 to 30
[DeviceB] stp region-configuration
[DeviceB-mst-region] instance 1 vlan 1 to 30
[DeviceB-mst-region] active region-configuration
[DeviceB-mst-region] quit
#分别在端口 GigabitEthernet1/0/1 和 GigabitEthernet1/0/2 上配置物理连接状态 up/down 抑 制时间为 0 秒(即不抑制) ,关闭生成树协议, 并将端口配置为 Trunk 端口且允许 VLAN 1~ 30 通过。
[DeviceB] interface gigabitethernet 1/0/1
[DeviceB-GigabitEthernet1/0/1] link-delay up 0
[DeviceB-GigabitEthernet1/0/1] link-delay down 0
[DeviceB-GigabitEthernet1/0/1] undo stp enable
[DeviceB-GigabitEthernet1/0/1] port link-type trunk
[DeviceB-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceB-GigabitEthernet1/0/1] quit
[DeviceB] interface gigabitethernet 1/0/2
[DeviceB-GigabitEthernet1/0/2] link-delay up 0
[DeviceB-GigabitEthernet1/0/2] link-delay down 0
[DeviceB-GigabitEthernet1/0/2] undo stp enable
[DeviceB-GigabitEthernet1/0/2] port link-type trunk
[DeviceB-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceB-GigabitEthernet1/0/2] quit
#创建 ERPS 环 1。
[DeviceB] erps ring 1
#配置 ERPS 环成员端口。
[DeviceB-erps-ring1] port0 interface gigabitethernet 1/0/1
[DeviceB-erps-ring1] port1 interface gigabitethernet 1/0/2
#创建 ERPS 实例 1。
[DeviceB-erps-ring1] instance 1
#配置节点角色。
[DeviceB-erps-ring1-inst1] node-role neighbor rpl port0
#配置控制 VLAN。
[DeviceB-erps-ring1-inst1] control-vlan 100
#配置保护 VLAN。
[DeviceB-erps-ring1-inst1] protected-vlan reference-instance 1
#实例 1 使能 ERPS 协议。
[DeviceB-erps-ring1-inst1] instance enable
[DeviceB-erps-ring1-inst1] quit
[DeviceB-erps-ring1] quit
#使能 ERPS 协议
[DeviceB] erps enable
配置C、D
#创建 VLAN 1~30,将这些 VLAN 都映射到 MSTI 1 上,并激活 MST 域的配置。
system-view
[DeviceC] vlan 1 to 30
[DeviceC] stp region-configuration
[DeviceC-mst-region] instance 1 vlan 1 to 30
[DeviceC-mst-region] active region-configuration
[DeviceC-mst-region] quit
#分别在端口 GigabitEthernet1/0/1,GigabitEthernet1/0/2 和 GigabitEthernet1/0/3 上配置物 理连接状态 up/down 抑制时间为 0 秒(即不抑制) ,关闭生成树协议, 并将端口配置为 Trunk 端口且允许 VLAN 1~30 通过。
[DeviceC] interface gigabitethernet 1/0/1
[DeviceC-GigabitEthernet1/0/1] link-delay up 0
[DeviceC-GigabitEthernet1/0/1] link-delay down 0
[DeviceC-GigabitEthernet1/0/1] undo stp enable
[DeviceC-GigabitEthernet1/0/1] port link-type trunk
[DeviceC-GigabitEthernet1/0/1] port trunk permit vlan 1 to 30
[DeviceC-GigabitEthernet1/0/1] quit
[DeviceC] interface gigabitethernet 1/0/2
[DeviceC-GigabitEthernet1/0/2] link-delay up 0
[DeviceC-GigabitEthernet1/0/2] link-delay down 0
[DeviceC-GigabitEthernet1/0/2] undo stp enable
[DeviceC-GigabitEthernet1/0/2] port link-type trunk
[DeviceC-GigabitEthernet1/0/2] port trunk permit vlan 1 to 30
[DeviceC-GigabitEthernet1/0/2] quit
[DeviceC] interface gigabitethernet 1/0/3
[DeviceC-GigabitEthernet1/0/3] link-delay up 0
[DeviceC-GigabitEthernet1/0/3] link-delay down 0
[DeviceC-GigabitEthernet1/0/3] undo stp enable
[DeviceC-GigabitEthernet1/0/3] port link-type trunk
[DeviceC-GigabitEthernet1/0/3] port trunk permit vlan 1 to 30
[DeviceC-GigabitEthernet1/0/3] quit
创建 ERPS 环 1.
[DeviceC] erps ring 1
配置 ERPS 环成员端口。
[DeviceC-erps-ring1] port0 interface gigabitethernet 1/0/1
[DeviceC-erps-ring1] port1 interface gigabitethernet 1/0/2
#创建 ERPS 实例。
[DeviceC-erps-ring1] instance 1
#配置控制 VLAN。
[DeviceC-erps-ring1-inst1] control-vlan 100
#配置保护 VLAN。
[DeviceC-erps-ring1-inst1] protected-vlan reference-instance 1
#实例 1 使能 ERPS 协议。
[DeviceC-erps-ring1-inst1] instance enable
[DeviceC-erps-ring1-inst1] quit
检查环网状态
IDLE状态代表环网链路正常。
有的交换机有单独的web网页,可以登录上之后直接配置erps环网,无需敲命令。