1:配置地址(略),并配置EIGRP多个AS
R1(config)#routereigrp 100
R1(config-router)#noauto-summary
R1(config-router)#net192.168.12.0
R1(config-router)#net10.0.0.0
R2(config)#routereigrp 100
R2(config-router)#noauto-summary
R2(config-router)#net192.168.12.0
R2(config)#routereigrp 200
R2(config-router)#noauto-summary
R2(config-router)#net192.168.23.0
R3(config)#routereigrp 200
R3(config-router)#noauto-summary
R3(config-router)#net192.168.23.0
R3(config-router)#net192.168.0.0
R3(config-router)#net192.168.1.0
R2#show ip eigrp neighbors
IP-EIGRPneighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.12.1 Fa0/0 10 00:00:50 123 738 0 101
IP-EIGRPneighbors for process 200
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.2 Se1/1 14 00:00:18 191 1146 0 5
以上显示说明:在一台路由器上可以启用多个EIGRP进程(最多允许启动30个)。
R1#show ip ro ei
R2#show ip ro ei
10.0.0.0/24 is subnetted, 2 subnets
D 10.1.1.0 [90/156160] via 192.168.12.1, 00:01:40,FastEthernet0/0
D 10.1.0.0 [90/156160] via 192.168.12.1,00:01:40, FastEthernet0/0
D 192.168.0.0/24 [90/2297856] via192.168.23.2, 00:01:01, Serial1/1
D 192.168.1.0/24 [90/2297856] via192.168.23.2, 00:00:58, Serial1/1
R3#show ip ro ei
以上显示说明:不同AS的EIGRP不能直接通信。
解决不同EIGRP AS间通信的方法:路由重分发
R2(config)#routereigrp 100
R2(config-router)#redistributeeigrp 200
R2(config-router)#routereigrp 200
R2(config-router)#redistributeeigrp 100
R1#show ip ro ei
D EX 192.168.23.0/24[170/2172416] via 192.168.12.2, 00:01:11, FastEthernet0/0
D EX 192.168.0.0/24 [170/2300416]via 192.168.12.2, 00:01:11, FastEthernet0/0
D EX 192.168.1.0/24 [170/2300416]via 192.168.12.2, 00:01:11, FastEthernet0/0
R3#show ip ro ei
192.168.12.0/30 is subnetted, 1 subnets
D EX 192.168.12.0 [170/2172416] via192.168.23.1, 00:01:10, Serial1/0
10.0.0.0/24 is subnetted, 2 subnets
D EX 10.1.1.0 [170/2300416] via 192.168.23.1,00:01:10, Serial1/0
D EX 10.1.0.0 [170/2300416] via 192.168.23.1,00:01:10, Serial1/0
2:把接口宣告到多个AS进程中
R2(config)#routereigrp 300
R2(config-router)#noauto-summary
R2(config-router)#net192.168.23.0
R3(config)#routereigrp 300
R3(config-router)#noauto-summary
R3(config-router)#net192.168.23.0
R3(config-router)#net192.168.1.0
R3#show ip protocols
RoutingProtocol is "eigrp 200"
Outgoing update filter list for allinterfaces is not set
Incoming update filter list for allinterfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incomingupdates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0,K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 200
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is not ineffect
Maximum path: 4
Routing for Networks:
192.168.0.0
192.168.1.0
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
192.168.23.1 90 00:08:53
Distance: internal 90 external 170
RoutingProtocol is "eigrp 300"
Outgoing update filter list for allinterfaces is not set
Incoming update filter list for allinterfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incomingupdates
EIGRP metric weight K1=1, K2=0, K3=1, K4=0,K5=0
EIGRP maximum hopcount 100
EIGRP maximum metric variance 1
Redistributing: eigrp 300
EIGRP NSF-aware route hold timer is 240s
Automatic network summarization is not ineffect
Maximum path: 4
Routing for Networks:
192.168.1.0
192.168.23.0
Routing Information Sources:
Gateway Distance Last Update
Distance: internal 90 external 170
R3#show ip eigrp neighbors
IP-EIGRPneighbors for process 200
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.1 Se1/0 13 00:13:34 172 1032 0 6
IP-EIGRPneighbors for process 300
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.23.1 Se1/0 13 00:05:08 143 858 0 3
R2#show ip ro ei
10.0.0.0/24 is subnetted, 2 subnets
D 10.1.1.0 [90/156160] via 192.168.12.1,00:14:20, FastEthernet0/0
D 10.1.0.0 [90/156160] via 192.168.12.1,00:14:20, FastEthernet0/0
D 192.168.0.0/24 [90/2297856] via192.168.23.2, 00:13:41, Serial1/1
D 192.168.1.0/24 [90/2297856] via192.168.23.2, 00:13:38, Serial1/1
R2#show ip route 192.168.1.0255.255.255.0
Routingentry for 192.168.1.0/24
Known via "eigrp 200", distance 90,metric 2297856, type internal
Redistributing via eigrp 100, eigrp 200
Advertised by eigrp 100
Last update from 192.168.23.2 on Serial1/1,00:14:17 ago
Routing Descriptor Blocks:
* 192.168.23.2, from 192.168.23.2, 00:14:17ago, via Serial1/1
Route metric is 2297856, traffic sharecount is 1
Total delay is 25000 microseconds,minimum bandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500bytes
Loading 1/255, Hops 1
R2#show ip ro ei
10.0.0.0/24 is subnetted, 2 subnets
D 10.1.1.0 [90/156160] via 192.168.12.1,00:15:07, FastEthernet0/0
D 10.1.0.0 [90/156160] via 192.168.12.1,00:15:07, FastEthernet0/0
D 192.168.0.0/24 [90/2297856] via192.168.23.2, 00:14:28, Serial1/1
D 192.168.1.0/24 [90/2297856] via 192.168.23.2,00:00:07, Serial1/1
R2#show ip ro192.168.1.0
Routingentry for 192.168.1.0/24
Known via "eigrp 300", distance 90,metric 2297856, type internal
Redistributing via eigrp 300
Last update from 192.168.23.2 on Serial1/1,00:01:43 ago
Routing Descriptor Blocks:
* 192.168.23.2, from 192.168.23.2, 00:01:43ago, via Serial1/1
Route metric is 2297856, traffic sharecount is 1
Total delay is 25000 microseconds, minimumbandwidth is 1544 Kbit
Reliability 255/255, minimum MTU 1500bytes
Loading 1/255, Hops 1
以上显示说明:EIGRP可以同时在多个AS中建立邻居关系,路由条目使用第一次AS系统更新的条目。