之前写过EIGRP的学习笔记,现在把其中做的实验进行归纳整理,加深理解。
疑惑点:
AS号--EIGRP的hello包在建邻居的时候必须要两端有相同的AS号,这个其实是在配置时候的router eigrp <n>,这个n既是AS号的概念也是进程号的概念(类比于OSPF,但是OSPF的进程号本地有效)。另外hello包的发送目的地址是组播地址224.0.0.10
汇总路由的时候管理距离,默认5--为了防止路由环路。如果将从外部发来的跟我们汇总的路由一样的路由,AD=5可以保证它可以不被替代,可以放进路由表,因为除了静态路由,和直边的,5几乎是最小的AD了。这是为了确保本路由器能将汇总地址放进路由表的路由决策,所以只是本地有效,不需要传递出去。
这样EIGRP的管理距离就有三个:
内部路由:90
外部路由:170
汇总路由:5
#基本实验lab EIGRP1#
实验拓扑:
配置:
R1-
interface Loopback0
ip address 1.1.1.1 255.255.255.0
!
interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 13.1.1.1 255.255.255.0
duplex auto
speed auto
!
router eigrp 90
network 1.1.1.0 0.0.0.255
network 12.1.1.0 0.0.0.255
network 13.1.1.0 0.0.0.255
no auto-summary
!
R2-
interface Loopback0
ip address 2.2.2.2 255.255.255.0
!
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router eigrp 90
network 2.2.2.0 0.0.0.255
network 12.1.1.0 0.0.0.255
no auto-summary
!
R3-
interface Loopback0
ip address 3.3.3.3 255.255.255.0
!
interface FastEthernet0/0
ip address 13.1.1.3 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
router eigrp 90
network 3.3.3.0 0.0.0.255
network 13.1.1.0 0.0.0.255
no auto-summary
!
实验结果:
R1#show ip eigrp neighbors
IP-EIGRP neighbors for process 90
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 13.1.1.3 Fa0/1 14 00:01:24 49 294 0 5