zoukankan      html  css  js  c++  java
  • 个人实验记录之EIGRP基本配置

    一、EIGRP的基本配置
    1(1)、进入接口配置IP
    R1(config)#inter s1/0
    R1(config-if)#ip address 200.1.1.1 255.255.255.0
    R1(config-if)#no shut
    1(2)、配置环回地址
    R1(config)#inter lo 1
    R1(config-if)#ip add 1.1.1.1 255.255.255.0

    2(1)、路由器2同理配置
    R2(config)#inter s1/0
    R2(config-if)#ip address 200.1.1.2 255.255.255.0
    R2(config-if)#no shut

    2(2)
    R2(config)#inter lo 1
    R2(config-if)#ip add 2.2.2.2 255.255.255.0

    1(1)配置EIGRP和宣告
    R1(config)#router eigrp 100
    R1(config-router)#network 200.1.1.0
    R1(config-router)#network 1.1.1.0
    1(2)关闭自动汇总
    R1(config)#router eigrp 100
    R1(config-router)#no auto-summary
    1(3)手工汇总
    R1(config)#inter s1/0
    R1(config-if)#ip summary-address eigrp 100 192.168.10.0 255.255.0.0
    2(1)
    R2(config)#router eigrp 100
    R2(config-router)#network 200.1.1.0
    R2(config-router)#network 2.2.2.0
    R2(config-router)#network 200.1.1.0 ?
      A.B.C.D  EIGRP wild card bits
      <cr>
    R2(config-router)#network 200.1.1.0 0.0.0.255
    R2(config-router)#network 2.2.2.0 0.0.0.255 
    二、查看EIGRP运行情况
        一、R1#show ip eigrp neighbors(查看邻居表的信息)
        二、R1#show ip route eigrp(查看特定的协议信息)
        三、R1#show ip route (查看路由表中所有的路由)
        四、R1#show ip protocols(查看eigrp的一些信息,比如k值)
        五、R1#show ip eigrp interfaces
        六、R1#show ip eigrp topology
        七、R1#show ip eigrp traffic

    三、关闭自动汇总,实现手工汇总
    1(1)关闭自动汇总
    R1(config)#router eigrp 100
    R1(config-router)#no auto-summary
    1(2)手工汇总
    R1(config)#inter s1/0
    R1(config-if)#ip summary-address eigrp 100 192.168.10.0 255.255.0.0

    2(1)
    R2(config)#router eigrp 100
    R2(config-router)#no auto-summary


    四、掌握EIGRP的认证
    第一步、配置认证
        注意两台路由器的密码需要保持一致
    R1(config)#key chain ccna
    R1(config-keychain)#key 1
    R1(config-keychain-key)#key-string cisco
    R1(config-keychain-key)#exit

    R2(config)#key chain ccna
    R2(config-keychain)#key 1     //定义钥匙
    R2(config-keychain-key)#key-string cisco
    R2(config-keychain-key)#exit

    第二步、在接口上启用认证
    1、
    R1(config)#inter s1/0
    R1(config-if)#ip authentication mode eigrp 100 ?
      md5  Keyed message digest

    R1(config-if)#ip authentication mode eigrp 100 md5

    2、
    R1(config)#inter s1/0                          
    R1(config-if)#ip authentication key-chain eigrp 100 ?
      WORD  name of key-chain

    R1(config-if)#ip authentication key-chain eigrp 100 ccna

    查看
    R1#show ip eigrp neighbors
    IP-EIGRP neighbors for process 100   //因为R2没有启用认证,所以邻居关系当掉

    现将R2开启认证
    1、
    R2(config)#inter s1/0
    R2(config-if)#ip authentication mode eigrp 100 ?
      md5  Keyed message digest

    R2(config-if)#ip authentication mode eigrp 100 md5

    2、
    R2(config-if)#ip authentication key-chain eigrp 100 ccna

    再次查看
    R2(config-if)#do show ip eigrp neighbors
    IP-EIGRP neighbors for process 100
    H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                                (sec)         (ms)       Cnt Num
    0   200.1.1.1               Se1/0             11 00:01:13 1395  5000  0  19

  • 相关阅读:
    【剑指Offer-分解让复杂问题简单化】面试题38:字符串的排列
    【剑指Offer-分解让复杂问题简单化】面试题37:序列化二叉树
    【剑指Offer-分解让复杂问题简单化】面试题35:复杂链表的复制
    【剑指Offer-举例让抽象问题具体化】面试题34:二叉树中和为某一值的路径
    Git操作时遇到的一些问题和相应的处理方式
    Git分支规范说明
    敏捷的原则和价值观
    MongoDB批量更新和批量插入的方式
    请求地址中含有特殊字符#时如何有效处理
    IntelliJ IDEA Ultimate 6.2 版本免费试用期过期后如何破解
  • 原文地址:https://www.cnblogs.com/ywj2013/p/3299300.html
Copyright © 2011-2022 走看看