华为ERPS单环多实例基础配置
拓扑图如下:
配置如下
CE1,CE2,CE3的配置如下:
(每台都设置)
inter g1/0/0
port link-type trunk
undo shutdown
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 100 to 400
stp dis
inter g1/0/1
port link-type trunk
undo shu
undo port trunk allow-pass vlan 1
port trunk allow-pass vlan 100 to 400
stp dis
(每台都设置)
sys im
stp region-configuration
instance 1 vlan 10 100 to 200
instance 2 vlan 20 300 to 400
(每台都设置)
erps ring 1
control-vlan 10
protected-instance 1
quit
erps ring 2
control-vlan 20
protected-instance 2
quit
(每台都设置)
erps ring 1
wtr-timer 1 配置WRT时间,链路故障恢复之后切换时间,个人理解
guard-timer 100
erps ring 2
wtr-timer 1
guard-timer 100
设置CE1为环的主节点
interface GE1/0/0
erps ring 1
erps ring 2 rpl owner 设置ring2的owner端口
interface GE1/0/1
erps ring 1 rpl owner 设置ring1的owner端口
erps ring 2
其余CE2,CE3
interface GE1/0/0
erps ring 1
erps ring 2
interface GE1/0/1
erps ring 1
erps ring 2
CE3 G1/0/2接口配置
interface GE1/0/2
undo shutdown
port default vlan 100
stp disable
CE1下接PC使用vlan100走环ring1路径,在CE3和PC之间配置三层地址一直ping检测,down掉CE1的G1/0/0端口。看端口状态是否切换,ping检测是否中断切换
主:PC-CE1-CE2-CE3 备:PC-CE1-CE3
查看接口状态命令:dis erps
查看ERPS配置:dis current-configuration configuration erps
查看单实列的端口状态:dis erps ring 1