- 积分
- 240
- 鸿鹄币
- 个
- 好评度
- 点
- 精华
- 注册时间
- 2014-5-30
- 最后登录
- 1970-1-1
- 阅读权限
- 30
- 听众
- 收听
初级工程师
|
命名EIGRP
1.基本配置
R1(config)#interface loopback 0
R1(config-if)#ip address 172.16.0.1 255.255.255.0
R1(config-if)#interface loopback 1
R1(config-if)#ip address 172.16.1.1 255.255.255.0
R1(config-if)#interface loopback 2
R1(config-if)#ip address 172.16.2.1 255.255.255.0
R1(config-if)#interface loopback 3
R1(config-if)#ip address 172.16.3.1 255.255.255.0
R1(config)#interface ethernet 0/0
R1(config-if)#ip address 12.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R2(config)#interface loopback 0
R2(config-if)#ip address 10.1.0.1 255.255.255.0
R2(config-if)#interface loopback 1
R2(config-if)#ip address 10.1.1.1 255.255.255.0
R2(config-if)#interface loopback 2
R2(config-if)#ip address 10.1.2.1 255.255.255.0
R2(config-if)#interface loopback 3
R2(config-if)#ip address 10.1.3.1 255.255.255.0
R2(config)#interface ethernet 0/0
R2(config-if)#ip address 12.1.1.2 255.255.255.0
R2(config-if)#no shutdown
2.配置命名EIGRP
R1(config)#router eigrp TOGOGO
R1(config-router)#address-family ipv4 autonomous-system 90
R1(config-router-af)#network 12.1.1.1 0.0.0.0
R1(config-router-af)#network 172.16.0.1 0.0.0.0
R1(config-router-af)#network 172.16.1.1 0.0.0.0
R1(config-router-af)#network 172.16.2.1 0.0.0.0
R1(config-router-af)#network 172.16.3.1 0.0.0.0
R2(config)#router eigrp TOGOGO
R2(config-router)#address-family ipv4 autonomous-system 90
R2(config-router-af)#network 12.1.1.2 0.0.0.0
R2(config-router-af)#network 10.1.0.1 0.0.0.0
R2(config-router-af)#network 10.1.1.1 0.0.0.0
R2(config-router-af)#network 10.1.2.1 0.0.0.0
R2(config-router-af)#network 10.1.3.1 0.0.0.0
3.验证命令
R1#show ip eigrp neighbors
EIGRP-IPv4 VR(TOGOGO) Address-Family Neighbors for AS(90)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 12.1.1.2 Et0/0 10 00:27:25 10 100 0 20
R2#show ip eigrp neighbors
EIGRP-IPv4 VR(TOGOGO) Address-Family Neighbors for AS(90)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 12.1.1.1 Et0/0 10 00:26:59 9 100 0 19
4.配置EIGRP MD5认证
R1(config)#router eigrp TOGOGO
R1(config-router)#address-family ipv4 autonomous-system 90
R1(config-router-af)#af-interface ethernet 0/0
R1(config-router-af-interface)#authentication mode md5
R1(config-router-af-interface)#authentication key-chain TOGOGO
R1(config)#key chain TOGOGO
R1(config-keychain)#key 1
R1(config-keychain-key)#key-string cisco
R2(config)#router eigrp TOGOGO
R2(config-router)#address-family ipv4 autonomous-system 90
R2(config-router-af)#af-interface ethernet 0/0
R2(config-router-af-interface)#authentication mode md5
R2(config-router-af-interface)#authentication key-chain TOGOGO
R2(config)#key chain TOGOGO
R2(config-keychain)#key 1
R2(config-keychain-key)#key-string cisco
5.配置IEGRP汇总路由
R1(config)#router eigrp TOGOGO
R1(config-router)#address-family ipv4 autonomous-system 90
R1(config-router-af)#af-interface ethernet 0/0
R1(config-router-af-interface)#summary-address 172.16.0.0 255.255.252.0
R2(config)#router eigrp TOGOGO
R2(config-router)#address-family ipv4 autonomous-system 90
R2(config-router-af)#af-interface ethernet 0/0
R2(config-router-af-interface)#summary-address 10.1.0.0 255.255.252.0
6.配置被动接口
R1(config)#router eigrp TOGOGO
R1(config-router)#address-family ipv4 autonomous-system 90
R1(config-router-af)#af-interface loopback 0
R1(config-router-af-interface)#passive-interface
R1(config-router-af-interface)#af-interface loopback 1
R1(config-router-af-interface)#passive-interface
R1(config-router-af-interface)#af-interface loopback 2
R1(config-router-af-interface)#passive-interface
R1(config-router-af-interface)#af-interface loopback 3
R1(config-router-af-interface)#passive-interface
R2(config)#router eigrp TOGOGO
R2(config-router)#address-family ipv4 autonomous-system 90
R2(config-router-af)#af-interface loopback 0
R2(config-router-af-interface)#passive-interface
R2(config-router-af-interface)#af-interface loopback 1
R2(config-router-af-interface)#passive-interface
R2(config-router-af-interface)#af-interface loopback 2
R2(config-router-af-interface)#passive-interface
R2(config-router-af-interface)#af-interface loopback 3
R2(config-router-af-interface)#passive-interface
7.验证配置
R1#show ip route eigrp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
10.0.0.0/22 is subnetted, 1 subnets
D 10.1.0.0 [90/1024640] via 12.1.1.2, 00:08:06, Ethernet0/0
172.16.0.0/16 is variably subnetted, 9 subnets, 3 masks
D 172.16.0.0/22 is a summary, 00:45:10, Null0
R2#show ip route eigrp
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 9 subnets, 3 masks
D 10.1.0.0/22 is a summary, 00:15:09, Null0
172.16.0.0/22 is subnetted, 1 subnets
D 172.16.0.0 [90/1024640] via 12.1.1.1, 00:08:46, Ethernet0/0
R1#show ip protocols
*** IP Routing is NSF aware ***
Routing Protocol is "eigrp 90"
Outgoing update filter list for all interfaces is not set
Incoming update filter list for all interfaces is not set
Default networks flagged in outgoing updates
Default networks accepted from incoming updates
EIGRP-IPv4 VR(TOGOGO) Address-Family Protocol for AS(90)
Metric weight K1=1, K2=0, K3=1, K4=0, K5=0 K6=0
Metric rib-scale 128
Metric version 64bit
NSF-aware route hold timer is 240
Router-ID: 12.1.1.1
Topology : 0 (base)
Active Timer: 3 min
Distance: internal 90 external 170
Maximum path: 4
Maximum hopcount 100
Maximum metric variance 1
Total Prefix Count: 7
Total Redist Count: 0
Automatic Summarization: disabled
Address Summarization:
172.16.0.0/22 for Et0/0
Summarizing 4 components with metric 163840
Maximum path: 4
Routing for Networks:
12.1.1.1/32
172.16.0.1/32
172.16.1.1/32
172.16.2.1/32
172.16.3.1/32
Passive Interface(s):
Loopback0
Loopback1
Loopback2
Loopback3
Routing Information Sources:
Gateway Distance Last Update
12.1.1.2 90 00:13:10
Distance: internal 90 external 170
|
|