串行线路和静态路由配置

实验大纲

1.构建网络拓扑结构图

2.修改路由器名字

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

4.配置R1和R2串行接口

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

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-02 10:16:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-02 10:16:04       100 阅读
  3. 在Django里面运行非项目文件

    2024-02-02 10:16:04       82 阅读
  4. Python语言-面向对象

    2024-02-02 10:16:04       91 阅读

热门阅读

  1. k8s学习-Secret 与Configmap

    2024-02-02 10:16:04       58 阅读
  2. 使用GPT实现一个简单的网站

    2024-02-02 10:16:04       51 阅读
  3. 基于STM32的花卉大棚环境监测系统设计

    2024-02-02 10:16:04       60 阅读
  4. 【BBF系列协议】TR369管理平台软件设计

    2024-02-02 10:16:04       61 阅读
  5. windows开发技术 mfc浅谈

    2024-02-02 10:16:04       59 阅读
  6. juc并发线程学习笔记(一)

    2024-02-02 10:16:04       44 阅读
  7. ArrayList的扩容机制详解,解决面试难题!

    2024-02-02 10:16:04       54 阅读
  8. android与React Native之间传递参数

    2024-02-02 10:16:04       52 阅读
  9. 从0开始写android

    2024-02-02 10:16:04       57 阅读
  10. 【Ubuntu】安装hbase

    2024-02-02 10:16:04       57 阅读