欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Cisco EIGRP(三)

程序员文章站 2024-02-13 17:13:52
...

????Alex
乾坤未定你我皆是黑马!

基本配置

R1(config)#router eigrp 1        创建一个基于自治系统的EIGRP进程
R1(config-router)#network 1.1.1.1 0.0.0.0    通告网络信息
R1(config-router)#network 12.1.1.1 0.0.0.0

R2(config)#router eigrp 1
R2(config-router)#net
R2(config-router)#network 12.1.1.2 0.0.0.0
*Aug 15 11:42:06.074: %DUAL-5-NBRCHANGE: EIGRP-IPv4 1: Neighbor 12.1.1.1 (Ethernet0/0) is up: new adjacency2
R1(config-router)#network 12.1.1.0 0.0.0.255        将该匹配范围内的网络信息进
行收集,放入EIGRP的协议数据库(Topology base)同时也将从该接口发送EIGRP的hello报
文,AS号携带其中;该信息不仅仅包含路由的前缀,还包含一些其他的参数;network即在接口
上使能EIGRP功能;

查看EIGRP配置

R1#show running-config | section router eigrp
router eigrp 1
 network 1.1.1.1 0.0.0.0
 network 12.1.1.1 0.0.0.0
 network 13.1.1.1 0.0.0.0
 network 15.1.1.1 0.0.0.0
R1#

查看EIGRP邻居

R1#show ip eigrp neighbors 
EIGRP-IPv4 Neighbors for AS(1)
H   Address                 Interface              Hold Uptime   SRTT   RTO  Q  Seq
                                                   (sec)         (ms)       Cnt Num
1   13.1.1.3                Et0/1                    14 00:08:08    5   100  0  12
0   12.1.1.2                Et0/0                    11 00:09:14    5   100  0  11
R1#

查看EIGRP数据库

R1#show ip eigrp topology 
EIGRP-IPv4 Topology Table for AS(1)/ID(1.1.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - reply Status, s - sia Status 

P 24.1.1.0/24, 1 successors, FD is 307200
        via 12.1.1.2 (307200/281600), Ethernet0/0
P 15.1.1.0/24, 1 successors, FD is 281600
        via Connected, Ethernet0/2
P 4.4.4.4/32, 2 successors, FD is 435200
        via 12.1.1.2 (435200/409600), Ethernet0/0
        via 13.1.1.3 (435200/409600), Ethernet0/1
P 13.1.1.0/24, 1 successors, FD is 281600
        via Connected, Ethernet0/1
P 2.2.2.2/32, 1 successors, FD is 409600
        via 12.1.1.2 (409600/128256), Ethernet0/0
P 34.1.1.0/24, 1 successors, FD is 307200
        via 13.1.1.3 (307200/281600), Ethernet0/1
P 12.1.1.0/24, 1 successors, FD is 281600
        via Connected, Ethernet0/0
P 3.3.3.3/32, 1 successors, FD is 409600
        via 13.1.1.3 (409600/128256), Ethernet0/1
P 1.1.1.1/32, 1 successors, FD is 128256
        via Connected, Loopback0
          
R1#

查看EIGRP数据库详细的路由信息

R1#show ip eigrp topology 13.1.1.0/24
EIGRP-IPv4 Topology Entry for AS(1)/ID(1.1.1.1) for 13.1.1.0/24
  State is Passive, Query origin flag is 1, 1 Successor(s), FD is 281600
  Descriptor Blocks:
  0.0.0.0 (Ethernet0/1), from Connected, Send flag is 0x0
      Composite metric is (281600/0), route is Internal
      Vector metric:
        Minimum bandwidth is 10000 Kbit
        Total delay is 1000 microseconds
        Reliability is 255/255
        Load is 1/255
        Minimum MTU is 1500
        Hop count is 0
        Originating router is 1.1.1.1

读懂三张表

查看IP路由的工作状态

R1#show ip protocols 
*** IP Routing is NSF aware ***

Routing Protocol is "application"
  Sending updates every 0 seconds
  Invalid after 0 seconds, hold down 0, flushed after 0
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Maximum path: 32
  Routing for Networks:
  Routing Information Sources:
    Gateway         Distance      Last Update
  Distance: (default is 4)

Routing Protocol is "eigrp 1"
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Default networks flagged in outgoing updates
  Default networks accepted from incoming updates
  EIGRP-IPv4 Protocol for AS(1)
    Metric weight K1=1, K2=0, K3=1, K4=0, K5=0
    NSF-aware route hold timer is 240
    Router-ID: 1.1.1.1
    Topology : 0 (base) 
      Active Timer: 3 min
      Distance: internal 90 external 170
      Maximum path: 4
      Maximum hopcount 100
      Maximum metric variance 1

  Automatic Summarization: disabled
  Maximum path: 4
  Routing for Networks:
    1.1.1.1/32
    12.1.1.1/32
    13.1.1.1/32
    15.1.1.1/32
  Routing Information Sources:
    Gateway         Distance      Last Update
    13.1.1.3              90      00:09:30
    12.1.1.2              90      00:09:30
  Distance: internal 90 external 170
  
  R1#

查看EIGRP接口

R1#show ip eigrp interfaces 
EIGRP-IPv4 Interfaces for AS(1)
                              Xmit Queue   PeerQ        Mean   Pacing Time   Multicast    Pending
Interface              Peers  Un/Reliable  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Lo0                      0        0/0       0/0           0       0/0            0           0
Et0/0                    1        0/0       0/0           5       0/2           50           0
Et0/1                    1        0/0       0/0           5       0/2           50           0
Et0/2                    0        0/0       0/0           0       0/0            0           0
R1#

查看EIGRP邻居

R1#show ip eigrp neighbors 
EIGRP-IPv4 Neighbors for AS(1)
H   Address                 Interface              Hold Uptime   SRTT   RTO  Q  Seq
                                                   (sec)         (ms)       Cnt Num
1   13.1.1.3                Et0/1                    14 00:08:08    5   100  0  12
0   12.1.1.2                Et0/0                    11 00:09:14    5   100  0  11
R1#

SRTT------平滑往返时间
是在建立邻居过程期间,R1向R2发送数据,R2回复ack确认。一去一回、一去一回;R1发出
报文后启动定时器,计算收到报文多少时间;最后把所有的往返时间算出一个平均值,即平
滑往返时间

RTO------重传超时时间
最小100ms,用于检测EIGRP之间的可靠性,使用单播报文。重传16次;

Q cnt------队列计数器
执行单播重传时,每发一次就纪录一次,如果达到17。仍然没有收到邻居的确认,则在这
个接口上将邻居删除掉

IPV6的支持

R1(config)#interface ethernet 0/0
R1(config-if)#no shutdown 
R1(config-if)#ipv6 address 1212::1/64
R1(config-if)#exit
R1(config)#interface loopback 0
R1(config-if)#ipv6 address 1111::1/128
R1(config-if)#no shutdown

R2(config)#interface loopback 0
R2(config-if)#ipv6 address 2222::2/128
R2(config-if)#no shutdown 
R2(config)#interface ethernet 0/0
R2(config-if)#ipv6 address 1212::2/64
R2(config-if)#no shutdown 

测试连通性

R1#ping ipv6 1212::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1313::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/4/18 ms

开启ipv6路由

R1(config)#ipv6 unicast-routing 

R2(config)#ipv6 unicast-routing 

创建EIGRP进程

R1(config)#ipv6 router eigrp 1
R1(config-rtr)#exit

R2(config)#ipv6 router eigrp 1 
R2(config-rtr)#exit

将接口通告进EIGRP

R1(config)#interface ethernet 0/0
R1(config-if)#ipv6 eigrp 1 

R2(config)#interface ethernet 0/0
R2(config-if)#ipv6 eigrp 1 
相关标签: Cisco