美文网首页
动态路由的配置

动态路由的配置

作者: andytimes | 来源:发表于2017-12-24 14:39 被阅读0次

安徽工业经济职业技术学院 - 31715 - 8#619


实验材料:三台路由器,两台电脑,交叉线
实验目的:通过操作实现全网互通

实验拓扑图

一、实验步骤:

  1. ip地址的设置与路由的配置
R1:
R1 (config)#int f0/0
R1(config-if)#ip address 10.0.0.254 255.0.0.0
R1(config-if)#no shutdown 
R1(config-if)#exit 
R1(config)#int f0/1
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shut
R1(config-if)#no shutdown
R2:
R2(config)#int f0/0
R2(config-if)#ip address 20.0.0.2 255.0.0.0
R2(config-if)#no shutdown 
R2(config-if)#exit
R2(config)#int f0/1
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown
R3:
R3(config)#int f0/0
R3(config-if)#ip address 30.0.0.2 255.0.0.0
R3(config-if)#no shutdown 
R3(config-if)#exit
R3(config)#int f0/0
R3config-if)#ip address 40.0.0.254 255.0.0.0
R3(config-if)#no shutdown
  1. 实现路由之间互通
R1:
R1(config)#router rip
R1(config-router)#network 10.0.0.0
R1(config-router)#network 20.0.0.0
R1(config-router)#exit
R2:
R2(config)#router rip
R2(config-router)#network 20.0.0.0
R2(config-router)#network 30.0.0.0
R2(config-router)#exit
R3:
R3(config)#router rip
R3(config-router)#network 30.0.0.0
R3(config-router)#network 40.0.0.0
R3(config-router)#exit

二、实验结果

PC>ping 40.0.0.1
Pinging 40.0.0.1 with 32 bytes of data:
Request timed out.
Reply from 40.0.0.1: bytes=32 time=11ms TTL=125
Reply from 40.0.0.1: bytes=32 time=14ms TTL=125
Reply from 40.0.0.1: bytes=32 time=13ms TTL=125
Ping statistics for 40.0.0.1:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 11ms, Maximum = 14ms, Average = 12ms

三、实验总结

动态路由配置时想要实现全网互通,直接对路由器的两端进行设置,即可实现。

相关文章

  • vue路由的介绍(二)--vue动态路由和get的传值

    vue动态路由和get的传值---->同属于路由的传参 1,vue动态路由: 动态路由的配置: ①,在配置路由时加...

  • vue-router配置笔记

    路由的配置 二、动态路由传参1.配置动态路由 2.在对应的页面 三、get传值

  • D-26操作系统基础网络章节

    一、掌握路由配置信息: 1.动态路由配置: 相互学习,完善自己路由表的过程 动态路由协议: RIP EIGRP O...

  • 9-1 动态路由配置及banner布局 9-2

    9-1 动态路由配置及banner布局 动态路由配置 布局 9-2 公用图片画廊组件拆分 布局 Swiper组件配置

  • vue动态路由传值和get传值

    1、动态路由传值2、get传值 不同路由传值:动态路由 1、配置动态路由,main.js 2、在列表页NewsLi...

  • Vue Router | 备忘录

    来个目录: history 配置路由过程 $router || $route 动态路由 /:userId 路由懒加...

  • 17、Vue 配置动态路由

    方式一(动态路由法): 步骤:1、配置动态路由(main.js)const routes=[{path:'/hom...

  • Vue路由

    配置路由文件 index.js 路由文件注入到main.js文件中 组件中配置路由跳转 嵌套路由 动态路由匹配 一...

  • vue 路由

    动态路由 使用动态路由配置的(如:‘:id’),可以在this.$router.params.id获得。 官网例子...

  • HCNA学习笔记(六) 路由协议基础

    路由信息产生 三种方式:设备自动发现,手工配置,通过动态路由协议生成设备自动发现的路由信息——直连路由;手工配置的...

网友评论

      本文标题:动态路由的配置

      本文链接:https://www.haomeiwen.com/subject/bfkhgxtx.html