串行线路和静态路由配置

实验大纲

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
相关推荐
小辰记事本6 小时前
从零读懂RoCEv2数据包构造:从WQE到线缆上的完整旅程
服务器·网络·网络协议·rdma
北京耐用通信7 小时前
全域适配工业场景耐达讯自动化Modbus TCP 转 PROFIBUS 网关轻松实现以太网与现场总线互通
网络·人工智能·网络协议·自动化·信息与通信
在角落发呆7 小时前
Linux转发配置:解锁网络互联的核心密码
linux·运维·网络
YMWM_10 小时前
UDP协议详解:从原理到Python实践
网络·网络协议·udp
pengyi87101510 小时前
共享 IP 与独享 IP 怎么选?被封后升级方案避坑
网络·网络协议·tcp/ip
YuanDaima204810 小时前
Linux 进阶运维与 AI 环境实战:进程管理、网络排错与 GPU 监控
linux·运维·服务器·网络·人工智能
凯勒姆12 小时前
网工网络设备原理及配置
网络·智能路由器
上海云盾-小余12 小时前
网站恶意爬虫拦截策略:智能识别与封禁实操方案
网络·爬虫·安全·web安全
xhbh66612 小时前
网关端口映射和路由器端口转发有什么区别?配置要点全解析
运维·服务器·网络·智能路由器·端口映射·映射·无痕网关
半壶清水13 小时前
用P4 Tutorial、BMv2 和 Mininet‌解析网络第一集------模拟环境搭建
运维·服务器·网络·网络协议·tcp/ip