1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 【Cisco NP】EIGRP的基本配置

【Cisco NP】EIGRP的基本配置

时间:2019-03-22 06:32:28

相关推荐

【Cisco NP】EIGRP的基本配置

R1

端口配置IP地址

R1(config)#interface loopback 0

R1(config-if)#ip add 10.1.4.1 255.255.255.0

R1(config-if)#exit

R1(config)#interface loopback 1

R1(config-if)#ip add 10.1.5.1 255.255.255.0

R1(config-if)#exit

R1(config)#interface s1/0

R1(config-if)#encapsulation ppp

R1(config-if)#no peer neighbor-route

//关闭我们的串行接口会主动去获取对端的32位主机路由的选项,这里没有必要,为了减少路由表,看的更清晰一点

R1(config-if)#ip add 12.1.1.1 255.255.255.252

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#int s1/1

R1(config-if)#encapsulation ppp

R1(config-if)#no peer neighbor-route

R1(config-if)#ip add 13.1.1.1 255.255.255.0

R1(config-if)#no shutdown

R1(config-if)#exit

R1(config)#interface e0/0

R1(config-if)#ip address 15.1.1.1 255.255.255.0

R1(config-if)#no sh

R1(config-if)#exit

--------------------------------------------------------------

R1(config)#router eigrp ?

<1-65535> Autonomous System //基于自治系统

WORD EIGRP Virtual-Instance Name //基于命名的

配置EIGRP

R1(config)#router eigrp 90 //创建一个号码为90的EIGRP自治系统

R1(config-router)#network 12.1.1.0 0.0.0.3 //将本设备上的12.1.1.0/30范围内的接口配置的网络信息收集进EIGRP的拓扑表,并开始发送hello

R1(config-router)#network 13.1.1.1 0.0.0.0

R1(config-router)#network 15.1.1.1 0.0.0.0

R1(config-router)#network 10.1.0.0 0.0.255.255

--------------------------------------------------------------------------

EIGRP三张表

R1#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

1 13.1.1.3 Se1/1 12 01:00:41 11 100 0 29

0 12.1.1.2 Se1/0 10 01:05:39 24 144 0 46

R1#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(10.1.5.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 128256

via Connected, Loopback1

P 10.1.7.0/24, 1 successors, FD is 2297856

via 12.1.1.2 (2297856/128256), Serial1/0

P 24.1.1.0/29, 1 successors, FD is 2681856

via 12.1.1.2 (2681856/2169856), Serial1/0

via 13.1.1.3 (2707456/2195456), Serial1/1

P 15.1.1.0/24, 0 successors, FD is Infinity

via 12.1.1.2 (2784256/2272256), Serial1/0

via 13.1.1.3 (2246656/332800), Serial1/1

P 44.1.1.0/24, 1 successors, FD is 2323456

via 13.1.1.3 (2323456/409600), Serial1/1

via 12.1.1.2 (2809856/2297856), Serial1/0

P 56.1.1.0/24, 1 successors, FD is 2221056

via 13.1.1.3 (2221056/307200), Serial1/1

P 10.1.6.0/24, 1 successors, FD is 2297856

via 12.1.1.2 (2297856/128256), Serial1/0

P 13.1.1.0/24, 1 successors, FD is 2169856

via Connected, Serial1/1

P 10.1.4.0/24, 1 successors, FD is 128256

via Connected, Loopback0

P 36.1.1.0/24, 1 successors, FD is 2195456

via 13.1.1.3 (2195456/281600), Serial1/1

P 34.1.1.0/24, 1 successors, FD is 2195456

via 13.1.1.3 (2195456/281600), Serial1/1

P 12.1.1.0/30, 1 successors, FD is 2169856

via Connected, Serial1/0

R1#

R1#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks

D 10.1.6.0/24 [90/2297856] via 12.1.1.2, 01:01:12, Serial1/0

D 10.1.7.0/24 [90/2297856] via 12.1.1.2, 01:01:12, Serial1/0

24.0.0.0/29 is subnetted, 1 subnets

D 24.1.1.0 [90/2681856] via 12.1.1.2, 01:01:12, Serial1/0

34.0.0.0/24 is subnetted, 1 subnets

D 34.1.1.0 [90/2195456] via 13.1.1.3, 01:01:12, Serial1/1

36.0.0.0/24 is subnetted, 1 subnets

D 36.1.1.0 [90/2195456] via 13.1.1.3, 01:01:12, Serial1/1

44.0.0.0/24 is subnetted, 1 subnets

D 44.1.1.0 [90/2323456] via 13.1.1.3, 01:01:12, Serial1/1

56.0.0.0/24 is subnetted, 1 subnets

D 56.1.1.0 [90/2221056] via 13.1.1.3, 00:54:41, Serial1/1

R1#

===============================================================================================================

R2

端口配置IP地址

R2(config)#interface loopback 0

R2(config-if)#ip add 10.1.6.1 255.255.255.0

R2(config-if)#exit

R2(config)#interface loopback 1

R2(config-if)#ip add 10.1.7.1 255.255.255.0

R2(config-if)#int s1/0

R2(config-if)#encapsulation ppp

R2(config-if)#no peer neighbor-route

R2(config-if)#ip add 12.1.1.2 255.255.255.252

R2(config-if)#no sh

R2(config-if)#int s1/1

R2(config-if)#encapsulation ppp

R2(config-if)#no peer neighbor-route

R2(config-if)#ip add 24.1.1.2 255.255.255.248

R2(config-if)#no sh

-------------------------------------------------------------------------------------

配置EIGRP

R2

R2(config)#router eigrp 90

R2(config-router)#network 12.1.1.2 0.0.0.0

R2(config-router)#network 24.1.1.2 0.0.0.0

--------------------------------------------------------------------

EIGRP三张表

R2#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

1 12.1.1.1 Se1/0 11 01:05:39 23 138 0 26

0 24.1.1.4 Se1/1 11 01:23:23 18 108 0 60

R2#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(10.1.7.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 2297856

via 12.1.1.1 (2297856/128256), Serial1/0

P 10.1.7.0/24, 1 successors, FD is 128256

via Connected, Loopback1

P 24.1.1.0/29, 1 successors, FD is 2169856

via Connected, Serial1/1

P 15.1.1.0/24, 1 successors, FD is 2272256

via 24.1.1.4 (2272256/358400), Serial1/1

P 44.1.1.0/24, 1 successors, FD is 2297856

via 24.1.1.4 (2297856/128256), Serial1/1

P 56.1.1.0/24, 1 successors, FD is 2246656

via 24.1.1.4 (2246656/332800), Serial1/1

via 12.1.1.1 (2733056/2221056), Serial1/0

P 10.1.6.0/24, 1 successors, FD is 128256

via Connected, Loopback0

P 13.1.1.0/24, 1 successors, FD is 2681856

via 12.1.1.1 (2681856/2169856), Serial1/0

via 24.1.1.4 (2707456/2195456), Serial1/1

P 10.1.4.0/24, 1 successors, FD is 2297856

via 12.1.1.1 (2297856/128256), Serial1/0

P 36.1.1.0/24, 1 successors, FD is 2221056

via 24.1.1.4 (2221056/307200), Serial1/1

via 12.1.1.1 (2707456/2195456), Serial1/0

P 34.1.1.0/24, 1 successors, FD is 2195456

via 24.1.1.4 (2195456/281600), Serial1/1

P 12.1.1.0/30, 1 successors, FD is 2169856

via Connected, Serial1/0

R2#

R2#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/8 is variably subnetted, 6 subnets, 2 masks

D 10.1.4.0/24 [90/2297856] via 12.1.1.1, 01:01:11, Serial1/0

D 10.1.5.0/24 [90/2297856] via 12.1.1.1, 01:01:11, Serial1/0

13.0.0.0/24 is subnetted, 1 subnets

D 13.1.1.0 [90/2681856] via 12.1.1.1, 01:01:12, Serial1/0

15.0.0.0/24 is subnetted, 1 subnets

D 15.1.1.0 [90/2272256] via 24.1.1.4, 00:54:41, Serial1/1

34.0.0.0/24 is subnetted, 1 subnets

D 34.1.1.0 [90/2195456] via 24.1.1.4, 01:01:11, Serial1/1

36.0.0.0/24 is subnetted, 1 subnets

D 36.1.1.0 [90/2221056] via 24.1.1.4, 01:01:11, Serial1/1

44.0.0.0/24 is subnetted, 1 subnets

D 44.1.1.0 [90/2297856] via 24.1.1.4, 01:01:11, Serial1/1

56.0.0.0/24 is subnetted, 1 subnets

D 56.1.1.0 [90/2246656] via 24.1.1.4, 00:54:41, Serial1/1

R2#

===============================================================================================================

R3

端口配置IP地址

R3(config)#interface s1/1

R3(config-if)#encapsulation ppp

R3(config-if)#no peer neighbor-route

R3(config-if)#ip add 13.1.1.3 255.255.255.0

R3(config-if)#no sh

R3(config-if)#int e0/0

R3(config-if)#ip add 34.1.1.3 255.255.255.0

R3(config-if)#no sh

R3(config-if)#int e0/1

R3(config-if)#ip add 36.1.1.3 255.255.255.0

R3(config-if)#no sh

----------------------------------------------------------------------------------------

配置EIGRP

R3(config)#router eigrp 90

R3(config-router)#network 13.1.1.3 0.0.0.0

R3(config-router)#network 34.1.1.3 0.0.0.0

R3(config-router)#network 36.1.1.3 0.0.0.0

--------------------------------------------------------

EIGRP三张表

R3#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

2 36.1.1.6 Et0/1 11 00:54:11 2 100 0 8

1 13.1.1.1 Se1/1 11 01:00:41 17 102 0 27

0 34.1.1.4 Et0/0 10 01:24:55 6 100 0 59

R3#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(36.1.1.3)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 2297856

via 13.1.1.1 (2297856/128256), Serial1/1

P 10.1.7.0/24, 1 successors, FD is 2323456

via 34.1.1.4 (2323456/2297856), Ethernet0/0

via 13.1.1.1 (2809856/2297856), Serial1/1

P 24.1.1.0/29, 1 successors, FD is 2195456

via 34.1.1.4 (2195456/2169856), Ethernet0/0

P 15.1.1.0/24, 1 successors, FD is 332800

via 36.1.1.6 (332800/307200), Ethernet0/1

P 44.1.1.0/24, 1 successors, FD is 409600

via 34.1.1.4 (409600/128256), Ethernet0/0

P 56.1.1.0/24, 1 successors, FD is 307200

via 36.1.1.6 (307200/281600), Ethernet0/1

P 10.1.6.0/24, 1 successors, FD is 2323456

via 34.1.1.4 (2323456/2297856), Ethernet0/0

via 13.1.1.1 (2809856/2297856), Serial1/1

P 13.1.1.0/24, 1 successors, FD is 2169856

via Connected, Serial1/1

P 10.1.4.0/24, 1 successors, FD is 2297856

via 13.1.1.1 (2297856/128256), Serial1/1

P 36.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/1

P 34.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/0

P 12.1.1.0/30, 1 successors, FD is 2681856

via 13.1.1.1 (2681856/2169856), Serial1/1

R3#

R3#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets

D 10.1.4.0 [90/2297856] via 13.1.1.1, 01:01:12, Serial1/1

D 10.1.5.0 [90/2297856] via 13.1.1.1, 01:01:12, Serial1/1

D 10.1.6.0 [90/2323456] via 34.1.1.4, 01:01:12, Ethernet0/0

D 10.1.7.0 [90/2323456] via 34.1.1.4, 01:01:12, Ethernet0/0

12.0.0.0/30 is subnetted, 1 subnets

D 12.1.1.0 [90/2681856] via 13.1.1.1, 01:01:12, Serial1/1

15.0.0.0/24 is subnetted, 1 subnets

D 15.1.1.0 [90/332800] via 36.1.1.6, 00:54:42, Ethernet0/1

24.0.0.0/29 is subnetted, 1 subnets

D 24.1.1.0 [90/2195456] via 34.1.1.4, 01:01:12, Ethernet0/0

44.0.0.0/24 is subnetted, 1 subnets

D 44.1.1.0 [90/409600] via 34.1.1.4, 01:01:12, Ethernet0/0

56.0.0.0/24 is subnetted, 1 subnets

D 56.1.1.0 [90/307200] via 36.1.1.6, 00:54:42, Ethernet0/1

R3#

===============================================================================================================

R4

端口配置IP地址

R4(config)#int s1/0

R4(config-if)#exit

R4(config)#int s1/1

R4(config-if)#encapsulation ppp

R4(config-if)#no peer neighbor-route

R4(config-if)#ip add 24.1.1.4 255.255.255.248

R4(config-if)#no sh

R4(config-if)#int e0/0

R4(config-if)#ip add 34.1.1.4 255.255.255.0

R4(config-if)#no sh

R4(config-if)#int loopback 0

R4(config-if)#ip add 44.1.1.1 255.255.255.0

R4(config-if)#end

R4#

------------------------------------------------

配置EIGRP

R4(config)#router eigrp 90

R4(config-router)#network 0.0.0.0

-----------------------------------------------------

EIGRP三张表

R4#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

1 24.1.1.2 Se1/1 11 01:23:23 16 100 0 45

0 34.1.1.3 Et0/0 13 01:24:55 4 100 0 30

R4#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(44.1.1.1)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 2323456

via 34.1.1.3 (2323456/2297856), Ethernet0/0

via 24.1.1.2 (2809856/2297856), Serial1/1

P 10.1.7.0/24, 1 successors, FD is 2297856

via 24.1.1.2 (2297856/128256), Serial1/1

P 24.1.1.0/29, 1 successors, FD is 2169856

via Connected, Serial1/1

P 15.1.1.0/24, 1 successors, FD is 358400

via 34.1.1.3 (358400/332800), Ethernet0/0

P 44.1.1.0/24, 1 successors, FD is 128256

via Connected, Loopback0

P 56.1.1.0/24, 1 successors, FD is 332800

via 34.1.1.3 (332800/307200), Ethernet0/0

P 10.1.6.0/24, 1 successors, FD is 2297856

via 24.1.1.2 (2297856/128256), Serial1/1

P 13.1.1.0/24, 1 successors, FD is 2195456

via 34.1.1.3 (2195456/2169856), Ethernet0/0

P 10.1.4.0/24, 1 successors, FD is 2323456

via 34.1.1.3 (2323456/2297856), Ethernet0/0

via 24.1.1.2 (2809856/2297856), Serial1/1

P 36.1.1.0/24, 1 successors, FD is 307200

via 34.1.1.3 (307200/281600), Ethernet0/0

P 34.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/0

P 12.1.1.0/30, 1 successors, FD is 2681856

via 24.1.1.2 (2681856/2169856), Serial1/1

R4#

R4#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets

D 10.1.4.0 [90/2323456] via 34.1.1.3, 01:01:12, Ethernet0/0

D 10.1.5.0 [90/2323456] via 34.1.1.3, 01:01:12, Ethernet0/0

D 10.1.6.0 [90/2297856] via 24.1.1.2, 01:08:46, Serial1/1

D 10.1.7.0 [90/2297856] via 24.1.1.2, 01:08:46, Serial1/1

12.0.0.0/30 is subnetted, 1 subnets

D 12.1.1.0 [90/2681856] via 24.1.1.2, 01:01:12, Serial1/1

13.0.0.0/24 is subnetted, 1 subnets

D 13.1.1.0 [90/2195456] via 34.1.1.3, 01:01:12, Ethernet0/0

15.0.0.0/24 is subnetted, 1 subnets

D 15.1.1.0 [90/358400] via 34.1.1.3, 00:54:42, Ethernet0/0

36.0.0.0/24 is subnetted, 1 subnets

D 36.1.1.0 [90/307200] via 34.1.1.3, 01:25:25, Ethernet0/0

56.0.0.0/24 is subnetted, 1 subnets

D 56.1.1.0 [90/332800] via 34.1.1.3, 00:54:42, Ethernet0/0

R4#

=============================================================================================================

R5

端口配置IP地址

R5(config)#int e0/0

R5(config-if)#ip add 15.1.1.5 255.255.255.0

R5(config-if)#no sh

R5(config-if)#int e0/2

R5(config-if)#ip add 56.1.1.5 255.255.255.0

R5(config-if)#no sh

---------------------------------------------

配置EIGRP

R5(config)#router eigrp 90

R5(config-router)#network 15.1.1.5 0.0.0.0

R5(config-router)#network 56.1.1.5 0.0.0.0

---------------------------------------------------

EIGRP三张表

R5#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

0 56.1.1.6 Et0/2 11 00:54:20 9 100 0 7

R5#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(56.1.1.5)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 2349056

via 56.1.1.6 (2349056/2323456), Ethernet0/2

P 10.1.7.0/24, 1 successors, FD is 2374656

via 56.1.1.6 (2374656/2349056), Ethernet0/2

P 24.1.1.0/29, 1 successors, FD is 2246656

via 56.1.1.6 (2246656/2221056), Ethernet0/2

P 15.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/0

P 44.1.1.0/24, 1 successors, FD is 460800

via 56.1.1.6 (460800/435200), Ethernet0/2

P 56.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/2

P 10.1.6.0/24, 1 successors, FD is 2374656

via 56.1.1.6 (2374656/2349056), Ethernet0/2

P 13.1.1.0/24, 1 successors, FD is 2221056

via 56.1.1.6 (2221056/2195456), Ethernet0/2

P 10.1.4.0/24, 1 successors, FD is 2349056

via 56.1.1.6 (2349056/2323456), Ethernet0/2

P 36.1.1.0/24, 1 successors, FD is 307200

via 56.1.1.6 (307200/281600), Ethernet0/2

P 34.1.1.0/24, 1 successors, FD is 332800

via 56.1.1.6 (332800/307200), Ethernet0/2

P 12.1.1.0/30, 1 successors, FD is 2733056

via 56.1.1.6 (2733056/2707456), Ethernet0/2

R5#

R5#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets

D 10.1.4.0 [90/2349056] via 56.1.1.6, 00:54:42, Ethernet0/2

D 10.1.5.0 [90/2349056] via 56.1.1.6, 00:54:42, Ethernet0/2

D 10.1.6.0 [90/2374656] via 56.1.1.6, 00:54:42, Ethernet0/2

D 10.1.7.0 [90/2374656] via 56.1.1.6, 00:54:42, Ethernet0/2

12.0.0.0/30 is subnetted, 1 subnets

D 12.1.1.0 [90/2733056] via 56.1.1.6, 00:54:42, Ethernet0/2

13.0.0.0/24 is subnetted, 1 subnets

D 13.1.1.0 [90/2221056] via 56.1.1.6, 00:54:42, Ethernet0/2

24.0.0.0/29 is subnetted, 1 subnets

D 24.1.1.0 [90/2246656] via 56.1.1.6, 00:54:42, Ethernet0/2

34.0.0.0/24 is subnetted, 1 subnets

D 34.1.1.0 [90/332800] via 56.1.1.6, 00:54:42, Ethernet0/2

36.0.0.0/24 is subnetted, 1 subnets

D 36.1.1.0 [90/307200] via 56.1.1.6, 00:54:42, Ethernet0/2

44.0.0.0/24 is subnetted, 1 subnets

D 44.1.1.0 [90/460800] via 56.1.1.6, 00:54:42, Ethernet0/2

R5#

==============================================================================================================

R6

端口配置IP地址

R6(config)#int e0/2

R6(config-if)#ip add 56.1.1.6 255.255.255.0

R6(config-if)#no sh

R6(config-if)#int e0/1

R6(config-if)#ip add 36.1.1.6 255.255.255.0

R6(config-if)#no sh

----------------------------------------------------------------

配置EIGRP

R6(config)#router eigrp 90

R6(config-router)#network 56.1.1.6 0.0.0.0

R6(config-router)#network 36.1.1.6 0.0.0.0

---------------------------------------------------------------------

EIGRP三张表

R6#sh ip eigrp neighbors

EIGRP-IPv4 Neighbors for AS(90)

H Address Interface Hold Uptime SRTT RTO Q Seq

(sec) (ms) Cnt Num

1 36.1.1.3 Et0/1 14 00:54:11 17 102 0 31

0 56.1.1.5 Et0/2 11 00:54:20 9 100 0 4

R6#sh ip eigrp topology

EIGRP-IPv4 Topology Table for AS(90)/ID(56.1.1.6)

Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,

r - reply Status, s - sia Status

P 10.1.5.0/24, 1 successors, FD is 2323456

via 36.1.1.3 (2323456/2297856), Ethernet0/1

P 10.1.7.0/24, 1 successors, FD is 2349056

via 36.1.1.3 (2349056/2323456), Ethernet0/1

P 24.1.1.0/29, 1 successors, FD is 2221056

via 36.1.1.3 (2221056/2195456), Ethernet0/1

P 15.1.1.0/24, 1 successors, FD is 307200

via 56.1.1.5 (307200/281600), Ethernet0/2

P 44.1.1.0/24, 1 successors, FD is 435200

via 36.1.1.3 (435200/409600), Ethernet0/1

P 56.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/2

P 10.1.6.0/24, 1 successors, FD is 2349056

via 36.1.1.3 (2349056/2323456), Ethernet0/1

P 13.1.1.0/24, 1 successors, FD is 2195456

via 36.1.1.3 (2195456/2169856), Ethernet0/1

P 10.1.4.0/24, 1 successors, FD is 2323456

via 36.1.1.3 (2323456/2297856), Ethernet0/1

P 36.1.1.0/24, 1 successors, FD is 281600

via Connected, Ethernet0/1

P 34.1.1.0/24, 1 successors, FD is 307200

via 36.1.1.3 (307200/281600), Ethernet0/1

P 12.1.1.0/30, 1 successors, FD is 2707456

via 36.1.1.3 (2707456/2681856), Ethernet0/1

R6#

R6#sh 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

a - application route

+ - replicated route, % - next hop override

Gateway of last resort is not set

10.0.0.0/24 is subnetted, 4 subnets

D 10.1.4.0 [90/2323456] via 36.1.1.3, 00:54:41, Ethernet0/1

D 10.1.5.0 [90/2323456] via 36.1.1.3, 00:54:41, Ethernet0/1

D 10.1.6.0 [90/2349056] via 36.1.1.3, 00:54:41, Ethernet0/1

D 10.1.7.0 [90/2349056] via 36.1.1.3, 00:54:41, Ethernet0/1

12.0.0.0/30 is subnetted, 1 subnets

D 12.1.1.0 [90/2707456] via 36.1.1.3, 00:54:41, Ethernet0/1

13.0.0.0/24 is subnetted, 1 subnets

D 13.1.1.0 [90/2195456] via 36.1.1.3, 00:54:41, Ethernet0/1

15.0.0.0/24 is subnetted, 1 subnets

D 15.1.1.0 [90/307200] via 56.1.1.5, 00:54:51, Ethernet0/2

24.0.0.0/29 is subnetted, 1 subnets

D 24.1.1.0 [90/2221056] via 36.1.1.3, 00:54:41, Ethernet0/1

34.0.0.0/24 is subnetted, 1 subnets

D 34.1.1.0 [90/307200] via 36.1.1.3, 00:54:41, Ethernet0/1

44.0.0.0/24 is subnetted, 1 subnets

D 44.1.1.0 [90/435200] via 36.1.1.3, 00:54:41, Ethernet0/1

R6#

=====================================================================================

R2(config-if)#ip hold-time eigrp 90 200

//设置端口下hold time时间(自身hold time受邻居控制)

R2(config-if)#ip hello-interval eigrp 90 300

//R2在300秒之内不会发送hello

R1#show ip eigrp topology 10.1.6.0/24

//看一个具体条目的具体信息

Router#show ip protocols

//查看当前运行的路由协议

Router#show ip eigrp neighbors

//邻居表 存储着EIGRP协议目前所发现的邻居设备及其状态信息

Router#show ip eigrp topology

//拓扑表 存储本地收集起来的以及从邻居更新过来的网络信息,用于路由计算

Router#show ip route eigrp

//路由表 存储着EIGRP协议计算完毕的最优路由信息

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。