且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

EIGRP配置、分析、包——力求详解(1)

更新时间:2022-09-21 23:38:50

相关链接:

EIGRP配置、分析、包——力求详解(1):http://425093014.blog.51cto.com/5109559/1060124

EIGRP配置、分析、包——力求详解(2):http://425093014.blog.51cto.com/5109559/1061059

 

友情提示:友情提示:如果图片太小看不清楚,可以点击图片查看原图,或者下载本次实验资料。

如果你需要,可以到  http://down.51cto.com/data/602810  这里去下载本次实验的项目、代码、配置保存文件,使用GNS3模拟。

拓扑图

 

 

EIGRP配置、分析、包——力求详解(1)

 

 

配置代码:

R1:

en
conf t

int f1/0
ip add 172.16.1.1 255.255.255.0
no shut
int s0/0
ip add 172.16.3.1 255.255.255.252
no shut
int s0/1
ip add 192.168.10.5 255.255.255.252
no shut

router eigrp 1
net 172.16.0.0
net 192.168.10.4 0.0.0.3

 

 


R2:

en
conf t
int f1/0
ip add 172.16.2.1 255.255.255.0
no shut
int s0/0
ip add 172.16.3.2 255.255.255.252
no shut
int s0/1
ip add 192.168.10.9 255.255.255.252
no shut
int loop1
ip add 10.1.1.1 255.255.255.252


router eigrp 1
net 172.16.0.0
net 192.168.10.8 0.0.0.3
net 10.1.1.0


R3:

en
conf t
int f1/0
ip add 192.168.1.1 255.255.255.0
no shut
int s0/1
ip add 192.168.10.10 255.255.255.252
no shut
int s0/0
ip add 192.168.10.6 255.255.255.252
no shut

 

 

router eigrp 1
net 192.168.10.8 0.0.0.3
net 192.168.10.4 0.0.0.3
net 192.168.1.0

 

边界路由会进行自动汇总。

R1路由表

Gateway of last resort is not set

     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
D       192.168.10.0/24 is a summary, 00:06:32, Null0
C       192.168.10.4/30 is directly connected, Serial0/1
D       192.168.10.8/30 [90/2681856] via 192.168.10.6, 00:06:32, Serial0/1
     172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
D       172.16.0.0/16 is a summary, 00:06:32, Null0
C       172.16.1.0/24 is directly connected, FastEthernet1/0
D       172.16.2.0/24 [90/2172416] via 172.16.3.2, 00:06:35, Serial0/0
C       172.16.3.0/30 is directly connected, Serial0/0
D    10.0.0.0/8 [90/2297856] via 172.16.3.2, 00:06:34, Serial0/0
D    192.168.1.0/24 [90/2172416] via 192.168.10.6, 00:06:34, Serial0/1

R2路由表

Gateway of last resort is not set

     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
D       192.168.10.0/24 is a summary, 00:02:18, Null0
D       192.168.10.4/30 [90/2681856] via 192.168.10.10, 00:02:38, Serial0/1
C       192.168.10.8/30 is directly connected, Serial0/1
     172.16.0.0/16 is variably subnetted, 4 subnets, 3 masks
D       172.16.0.0/16 is a summary, 00:02:38, Null0
D       172.16.1.0/24 [90/2172416] via 172.16.3.1, 00:02:21, Serial0/0
C       172.16.2.0/24 is directly connected, FastEthernet1/0
C       172.16.3.0/30 is directly connected, Serial0/0
     10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C       10.1.1.0/30 is directly connected, Loopback1
D       10.0.0.0/8 is a summary, 00:02:39, Null0
D    192.168.1.0/24 [90/2172416] via 192.168.10.10, 00:02:20, Serial0/1

R3路由表

Gateway of last resort is not set

     192.168.10.0/24 is variably subnetted, 3 subnets, 2 masks
D       192.168.10.0/24 is a summary, 00:06:06, Null0
C       192.168.10.4/30 is directly connected, Serial0/1
C       192.168.10.8/30 is directly connected, Serial0/0
D    172.16.0.0/16 [90/2172416] via 192.168.10.9, 00:05:35, Serial0/0
                   [90/2172416] via 192.168.10.5, 00:05:35, Serial0/1
D    10.0.0.0/8 [90/2297856] via 192.168.10.9, 00:05:35, Serial0/0
C    192.168.1.0/24 is directly connected, FastEthernet1/0

 

连通性测试

R3#ping 10.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/34/48 ms

【搞定】

【路由跟踪:】

R3#tra  
R3#traceroute 172.16.3.1

Type escape sequence to abort.
Tracing the route to 172.16.3.1

  1 192.168.10.9 48 msec
    192.168.10.5 24 msec
    192.168.10.9 12 msec
R3#traceroute 172.16.3.2

Type escape sequence to abort.
Tracing the route to 172.16.3.2

  1 192.168.10.5 44 msec
    192.168.10.9 44 msec
    192.168.10.5 0 msec
 
可以看出,进行了负载均衡!

 

 Hello包的探索

 Hello包用于发现邻居和与发现的邻居建立邻居关系。使用组播方式,使用不可靠传输。unreliable delivery. 

图1:

EIGRP配置、分析、包——力求详解(1)

图2 :

EIGRP配置、分析、包——力求详解(1)

图3: 

EIGRP配置、分析、包——力求详解(1)

 

Update 包探索

必要时发送更新,可组播,可单播,使用reliable delivery。

更新、查询、应答都使用RTP,ACK始终是不可靠方式。

图4:   

  EIGRP配置、分析、包——力求详解(1)

图5:EIGRP配置、分析、包——力求详解(1)

 

 如果你需要,可以到  http://down.51cto.com/data/602810  这里去下载本次实验的项目、代码、配置保存文件,使用GNS3模拟。




本文转自 天涯飞客 51CTO博客,原文链接:http://blog.51cto.com/425093014/1060124,如需转载请自行联系原作者