zoukankan      html  css  js  c++  java
  • 简易路由重分布配置

    拓扑图如下:

    首先配置好各主机IP地址PC1:192.168.1.1 PC2:192.168.2.1 PC3:192.168.3.1

    设置IP

     R1配置

      

      en          

      conf  t       

      hostname R1      

      no ip domain-lookup  

      int s1/2  

      ip addr 192.168.14.2 255.255.255.0

      no shutdown

      int s1/1

      ip addr 192.168.12.2 255.255.255.0

      no shut 

      int s1/0 192.168.13.2 255.255.255.0

      no shut

    R2配置

     en          

      conf  t       

      hostname R2      

      no ip domain-lookup  

      int s1/0  

      ip addr 192.168.25.2 255.255.255.0

      no shutdown

      int s1/1

      ip addr 192.168.12.1 255.255.255.0

      clock rate 64000

      no shut 

      int s1/0 192.168.23.1 255.255.255.0

      clock rate 64000

      no shut

    R3配置

      

      en          

      conf  t       

      hostname R3      

      no ip domain-lookup  

      int s1/2  

      ip addr 192.168.23.2 255.255.255.0

      no shutdown

      int s1/0

      ip addr 192.168.13.1 255.255.255.0

      clock rate 64000

      no shut 

      int s1/1 192.168.36.2 255.255.255.0

      no shut

    R4配置

      

      en          

      conf  t       

      hostname R4      

      no ip domain-lookup  

      int f0/0

      ip addr 192.168.1.2 255.255.255.0

      no shut

      int s1/2

      ip addr 192.168.14.1 255.255.255.0

      clock rate 64000 

      no shut 

    R5配置

      

      en          

      conf  t       

      hostname R5      

      no ip domain-lookup  

      int f0/0

      ip addr 192.168.2.2 255.255.255.0

      no shut

      int s1/0

      ip addr 192.168.25.1 255.255.255.0

      clock rate 64000 

      no shut 

      

    R6配置

      en          

      conf  t       

      hostname R6      

      no ip domain-lookup  

      int f0/0

      ip addr 192.168.3.2 255.255.255.0

      no shut

      int s1/1

      ip addr 192.168.36.1 255.255.255.0

      clock rate 64000 

      no shut 

    路由配置

      R1

      en

      conf t

      router rip

      version 2

      network 192.168.12.0 

      network 192.168.13.0

      redistribute connected subnets

      redistribute static subnet

      exit

      ip route 192.168.1.0 255.255.255.0 192.168.14.1

      R2配置

      en

      conf t

      router rip

      version 2

      network 192.168.12.0 

      network 192.168.23.0

      redistribute connected subnets

      redistribute static subnet

      exit

      ip route 192.168.2.0 255.255.255.0 192.168.25.1

      R3配置

       en

      conf t

      router rip

      version 2

      network 192.168.23.0

      network 192.168.13.0

      redistribute connected subnets

      redistribute static subnet

      exit  

      ip route 192.168.3.0 255.255.255.0 192.168.36.1

      R4配置

      en

      conf t

      ip route 0.0.0.0 0.0.0.0 192.168.14.2

      R5配置

      en

      conf t

       ip route 0.0.0.0. 0.0.0.0 192.168.25.2

      R6配置

      en

      conf t

      ip route 0.0.0.0 0.0.0.0 192.168.36.2

  • 相关阅读:
    使用youtube-dl下载B站视频
    【北邮人论坛帖子备份】14 考公与考研、入党、秋招
    观《菊次郎的夏天》有感
    git远端分支改名并以当前分支为base新建分支
    依赖明明存在pom.xml却报Dependency 'groupId:artifactId:version' not found的错
    在服务器上搭建git服务
    【北邮人论坛帖子备份】【秋招】21届渣硕BAT后端研发上岸心得
    【北邮人论坛帖子备份】【心得】做科研写论文的一些小经验
    【北邮人论坛帖子备份】 图森同学 | Gala:一个北邮非典型学霸的成长之路
    Python-for循环
  • 原文地址:https://www.cnblogs.com/LilacStrawberry/p/9224325.html
Copyright © 2011-2022 走看看