1、学习目标
掌握在存在Frame Relay交换机的情况下,配置FR路由器接口的方法
掌握在Hub-and-spoke模式下,RIP的配置方法
掌握在Hub-and-spoke模式下,OSPF的配置方法
掌握OSPF在配置成Point-to-multipoint模式下的FR接口的配置方法
2、拓扑图和场景说明
场景:公司的总部有一台路由器R1,R2和R3分别是其他两个分部的路路由器。现在需要将总部和分部进行互联。广域网链路上使用帧中继方式进行网络互联,Hub-and-spoke模式。
3、基本配置与IP编址
3.1 配置地址等信息
在配置帧中继封装时,需要关闭Inarp功能,手动定义PVC的DLCI号码与IP地址的映射关系
R1 路由器配置
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]interface Serial4/0/0
[R1-Serial4/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jul 9 2024 14:34:31-08:00 R1 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[R1-Serial4/0/0]ip address 10.0.123.1 24
[R1-Serial4/0/0]undo fr inarp
[R1-Serial4/0/0]fr map ip 10.0.123.2 102 broadcast
[R1-Serial4/0/0]fr map ip 10.0.123.3 103 broadcast
[R1-Serial4/0/0]
[R1-Serial4/0/0]quit
[R1]interface LoopBack0
[R1-LoopBack0]ip address 10.0.1.1 24
[R1-LoopBack0]
R2 路由器配置
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]interface Serial 4/0/0
[R2-Serial4/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jul 9 2024 14:39:26-08:00 R2 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[R2-Serial4/0/0]ip address 10.0.123.2 24
[R2-Serial4/0/0]undo fr inarp
[R2-Serial4/0/0]fr map ip 10.0.123.1 201 broadcast
[R2-Serial4/0/0]quit
[R2]interface LoopBack0
[R2-LoopBack0]ip address 10.0.2.2 24
[R2-LoopBack0]
R3 路由器配置
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R3
[R3]interface Serial4/0/0
[R3-Serial4/0/0]link-protocol fr
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
Jul 9 2024 14:41:32-08:00 R3 %%01IFNET/4/CHANGE_ENCAP(l)[0]:The user performed
the configuration that will change the encapsulation protocol of the link and th
en selected Y.
[R3-Serial4/0/0]
[R3-Serial4/0/0]ip address 10.0.123.3 24
[R3-Serial4/0/0]undo fr inarp
[R3-Serial4/0/0]fr map ip 10.0.123.1 301 broadcast
[R3-Serial4/0/0]quit
[R3]interface LoopBack0
[R3-LoopBack0]ip address 10.0.3.3 24
[R3-LoopBack0]
3.2、测试网络的连通性
PING 10.0.123.2: 56 data bytes, press CTRL_C to break
Reply from 10.0.123.2: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 10.0.123.2: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.0.123.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.0.123.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.0.123.2: bytes=56 Sequence=5 ttl=255 time=30 ms
--- 10.0.123.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/24/30 ms
PING 10.0.123.3: 56 data bytes, press CTRL_C to break
Reply from 10.0.123.3: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 10.0.123.3: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 10.0.123.3: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.0.123.3: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.0.123.3: bytes=56 Sequence=5 ttl=255 time=10 ms
--- 10.0.123.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/18/20 ms
3.3、查看R1接口帧中继封装信息
[R1]display fr interface Serial 4/0/0
Serial4/0/0, DTE, physical up, protocol up
[R1]display fr map-info interface Serial 4/0/0
Map Statistics for interface Serial4/0/0 (DTE)
DLCI = 102, IP 10.0.123.2, Serial4/0/0
create time = 2024/07/09 14:34:59, status = ACTIVE
encapsulation = ietf, vlink = 1, broadcast
DLCI = 103, IP 10.0.123.3, Serial4/0/0
create time = 2024/07/09 14:35:12, status = ACTIVE
encapsulation = ietf, vlink = 2, broadcast
[R1]
4、帧中继交换机配置
5、配置R1、R2和R3之间运行RIPv2
5.1、配置RIP协议,使用Version 2,所有网段都在RIP区域。
默认配置,不定义静态邻居。另外需要关闭自动汇总。同时需要注意的是,由于帧中继网络的特殊性,默认情况下,帧中继接口RIP的水平分割功能被关闭。实验中,不对水平分割进行修改。
[R1]rip 1
[R1-rip-1]version 2
[R1-rip-1]network 10.0.0.0
[R1-rip-1]undo summary
[R1-rip-1]
[R2]rip 1
[R2-rip-1]version 2
[R2-rip-1]network 10.