
EIGRP基本配置
R1(config)#router eigrp ?
<1-65535> Autonomous System
WORD EIGRP Virtual-Instance
Autonomous System:AS号
EIGRP Virtual-Instance:命名的EIGRP实例
宣告网段
R1(config)#router eigrp 90
R1(config-router)#network ?
A.B.C.D Network number
R1(config-router)#network 12.1.1.1 ?
A.B.C.D EIGRP wild card bits
<cr>
EIGRP wild card bits:通配符掩码(反掩码)-> 表示一个范围
通告网段给其他邻居并在该范围内激活EIGRP
举例
R1(config-router)#network 12.1.1.1 0.0.0.0
!-- 仅激活12.1.1.1/32,同时通告其所处的网段12.1.1.0/30
Passive interface
基本配置
R4(config)#router eigrp 90
R4(config-router)#passive-interface default
*Mar 17 21:21:09.471: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 34.1.1.3 (Ethernet0/0) is down: interface passive
*Mar 17 21:21:09.473: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 24.1.1.2 (Serial1/1) is down: interface passive
passive-interface default :将所有接口都Passive
将非Passive接口移除
R4(config-router)#no passive-interface ethernet 0/0
*Mar 17 21:21:33.733: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 34.1.1.3 (Ethernet0/0) is up: new adjacency
R4(config-router)#no passive-interface s1/1
*Mar 17 21:21:43.929: %DUAL-5-NBRCHANGE: EIGRP-IPv4 90: Neighbor 24.1.1.2 (Serial1/1) is up: new adjacency
验证
R4#show ip protocols
Routing for Networks:
24.1.1.4/32
24.1.2.0/24
34.1.1.4/32
44.1.1.0/24
Passive Interface(s):
Loopback0
Loopback1
Routing Information Sources:
Gateway Distance Last Update
24.1.1.2 90 00:00:18
34.1.1.3 90 00:00:18
Distance: internal 90 external 170
网友评论