RPR主要应用在城域网骨干层和接入层,同时也可以在分散的政务网、企业网和校园网中应用,还可应用于IDC(Internet Data Center)和ISP(Internet Service Provider)之中。RPR环网的主要目标是建立低成本高性能的IP城域网,作为城域网中IP业务的承载网络。
在IP城域网中,运营商需要为个人用户和大客户提供包括宽带上网、专线接入、数据互连、VPN等在内的各种业务,为此需要组建一个高品质运营网络。RPR提供一套高品质低成本的解决方案。相对以往的纯以太城域网,RPR城域网由于固有的保护特性,具有更高的可靠性,同时RPR的带宽公平分配能力能够大大提升光纤带宽资源的利用率,避免以往城域网星形结构下部分主干链路成为瓶颈导致其他链路带宽利用率低下的问题,此外也提供很灵活的扩展性。
采用如下的思路配置本例:
1. 创建RPR逻辑接口。
2. 配置物理端口和逻辑接口的绑定关系。
3. 配置静态ARP。
4. 启动RPR逻辑接口。
说明
配置用例中,只列出了与RPR配置相关的命令。
路由器RouterA、RouterB、RouterC和RouterD连接成一个逆向双环拓扑结构。
每台路由器上都是有两个RPR物理口RPR 3/0/0和RPR 4/0/0;RPR 3/0/0作为西向Span对应接口,RPR 4/0/0作为东向Span对应接口。
RPR环组网示意图
采用NE40E/NE80E设备,版本为(VRP5.30-31)及后续版本
步骤 1 配置RouterA
# 创建并配置RPR逻辑接口ring-if 1。
<RouterA> system-view
[RouterA] interface ring-if 1
[RouterA–ring-if1] shutdown
[RouterA–ring-if1] rpr mac-address 1-1-1
[RouterA–ring-if1] ip address 129.10.0.1 255.255.255.0
[RouterA–ring-if1] quit
# 配置与RPR逻辑接口ring-if 1绑定的RPR物理接口。
[RouterA] interface rpr 3/0/0
[RouterA-rpr3/0/0] rpr bind ring-if 1 west
[RouterA-rpr3/0/0] undo shutdown
[RouterA-rpr3/0/0] quit
[RouterA] interface rpr 4/0/0
[RouterA-rpr4/0/0] rpr bind ring-if 1 east
[RouterA-rpr4/0/0] undo shutdown
[RouterA-rpr4/0/0] quit
# 配置静态ARP。
[RouterA] arp static 129.10.0.2 2-2-2
[RouterA] arp static 129.10.0.3 3-3-3
[RouterA] arp static 129.10.0.4 4-4-4
# 启动RPR逻辑接口。
[RouterA] interface ring-if 1
[RouterA–ring-if1] undo shutdown
步骤 2 配置RouterB
# 创建并配置RPR逻辑接口ring-if 1。
<RouterB> system-view
[RouterB] interface ring-if 1
[RouterB–ring-if1] shutdown
[RouterB–ring-if1] rpr mac-address 2-2-2
[RouterB–ring-if1] ip address 129.10.0.2 255.255.255.0
[RouterB–ring-if1] quit
# 配置与RPR逻辑接口ring-if 1绑定的RPR物理接口。
[RouterB] interface rpr 3/0/0
[RouterB-rpr3/0/0] rpr bind ring-if 1 west
[RouterB-rpr3/0/0] undo shutdown
[RouterB-rpr3/0/0] quit
[RouterB] interface rpr 4/0/0
[RouterB-rpr4/0/0] rpr bind ring-if 1 east
[RouterB-rpr4/0/0] undo shutdown
[RouterB-rpr4/0/0] quit
# 配置静态ARP。
[RouterB] arp static 129.10.0.1 1-1-1
[RouterB] arp static 129.10.0.3 3-3-3
[RouterB] arp static 129.10.0.4 4-4-4
# 启动RPR逻辑接口。
[RouterB] interface ring-if 1
[RouterB–ring-if1] undo shutdown
步骤 3 配置RouterC
# 创建并配置RPR逻辑接口ring-if 1。
<RouterC> system-view
[RouterC] interface ring-if 1
[RouterC–ring-if1] shutdown
[RouterC–ring-if1] rpr mac-address 3-3-3
[RouterC–ring-if1] ip address 129.10.0.3 255.255.255.0
[RouterC–ring-if1] quit
# 配置与RPR逻辑接口ring-if 1绑定的RPR物理接口。
[RouterC] interface rpr 3/0/0
[RouterC-rpr3/0/0] rpr bind ring-if 1 west
[RouterC-rpr3/0/0] undo shutdown
[RouterC-rpr3/0/0] quit
[RouterC] interface rpr 4/0/0
[RouterC-rpr4/0/0] rpr bind ring-if 1 east
[RouterC-rpr4/0/0] undo shutdown
# 配置静态ARP。
[RouterC] arp static 129.10.0.1 1-1-1
[RouterC] arp static 129.10.0.2 2-2-2
[RouterC] arp static 129.10.0.4 4-4-4
# 启动RPR逻辑接口。
[RouterC] interface ring-if 1
[RouterC–ring-if1] undo shutdown
步骤 4 配置RouterD
# 创建并配置RPR逻辑接口ring-if 1。
<RouterD> system-view
[RouterD] interface ring-if 1
[RouterD–ring-if1] shutdown
[RouterD–ring-if1] rpr mac-address 4-4-4
[RouterD–ring-if1] ip address 129.10.0.4 24
[RouterD–ring-if1] quit
# 配置与RPR逻辑接口ring-if 1绑定的RPR物理接口。
[RouterD] interface rpr 3/0/0
[RouterD-rpr3/0/0] rpr bind ring-if 1 west
[RouterD-rpr3/0/0] undo shutdown
[RouterD-rpr3/0/0] quit
[RouterD] interface rpr 4/0/0
[RouterD-rpr4/0/0] rpr bind ring-if 1 east
[RouterD-rpr4/0/0] undo shutdown
# 配置静态ARP。
[RouterD] arp static 129.10.0.1 1-1-1
[RouterD] arp static 129.10.0.2 2-2-2
[RouterD] arp static 129.10.0.3 3-3-3
# 启动RPR逻辑接口。
[RouterD] interface ring-if 1
[RouterD–ring-if1] undo shutdown
在RouterA上查看RPR环的状态,应该为闭环(closed ring),环上共4个路由器。
<RouterA> display rpr topoinfo interface ring-if 1 ringinfo
Current topology type of the ring is a closed ring
Number of stations on the ring is 4
The Maximum Transmit Unit of the ring is 9100 bytes
Ring Supports jumbo frame
Do not supports bad fcs frames
Ring0:
Upstream stations 3, downstream stations 3, Unreserved rate 10000 MB/S
Ring1:
Upstream stations 3, downstream stations 3, Unreserved rate 10000 MB/S
从RouterA上能ping通RouterB、RouterC和RouterD的Ring-if 1接口。
<RouterA> ping 129.10.0.2
PING 129.10.0.2: 56 data bytes, press CTRL_C to break
Reply from 129.10.0.2: bytes=56 Sequence=1 ttl=254 time = 3 ms
Reply from 129.10.0.2: bytes=56 Sequence=2 ttl=254 time = 3 ms
Reply from 129.10.0.2: bytes=56 Sequence=3 ttl=254 time = 3 ms
Reply from 129.10.0.2: bytes=56 Sequence=4 ttl=254 time = 3 ms
Reply from 129.10.0.2: bytes=56 Sequence=5 ttl=254 time = 3 ms
--- 129.10.0.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/3/3 ms
RouterA的配置文件
#
sysname RouterA
#
interface ring-if1
ip address 129.10.0.1 255.255.255.0
rpr mac-address 0001-0001-0001
#
interface rpr3/0/0
rpr bind ring-if1 west
undo shutdown
#
interface rpr4/0/0
rpr bind ring-if1 east
undo shutdown
#
arp static 129.10.0.2 0002-0002-0002
arp static 129.10.0.3 0003-0003-0003
arp static 129.10.0.4 0004-0004-0004
#
RouterB,RouterC和RouterD的配置文件类似。
|
|
||
|
|
||
|
|
开班时间 | 班级类型 | 报名情况 |
---|
7月14日 |
H3CTE认证 |
热报中 |
7月7日 |
H3CSE培训 |
热报中 |
7月7日 |
H3CNE认证 |
热报中 |
7月14日 |
H3CTE认证 |
热报中 |
7月7日 |
H3CSE培训 |
热报中 |
7月7日 |
H3CNE培训 |
热报中 |
7月14日 |
H3CTE认证 |
热报中 |
7月7日 |
H3CSE认证 |
热报中 |
7月7日 |
H3CNE培训 |
热报中 |
7月21日 |
H3CIMC培训 |
热报中 |
7月8日 |
H3C无线培训 |
热报中 |
7月8日 |
H3CEAD培训 |
热报中 |
7月28日 |
H3CPME认证 |
热报中 |
7月14日 |
H3C安全认证 |
热报中 |
7月21日 |
H3CIMC培训 |
热报中 |
7月8日 |
H3C无线培训 |
热报中 |
7月8日 |
H3CEAD培训 |
热报中 |
7月28日 |
H3CPME认证 |
热报中 |
7月14日 |
H3C安全认证 |
热报中 |
7月21日 |
H3CIMC培训 |
热报中 |
7月8日 |
H3C无线培训 |
热报中 |
7月8日 |
H3CEAD培训 |
热报中 |
7月28日 |
H3CPME认证 |
热报中 |
7月14日 |
H3C安全认证 |
热报中 |