其他分享
首页 > 其他分享> > 第五篇:ERPS工业环网配置实验

第五篇:ERPS工业环网配置实验

作者:互联网

 一、组网拓扑

 

 

二、配置思路
1、采用如下的思路配置ERPS单环:

2、配置加入ERPS环的所有端口类型为Trunk型。

3、创建ERPS环,并配置控制VLAN和保护实例。

4、将二层端口加入ERPS环并配置端口角色。

5、配置ERPS环的Guard Timer和WTR(Wait to Restore) Timer定时器。

6、配置DeviceA~DeviceD二层转发功能。

三、数据准备
1、为完成此配置例,需准备如下的数据:

2、ERPS环ID、控制VLAN ID和保护实例ID。

3、Guard Timer和WTR Timer定时器大小。

4、二层转发VLAN ID。

三、配置步骤

1、配置加入ERPS环的所有端口类型为Trunk型。

2、创建ERPS环1、ERPS环2并配置两个ERPS环的保护实例,配置ERPS环1的控制VLAN ID为10,ERPS环2的控制VLAN ID为20,ERPS环1传递VLAN100~VLAN200的数据报文,ERPS环2传递VLAN300~VLAN400的数据报文。

3、将二层端口加入ERPS环并配置端口角色,分别将DeviceA的端口1/0/1和DeviceB的端口1/0/2配置为RPL owner。

4、配置ERPS环的Guard Timer和WTR Timer定时器。

5、配置DeviceA~DeviceD二层转发功能。

四、配置脚本

sysname CE-5
#
device board 1 board-type CE-MPUB
#
vlan batch 10 20 100 to 200 300 to 400
#
vlan instance
instance 1 vlan 10 100 to 200
instance 2 vlan 20 300 to 400
#
erps ring 1
control-vlan 10
protected-instance 1
wtr-timer 6
guard-timer 100
#
erps ring 2
control-vlan 20
protected-instance 2
wtr-timer 6
guard-timer 100
#
#
interface GE1/0/0
undo shutdown
port default vlan 100
#
interface GE1/0/1
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2 rpl owner
#
interface GE1/0/2
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
interface GE1/0/3
undo shutdown
port default vlan 300
#

#
sysname CE-6
#
device board 1 board-type CE-MPUB
#
vlan batch 10 20 100 to 200 300 to 400
#
vlan instance
instance 1 vlan 10 100 to 200
instance 2 vlan 20 300 to 400
#
erps ring 1
control-vlan 10
protected-instance 1
wtr-timer 6
guard-timer 100
#
erps ring 2
control-vlan 20
protected-instance 2
wtr-timer 6
guard-timer 100
#
interface GE1/0/0
undo shutdown
port default vlan 300
#
interface GE1/0/1
shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
interface GE1/0/2
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1 rpl owner
erps ring 2
#
interface GE1/0/3
undo shutdown
port default vlan 100
#

 

sysname CE-7
#
device board 1 board-type CE-MPUB
#
vlan batch 10 20 100 to 200 300 to 400
#
interface Vlanif100
ip address 192.168.1.252 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.1.254
vrrp vrid 1 priority 200
#
interface Vlanif300
ip address 192.168.3.252 255.255.255.0
vrrp vrid 3 virtual-ip 192.168.3.254
#
vlan instance
instance 1 vlan 10 100 to 200
instance 2 vlan 20 300 to 400
#
erps ring 1
control-vlan 10
protected-instance 1
wtr-timer 6
guard-timer 100
#
erps ring 2
control-vlan 20
protected-instance 2
wtr-timer 6
guard-timer 100
#
interface GE1/0/0
undo shutdown
port default vlan 100
#
interface GE1/0/1
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
interface GE1/0/2
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#

sysname CE-8
#
device board 1 board-type CE-MPUB
#
vlan batch 10 20 100 to 200 300 to 400
#
interface Vlanif100
ip address 192.168.1.253 255.255.255.0
vrrp vrid 1 virtual-ip 192.168.1.254
#
interface Vlanif300
ip address 192.168.3.253 255.255.255.0
vrrp vrid 3 virtual-ip 192.168.3.254
vrrp vrid 3 priority 120
#
vlan instance
instance 1 vlan 10 100 to 200
instance 2 vlan 20 300 to 400
#
erps ring 1
control-vlan 10
protected-instance 1
wtr-timer 6
guard-timer 100
#
erps ring 2
control-vlan 20
protected-instance 2
wtr-timer 6
guard-timer 100
#
interface GE1/0/0
undo shutdown
port default vlan 300
#
interface GE1/0/1
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#
interface GE1/0/2
undo shutdown
port link-type trunk
port trunk allow-pass vlan 10 20 100 to 200 300 to 400
stp disable
erps ring 1
erps ring 2
#

 

标签:ERPS,20,vlan,erps,port,第五篇,ring,100,环网
来源: https://www.cnblogs.com/ljflovewxf/p/16079065.html