- 论坛徽章:
- 0
|
一。EIGRP基本配置,拓朴如下:
![]()
二。配置命令:
R1(config-router)#?
Router configuration commands:
address-family Enter Address Family command mode
auto-summary Enable automatic network number summarization
default Set a command to its defaults
default-information Control distribution of default information
default-metric Set metric of redistributed routes
distance Define an administrative distance
distribute-list Filter networks in routing updates
eigrp EIGRP specific commands
exit Exit from routing protocol configuration mode
help Description of the interactive help system
maximum-paths Forward packets over multiple paths
metric Modify EIGRP routing metrics and parameters
neighbor Specify a neighbor router
network Enable routing on an IP network
no Negate a command or set its defaults
offset-list Add or subtract offset from RIP metrics
passive-interface Suppress routing updates on an interface
redistribute Redistribute information from another routing protocol
timers Adjust routing timers
traffic-share How to compute traffic share over alternate paths
variance Control load balancing variance
以上是所有EIGRP路由模式下的配置命令
三。EIGRP配置与参数分析
(1)在R2的启用rotuer EIGRP 10,而在R1上不启用EIGRP,会有怎么样的结果,能收到OSPF邻居吗?
R2#sh ip ei nei
IP-EIGRP neighbors for process 10 由此可以看出,我们并没有看到邻居,但大家注意到没有,R1 PING R2是通的
R1#ping 12.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/88/196 ms
这是因为,我们PING命令是用采用的单播发送,而EIGRP Hello 包发送是采用的224.0.0.10.所以EIGRP 邻居的建立与我PING无关。
(2)EIGRP邻居建立的过程
R2#clea ip ei 10 neighbors
*Apr 12 19:36:27.215: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 12.1.1.1 (Serial1/0) is up: new adjacency
*Apr 12 19:36:27.223: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0
*Apr 12 19:36:29.227: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0
*Apr 12 19:36:29.947: IP-EIGRP(Default-IP-Routing-Table:10): Processing incoming UPDATE packet
*Apr 12 19:36:32.231: IP-EIGRP(Default-IP-Routing-Table:10): 12.1.1.0/24 - do advertise out Serial1/0
(3)在R2查看show ip eigrp neighbor
R2#sh ip ei nei
IP-EIGRP neighbors for process 10
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
1 23.1.1.3 Se1/1 11 00:00:26 104 624 0 8
0 12.1.1.1 Se1/0 14 00:00:28 101 606 0 9
现在这里只有二个邻居,而我们在R2上启用的lookback 0 2.2.2.2 为什么没有在邻居表中的呢?这时我们可想想,EIGRP 邻居建立的过程,当我R2环回口发出去了hello包,但我在环回口上并没有收到邻居的hello包,所以在R2的邻居表中,并不会存在2.2.2.0的邻居。
(4)在看R2的拓朴表
R2#sh ip eigrp topology
IP-EIGRP Topology Table for AS(10)/ID(12.1.1.2)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
r - reply Status, s - sia Status
P 1.0.0.0/8, 1 successors, FD is 2297856
via 12.1.1.1 (2297856/128256), Serial1/0
P 2.0.0.0/8, 1 successors, FD is 128256
via Summary (128256/0), Null0
P 2.2.2.0/24, 1 successors, FD is 128256
via Connected, Loopback0
P 3.0.0.0/8, 1 successors, FD is 2297856
via 23.1.1.3 (2297856/128256), Serial1/1
P 12.0.0.0/8, 1 successors, FD is 2169856
via Summary (2169856/0), Null0
P 12.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial1/0
P 23.0.0.0/8, 1 successors, FD is 2169856
via Summary (2169856/0), Null0
P 23.1.1.0/24, 1 successors, FD is 2169856
via Connected, Serial1/1
(5)R2的路由表
R2#sh ip route
Gateway of last resort is n
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/35811/showart_276671.html |
|