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

  • 相关阅读:
    linux源码方式安装Apache
    linux的chmod,chown命令详解
    2011年10月18日
    mysql检查查询及索引效率方法(explain)
    php中英文字符串的研究
    2011年10月20日
    PHP JSON中文乱码解决方法大全
    解决PHP下载文件名中文乱码
    php字符串学习笔记
    CSU_BMW正式组队纪念赛出题+部分解题报告
  • 原文地址:https://www.cnblogs.com/LilacStrawberry/p/9224325.html
Copyright © 2011-2022 走看看