08-H3C SR6600_SR6600-X路由器 帧中继典型配置举例
本章节下载 (194.26 KB)
H3C SR6600/SR6600-X系列路由器
帧中继配置举例
Copyright © 2022 新华三技术有限公司 版权所有,保留一切权利。
非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。
除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。
本文档中的信息可能变动,恕不另行通知。
目 录
本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。
如图1所示,公司总部和分支机构通过帧中继网络相连,帧中继网络与Device A相连的2条虚电路DLCI分别为50和60,与Device B相连的虚电路DLCI为70,与Device C相连的虚电路DLCI为80。
要求实现:Device A可以通过帧中继网络分别与Device B、Device C通信。
图1 通过帧中继网络互连局域网配置组网图
· 由于DTE是终端设备,DCE是网络设备,所以帧中继网络中的设备工作在帧中继的DCE方式,Device A、Device B、Device C只能工作在帧中继的DTE方式。
· 为防止网络拓扑变化,选择运行InARP动态建立各路由器上接口Serial2/1/0:0的帧中继地址映射。
本举例是在R8128版本上进行配置和验证的。
· 当帧中继接口类型是DCE或NNI时,需要为接口(不论是主接口还是子接口)手动创建虚电路。
· 当帧中继接口类型是DTE时,如果接口是主接口,则系统会根据对端设备自动确定虚电路,也可以手工配置虚电路;如果是子接口,则必须手动为接口指定虚电路。
· 如果要在DTE侧手工配置虚电路,则配置的虚电路号必须与相连的DCE侧保持一致。
# 配置接口Serial2/1/0:0的IP地址。
<DeviceA> system-view
[DeviceA] interface Serial 2/1/0:0
[DeviceA-Serial2/1/0:0] ip address 202.38.163.251 255.255.255.0
# 封装接口Serial2/1/0:0的链路层协议为帧中继。
[DeviceA-Serial2/1/0:0] link-protocol fr
# 配置帧中继接口类型为DTE(缺省为该类型)。
[DeviceA-Serial2/1/0:0] fr interface-type dte
# 配置动态建立帧中继地址映射,即允许接口Serial2/1/0:0上的所有虚电路上都进行逆向地址解析(缺省帧中继InARP功能处于使能状态)。
[DeviceA-Serial2/1/0:0] fr inarp ip
# 配置接口Serial2/1/0:0的IP地址。
<DeviceB> system-view
[DeviceB] interface Serial 2/1/0:0
[DeviceB-Serial2/1/0:0] ip address 202.38.163.252 255.255.255.0
# 封装接口Serial2/1/0:0的链路层协议为帧中继。
[DeviceB-Serial2/1/0:0] link-protocol fr
# 配置帧中继接口类型为DTE(缺省为该类型)。
[DeviceB-Serial2/1/0:0] fr interface-type dte
# 配置动态建立帧中继地址映射,即允许接口Serial2/1/0:0上的所有虚电路上都进行逆向地址解析(缺省帧中继InARP功能处于使能状态)。
[DeviceB-Serial2/1/0:0] fr inarp ip
# 配置接口Serial2/1/0:0的IP地址。
<DeviceC> system-view
[DeviceC] interface Serial 2/1/0:0
[DeviceC-Serial2/1/0:0] ip address 202.38.163.253 255.255.255.0
# 封装接口Serial2/1/0:0的链路层协议为帧中继。
[DeviceC-Serial2/1/0:0] link-protocol fr
# 配置帧中继接口类型为DTE(缺省为该类型)。
[DeviceC-Serial2/1/0:0] fr interface-type dte
# 配置动态建立帧中继地址映射,即允许接口Serial2/1/0:0上的所有虚电路上都进行逆向地址解析(缺省帧中继InARP功能处于使能状态)。
[DeviceC-Serial2/1/0:0] fr inarp ip
(1) 查看各帧中继接口的信息。
# 在Device A上查看帧中继InARP报文统计信息。
<DeviceA> display fr inarp
Frame relay InARP statistics for interface Serial2/1/0:0 (DTE)
Recvd InARP request Sent InARP reply Sent InARP request Recvd InARP reply
0 0 0 0
# 在Device B上查看帧中继InARP报文统计信息。
<DeviceB> display fr inarp
Frame relay InARP statistics for interface Serial2/1/0:0 (DTE)
Recvd InARP request Sent InARP reply Sent InARP request Recvd InARP reply
0 0 0 0
# 在Device C上查看帧中继InARP报文统计信息。
<DeviceC> display fr inarp
Frame relay InARP statistics for interface Serial2/1/0:0 (DTE)
Recvd InARP request Sent InARP reply Sent InARP request Recvd InARP reply
0 0 0 0
(2) Device A可以分别与Device B、Device C互相Ping通。
# 在Device A上Ping Device B对端接口的IP地址。
<DeviceA> ping 202.38.163.252
PING 202.38.163.252: 56 data bytes, press CTRL_C to break
Reply from 202.38.163.252: bytes=56 Sequence=1 ttl=252 time=8 ms
Reply from 202.38.163.252: bytes=56 Sequence=2 ttl=252 time=7 ms
Reply from 202.38.163.252: bytes=56 Sequence=3 ttl=252 time=7 ms
Reply from 202.38.163.252: bytes=56 Sequence=4 ttl=252 time=6 ms
Reply from 202.38.163.252: bytes=56 Sequence=5 ttl=252 time=7 ms
--- 202.38.163.252 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 6/7/8 ms
# 在Device B上Ping Device A对端接口的IP地址。
<DeviceB> ping 202.38.163.251
PING 202.38.163.251: 56 data bytes, press CTRL_C to break
Reply from 202.38.163.251: bytes=56 Sequence=1 ttl=252 time=8 ms
Reply from 202.38.163.251: bytes=56 Sequence=2 ttl=252 time=7 ms
Reply from 202.38.163.251: bytes=56 Sequence=3 ttl=252 time=7 ms
Reply from 202.38.163.251: bytes=56 Sequence=4 ttl=252 time=6 ms
Reply from 202.38.163.251: bytes=56 Sequence=5 ttl=252 time=7 ms
--- 202.38.163.251 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 6/7/8 ms
# 在Device A上Ping Device C对端接口的IP地址。
<DeviceA> ping 202.38.163.253
PING 202.38.163.253: 56 data bytes, press CTRL_C to break
Reply from 202.38.163.253: bytes=56 Sequence=1 ttl=252 time=7 ms
Reply from 202.38.163.253: bytes=56 Sequence=2 ttl=252 time=7 ms
Reply from 202.38.163.253: bytes=56 Sequence=3 ttl=252 time=8 ms
Reply from 202.38.163.253: bytes=56 Sequence=4 ttl=252 time=7 ms
Reply from 202.38.163.253: bytes=56 Sequence=5 ttl=255 time=6 ms
--- 202.38.163.253 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 6/7/8 ms
# 在Device C上Ping Device A对端接口的IP地址。
<DeviceA> ping 202.38.163.251
PING 202.38.163.251: 56 data bytes, press CTRL_C to break
Reply from 202.38.163.251: bytes=56 Sequence=1 ttl=252 time=7 ms
Reply from 202.38.163.251: bytes=56 Sequence=2 ttl=252 time=7 ms
Reply from 202.38.163.251: bytes=56 Sequence=3 ttl=252 time=8 ms
Reply from 202.38.163.251: bytes=56 Sequence=4 ttl=252 time=7 ms
Reply from 202.38.163.251: bytes=56 Sequence=5 ttl=255 time=6 ms
--- 202.38.163.251 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 6/7/8 ms
· Device A:
#
interface Serial2/1/0:0
link-protocol fr
fr interface-type dte
fr inarp ip
ip address 202.38.163.251 255.255.255.0
#
· Device B:
#
interface Serial2/1/0:0
link-protocol fr
fr interface-type dte
fr inarp ip
ip address 202.38.163.252 255.255.255.0
#
· Device C:
#
interface Serial2/1/0:0
link-protocol fr
fr interface-type dte
fr inarp ip
ip address 202.38.163.253 255.255.255.0
#
· H3C SR6600 SR6600-X 路由器 二层技术-广域网接入配置指导-R7607
· H3C SR6600 SR6600-X 路由器 二层技术-广域网接入命令参考-R7607
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!