串行线路和静态路由配置

实验大纲

1.构建网络拓扑结构图

2.修改路由器名字

3.查看路由器的串行控制信息

4.配置R1和R2串行接口

[5.测试连通性(R1 PING R2 & R2 PING R1)](#5.测试连通性(R1 PING R2 & R2 PING R1))

6.配置路由器以太网口

7.配置主机信息

8.测试路由器连通性

9.查看路由信息

10.在R1配置静态路由

11.查看R1路由信息

12.在R2配置静态路由

13.查看R2路由信息

14.测试连通性

1.构建网络拓扑结构图

注意:给路由器添加WIC-1T模块

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)

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.配置主机信息

8.测试路由器连通性

复制代码
ping 192.168.1.2
ping 10.255.255.254
复制代码
ping 192.168.1.1
ping 172.16.255.254

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

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

14.测试连通性

复制代码
ping 10.255.255.254
复制代码
ping 172.16.255.254
相关推荐
树码小子37 分钟前
TCP核心机制:确认应答
网络·网络协议·tcp/ip
步步为营DotNet3 小时前
深深度探索.NET 中HttpClient的复用策略:提升性能与稳定性的关键度解析.NET 中IServiceCollection:构建可扩展服务体系的关键
java·网络·.net
草根站起来3 小时前
ip的ssl证书
网络·tcp/ip·ssl
ipooipoo11883 小时前
详解动态住宅 IP 代理:核心定义、优势及典型应用场景(跨境 / 爬虫必备)
网络·爬虫·网络协议·tcp/ip
ENZTNO14 小时前
迈向安全未来:零信任模型落地中的三大技术挑战与应对
网络·安全·web安全
heartbeat..5 小时前
JavaWeb 入门 - HttpServletResponse 响应对象 详解
java·网络·http·web·response
阿巴~阿巴~5 小时前
TCP可靠传输的底层密码:序号、窗口与六大标志位全解析
运维·服务器·网络·tcp·序列号·六大标志位·确认序号
航Hang*6 小时前
第五章:综合布线技术 —— 管理间(电信间)设计与施工
网络·笔记·学习·设计·光纤
梁辰兴6 小时前
计算机网络基础:地址解析协议 ARP
网络·计算机网络·计算机·arp·计算机网络基础·地址解析协议·梁辰兴
会员源码网6 小时前
手工代付系统开发 | 专业代付支付系统定制 | 源码交付支持二次开发
网络·源代码管理