实验大纲
[5.测试连通性(R1 PING R2 & R2 PING R1)](#5.测试连通性(R1 PING R2 & R2 PING R1))
1.构建网络拓扑结构图
注意:给路由器添加WIC-1T模块
![](https://file.jishuzhan.net/article/1753402366712877057/114c4c2e117a8ba9b52d63f3fc9ab383.webp)
2.修改路由器名字
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#
3.查看路由器的串行控制信息
R1#show controllers serial 0/0/0
4.配置R1和R2串行接口
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface serial 0/0/0 #指定串行接口
R1(config-if)#desc WAN Link to R2 #添加接口描述
R1(config-if)#ip add 192.168.1.1 255.255.255.0 #配置ip地址
R1(config-if)#clock rate 500000 #DCE端配置时钟频率
R1(config-if)#no shutdown
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface serial 0/0/0
R2(config-if)#desc WAN Link to R1
R2(config-if)#ip add 192.168.1.2 255.255.255.0
R2(config-if)#no shutdown
5.测试连通性(R1 PING R2 & R2 PING R1)
![](https://file.jishuzhan.net/article/1753402366712877057/4a8fc971a306d06d3c3d9b189ee3962a.webp)
![](https://file.jishuzhan.net/article/1753402366712877057/bc6138aedde0855081700bd5eb0cb1b4.webp)
6.配置路由器以太网口
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface f0/0
R1(config-if)#desc LAN Link to R1
R1(config-if)#ip add 10.0.0.1 255.0.0.0
R1(config-if)#no shutdown
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#inter
R2(config)#interface f0/0
R2(config-if)#desc LAN Link to R1
R2(config-if)#ip add 10.0.0.1 255.0.0.0
R2(config-if)#no shutdown
7.配置主机信息
![](https://file.jishuzhan.net/article/1753402366712877057/24bff01013024626e6178492c513b4eb.webp)
![](https://file.jishuzhan.net/article/1753402366712877057/fee432623bc8bce2179d7d400a69bbe8.webp)
8.测试路由器连通性
ping 192.168.1.2
ping 10.255.255.254
![](https://file.jishuzhan.net/article/1753402366712877057/1385c486ce83649171261800a1fc86dd.webp)
ping 192.168.1.1
ping 172.16.255.254
![](https://file.jishuzhan.net/article/1753402366712877057/68f5ef1bd9b3655e3eff93ec963dfb81.webp)
9.查看路由信息
R1#show ip route
此时只有直连路由,缺少到网络172.16.0.0/16的路由
R2#show ip route
缺少到网络10.0.0.0/8的路由
10.在R1配置静态路由
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 172.16.0.0 255.255.0.0 192.168.1.2
R1(config)#
11.查看R1路由信息
show ip route
![](https://file.jishuzhan.net/article/1753402366712877057/1f6f372f4511033fede264170e552418.webp)
12.在R2配置静态路由
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#ip route 10.0.0.0 255.0.0.0 192.168.1.1
R2(config)#
13.查看R2路由信息
show ip route
![](https://file.jishuzhan.net/article/1753402366712877057/f50b0fdcde97125947e1a31bcecf722f.webp)
14.测试连通性
ping 10.255.255.254
![](https://file.jishuzhan.net/article/1753402366712877057/ed1c54d54ad383a5ac3b8f6378bc0ee8.webp)
ping 172.16.255.254
![](https://file.jishuzhan.net/article/1753402366712877057/28f9e18b0a3ba83176a3896768ea2757.webp)