EIGRP基本配置

来源:互联网 发布:snh 知乎 编辑:程序博客网 时间:2024/06/06 02:21

实验环境


实验步骤

Step1:配置IP

Step2:配置EIGRP

R1(config)#router eigrp 100    //启用eigrp

R1(config-router)#no auto-summary    //关闭自动汇总

R1(config-router)#network 12.1.1.00.0.0.255    //network 目标网段反子网掩码

R1(config-router)#network 1.1.1.1 0.0.0.0

R2(config)#router eigrp 100

R2(config-router)#no auto-summary

R2(config-router)#network 12.1.1.00.0.0.255

R2(config-router)#network 23.1.1.00.0.0.255

R2(config-router)#network 2.2.2.2 0.0.0.0

R3(config)#router eigrp 100

R3(config-router)#no auto-summary

R3(config-router)#network 23.1.1.00.0.0.255

R3(config-router)#network 34.1.1.00.0.0.255

R3(config-router)#network 3.3.3.3 0.0.0.0

R4(config)#router eigrp 100

R4(config-router)#no auto-summary

R4(config-router)#network 34.1.1.00.0.0.255

R4(config-router)#network 4.4.4.4 0.0.0.0

Step3:检查全网连通性

Step4:查看路由表

R3#show ip rou

Codes: C - connected, S - static, I - IGRP,R - RIP, M - mobile, B - BGP

      D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

      N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

      E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

      i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

      * - candidate default, U - per-user static route, o - ODR

      P - periodic downloaded static route

 

Gateway of last resort is not set

 

    1.0.0.0/32 is subnetted, 1 subnets

D      1.1.1.1 [90/158720] via 23.1.1.2, 00:00:22, FastEthernet0/0

    2.0.0.0/32 is subnetted, 1 subnets

D      2.2.2.2 [90/156160] via 23.1.1.2, 00:00:22, FastEthernet0/0

    3.0.0.0/32 is subnetted, 1 subnets

C      3.3.3.3 is directly connected, Loopback1

    4.0.0.0/32 is subnetted, 1 subnets

D      4.4.4.4 [90/156160] via 34.1.1.4, 00:00:22, FastEthernet0/1

    12.0.0.0/24 is subnetted, 1 subnets

D      12.1.1.0 [90/30720] via 23.1.1.2, 00:00:22, FastEthernet0/0

    23.0.0.0/24 is subnetted, 1 subnets

C      23.1.1.0 is directly connected, FastEthernet0/0

    34.0.0.0/24 is subnetted, 1 subnets

C      34.1.1.0 is directly connected, FastEthernet0/1

“D”表示用EIGRP 学到的路由条目,管理距离为90。

Step5:查看路由协议

R3#show ip protocols

 

Routing Protocol is "eigrp  100 "

//AS号为100

 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

EIGRPmetric weight K1=1, K2=0, K3=1, K4=0, K5=0

// 显示计算度量值所用的 K值

EIGRPmaximum hopcount 100

//EIGRP 支持的最大跳数

EIGRPmaximum metric variance 1

// variance 值默认为 1,即默认时只支持等价路径的负载均衡

Redistributing: eigrp 100

Automaticnetwork summarization is not in effect

 //显示自动汇总已经关闭,默认自动汇总是开启的

 Maximum path: 4

 Routing for Networks: 

    23.1.1.0/24

    34.1.1.0/24

    3.3.3.3/32

 Routing Information Sources: 

   Gateway         Distance      Last Update

   23.1.1.2        90            0         

   34.1.1.4        90            10        

Distance:internal 90 external 170

//EIGRP 路由协议能够区分内部路由和外部路由。内部路由默认管理距离是90,外部路由默认管理距离是170。

Step6:查看EIGRP邻居

R3#show ip eigrp neighbors

IP-EIGRP neighbors for process 100

H  Address         Interface      Hold Uptime    SRTT  RTO   Q   Seq

                                   (sec)          (ms)        Cnt Num

0  23.1.1.2        Fa0/0          10  00:06:54  40     1000 0   9

1  34.1.1.4        Fa0/1          10  00:06:54  40     1000 0   11

以上输出各字段的含义如下:

① H: 表示与邻居建立会话的顺序;

② Address: 邻居路由器的接口地址;

③ Interface: 本地到邻居路由器的接口;

④ Hold: 认为邻居关系不存在所能等待的最大时间;

⑤ Uptime: 从邻居关系建立到目前的时间;

⑥ SRTT: 是向邻居路由器发送一个数据包以及本路由器收到确认包的时间;

⑦ RTO: 路由器在重新传输包之前等待ACK 的时间;

⑧ Q Cnt: 等待发送的队列;

⑨ Seq Num: 从邻居收到的发送数据包的序列号。

Step7:查看拓扑

R3#show ip eigrp topology

IP-EIGRP Topology Table for AS100/ID(3.3.3.3)

 

Codes: P - Passive, A - Active, U - Update,Q - Query, R - Reply,

      r - Reply status

 

P 1.1.1.1/32, 1 successors, FD is 158720

        via 23.1.1.2 (158720/156160), FastEthernet0/0

P 2.2.2.2/32, 1 successors, FD is 156160

        via 23.1.1.2 (156160/128256), FastEthernet0/0

P 3.3.3.3/32, 1 successors, FD is 128256

        via Connected, Loopback1

P 4.4.4.4/32, 1 successors, FD is 156160

        via 34.1.1.4 (156160/128256), FastEthernet0/1

P 12.1.1.0/24, 1 successors, FD is 30720

        via 23.1.1.2 (30720/28160), FastEthernet0/0

P 23.1.1.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/0

P 34.1.1.0/24, 1 successors, FD is 28160

        via Connected, FastEthernet0/1

可清楚看到每条路由条目FD和RD值

Step8:查看EIGRP接口

R3#show ip eigrp interfaces

IP-EIGRP interfaces for process 100

 

                        Xmit Queue   Mean  Pacing Time   Multicast    Pending

Interface        Peers Un/Reliable  SRTT   Un/Reliable  Flow Timer   Routes

Lo1                0        0/0     1236       0/10           0           0

Fa0/0              1        0/0     1236       0/10           0           0

Fa0/1              1        0/0     1236       0/10           0           0

输出各字段含义如下

① Interface:运行 EIGRP 协议的接口;

② Peers:该接口的邻居的个数;

③ Xmit Queue Un/Reliable:在不可靠/可靠队列中存留的数据包的数量;

④ Mean SRTT:平均的往返时间,单位是秒;

⑤ Pacing Time Un/Reliable:用来确定不可靠/可靠队列中数据包被送出接口的时间间隔;

⑥ Multicast Flow Timer:组播数据包被发送前最长的等待时间;

⑦ Pending Routes:在传送队列中等待被发送的数据包携带的路由条目。

Step9:查看EIGRP发送和接受数据包的情况

R3#show ip eigrp traffic

IP-EIGRP Traffic Statistics for process 100

 Hellos sent/received: 566/377

 Updates sent/received: 12/11

 Queries sent/received: 0/0

 Replies sent/received:  0/0

 Acks sent/received:  10/7

 Input queue high water mark 1, 0 drops

 SIA-Queries sent/received: 0/0

SIA-Repliessent/received: 0/0

Step10:debug eigrp neighbors

该命令可以动态查看 EIGRP 邻居关系的情况。在路由器 R1 先将f0/0 接口shutdown 掉,

然后再 no shutdown,可以看到EIGRP 邻居建立的过程。


0 0
原创粉丝点击