标签:eigrp配置 配置eigrp 动态路由协议eigrp
上一篇我们介绍了《EIGRP概述》,本篇我们开始介绍EIGRP的基础配置。
1.拓扑
拓扑有4个路由器,3种拓扑类型:P2P、BMA(广播多路访问)和NBMA(非广播多路访问)
2.配置环境
GNS3
3.基础配置
3.1配置好各路由器的环回口和直连接口IP地址
(略)
3.2.NBMA网络环境的配置
3.2.1.帧中继交换机的配置:
配置帧中继为动态的RARP表,帧中继交换机在收到DLCI为104的1号接口的数据时发送给DLCI为401的11接口;同理DLCI为401的数据发送给DLCI为104的1号接口。
3.2.2.帧中继接口封装配置:
R1#sh running-config interface s0/1
Building configuration...
Current configuration : 117 bytes
!
interface Serial0/1
ip address 14.14.14.1 255.255.255.248
encapsulation frame-relay
serial restart-delay 0
end
R1#show frame-relay map
Serial0/1 (up): ip 14.14.14.4 dlci 104(0x68,0x1880), dynamic,
broadcast,, status defined, active
R4#show running-config interface s0/1
Building configuration...
Current configuration : 117 bytes
!
interface Serial0/1
ip address 14.14.14.4 255.255.255.248
encapsulation frame-relay
serial restart-delay 0
end
R4#show frame-relay map
Serial0/1 (up): ip 14.14.14.1 dlci 401(0x191,0x6410), dynamic,
broadcast,, status defined, active
R4#ping 14.14.14.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 14.14.14.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/21/28 ms
4.配置EIGRP路由协议
4.1.R1的配置
R1(config)#router eigrp 1 //启用EIGRP进程并加入相应为1的AS(自制系统),所有路由器的AS号必须相同,如果不同邻居将无法建立。
R1(config-router)#eigrp router-id 1.1.1.1 //配置路由ID,起标示作用,标示路由条目由谁带进来的,可有可无,不影响后续配置,不像OSPF,在OSPF中如果没有配置路由ID(路由器将用最大接口IP作为路由ID)可能导致虚链路出问题。
R1(config-router)#network 12.12.12.0 0.0.0.7 //网络明细宣告法,反掩码精确匹配到29位。
R1(config-router)#network 13.13.13.13 //主类网络宣告法,如果不加反掩码,将默认用主类掩码(0.0.0.255)宣告。
我们可以验证一下:
R1#show running-config | section route
router eigrp 1
network 12.12.12.0 0.0.0.7
network 13.0.0.0
auto-summary
eigrp router-id 1.1.1.1
R1(config-router)#network 14.14.14.1 0.0.0.0 //接口明细IP宣告法,只宣告本接口。
R1(config-router)#network 1.1.0.0 0.0.255.255 //超网网络宣告法,凡是接口的IP地址范围在1.1.0.0网段的都会参与EIGRP的宣告。
确认已经接口宣告:
R1#show running-config | section router
router eigrp 1
network 1.1.0.0 0.0.255.255
network 12.12.12.0 0.0.0.7
network 13.0.0.0
network 14.14.14.1 0.0.0.0
auto-summary
eigrp router-id 1.1.1.1
查看哪些接口参与EIGRP的宣告:
R1#show ip eigrp interfaces
IP-EIGRP interfaces for process 1
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Se0/2 1 0/0 51 0/15 255 0
Se0/1 0 0/0 0 0/1 0 0
Lo1 0 0/0 0 0/1 0 0
Se0/3 0 0/0 0 0/1 0 0
4.2.R2的配置
R2(config)#router eigrp 2 // 故意把AS号配置成和R1不一样,看看能否和R1成为邻接关系!
R2(config-router)#network 12.12.12.12
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#eigrp router-id 2.2.2.2
确认接口已经宣告:
R2#show ip eigrp interfaces
IP-EIGRP interfaces for process 2
Xmit Queue Mean Pacing Time Multicast Pending
Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Lo2 0 0/0 0 0/1 0 0
Se0/1 0 0/0 0 0/1 0 0
检查邻居关系:
R2#show ip eigrp neighbors
IP-EIGRP neighbors for process 2
R2# //以上表明R2不能和R1形成邻居关系。
下面把AS好改成和R1一样:
R2(config)#router eigrp 1
R2(config-router)#eigrp router-id 2.2.2.2
R2(config-router)#network 2.2.2.2 0.0.0.0
R2(config-router)#network 12.12.12.2 0.0.0.0
R2(config-router)#
*Mar 1 03:09:04.215: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 12.12.12.1 (Serial0/1) is up: new adjacency //AS改成和R1一样后邻居关系就起来了。
R2#show ip eigrp 1 neighbors
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 12.12.12.1 Se0/1 11 00:02:23 45 405 0 12
4.3.R3的配置
R3(config)#router eigrp 1
R3(config-router)#eigrp router-id 3.3.3.3
R3(config-router)#network 0.0.0.0 255.255.255.255 //全接口宣告法,可以用省略写法:0.0.0.0。等同于0.0.0.0 255.255.255.255。
R3#show ip eig
R3#show ip eigrp nei
IP-EIGRP neighbors for process 1
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 13.13.13.1 Se0/1 13 00:06:18 62 372 0 19
4.4.R4的配置
R4(config)#router eigrp 1
R4(config-router)#eigrp router-id 4.4.4.4
R4(config-router)#network 4.4.4.4 0.0.0.255
R4(config-router)#net 14.14.14.0 0.0.0.7
*Mar 1 02:14:38.467: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 1: Neighbor 14.14.14.1 (Serial0/1) is up: new adjacency
本文出自 “E网情深” 博客,请务必保留此出处http://jettcai.blog.51cto.com/1447637/1659461
标签:eigrp配置 配置eigrp 动态路由协议eigrp
原文地址:http://jettcai.blog.51cto.com/1447637/1659461