溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

3、EIGRP配置實(shí)驗(yàn)之路由注入

發(fā)布時(shí)間:2020-06-30 13:52:05 來(lái)源:網(wǎng)絡(luò) 閱讀:498 作者:開(kāi)源殿堂 欄目:網(wǎng)絡(luò)安全

1、實(shí)驗(yàn)拓?fù)?/p>

3、EIGRP配置實(shí)驗(yàn)之路由注入

2、基礎(chǔ)配置

R1

interface Serial0/0

 ip address 12.1.1.1 255.255.255.0


R2

interface Serial0/0

 ip address 12.1.1.2 255.255.255.0

interface Serial0/1

 ip address 23.1.1.2 255.255.255.0

router eigrp 90

 network 23.1.1.0 0.0.0.255

 no auto-summary


R3

interface Serial0/0

 ip address 34.1.1.3 255.255.255.0

 serial restart-delay 0

interface Serial0/1

 ip address 23.1.1.3 255.255.255.0

 serial restart-delay 0

router eigrp 90

 network 23.1.1.0 0.0.0.255

 network 34.1.1.0 0.0.0.255

 auto-summary


R4

interface Serial0/0

 ip address 34.1.1.4 255.255.255.0

router eigrp 90

 network 34.1.1.0 0.0.0.255

 auto-summary


3、三種路由注入3中方法方法

重分布:添加一條0.0.0.0默認(rèn)路由,,在EIGRP路由進(jìn)程中重分布該默認(rèn)路由

通  告:添加一條0.0.0.0默認(rèn)路由,在EIGRP路由進(jìn)程中network通告該默認(rèn)路由

ip default-network:

首先,ip default-network后面的網(wǎng)絡(luò)必須是外網(wǎng)口所在網(wǎng)段的主類網(wǎng)絡(luò)

其次,在EIGRP路由進(jìn)程中network通告該主類網(wǎng)絡(luò)

最后,必須存在到該主類網(wǎng)絡(luò)的路由,沒(méi)有的話,可以手動(dòng)添加


4、重分布配置

R2(config)#ip route 0.0.0.0 0.0.0.0 s0/0

R2(config)#router eigrp 90

R2(config-router)#redistribute static 


R3#show ip route

Codes: 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


Gateway of last resort is 23.1.1.2 to network 0.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial0/1

D*EX 0.0.0.0/0 [170/2681856] via 23.1.1.2, 00:00:04, Serial0/1

R3#


R4#show ip route

Codes: 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


Gateway of last resort is 34.1.1.3 to network 0.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

D       23.1.1.0 [90/2681856] via 34.1.1.3, 00:01:51, Serial0/0

D*EX 0.0.0.0/0 [170/3193856] via 34.1.1.3, 00:00:12, Serial0/0

R4#

重分布進(jìn)來(lái)的靜態(tài)路由屬外部路由,故其AD為170


5、通告配置

R2(config)#ip route 0.0.0.0 0.0.0.0 s0/0

R2(config)#router eigrp 90

R2(config-router)#network 0.0.0.0


R3#show ip route

Codes: 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


Gateway of last resort is 23.1.1.2 to network 0.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial0/1

     12.0.0.0/24 is subnetted, 1 subnets

D       12.1.1.0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1

D*   0.0.0.0/0 [90/2681856] via 23.1.1.2, 00:00:02, Serial0/1

R3#


R4#show ip route

Codes: 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


Gateway of last resort is 34.1.1.3 to network 0.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

D       23.1.1.0 [90/2681856] via 34.1.1.3, 00:03:29, Serial0/0

     12.0.0.0/24 is subnetted, 1 subnets

D       12.1.1.0 [90/3193856] via 34.1.1.3, 00:00:28, Serial0/0

D*   0.0.0.0/0 [90/3193856] via 34.1.1.3, 00:00:28, Serial0/0

R4#

network通告進(jìn)來(lái)的靜態(tài)路由屬內(nèi)部路由,故其AD為90


6、ip default-network配置

R2(config)#ip default-network 12.0.0.0 

R2(config)#router eigrp 90

R2(config-router)#network 12.0.0.0 0.255.255.255

R2(config-router)#exit

R2(config)#ip route 12.0.0.0 255.0.0.0 null 0 


R3#show ip route

Codes: 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


Gateway of last resort is 23.1.1.2 to network 12.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

C       23.1.1.0 is directly connected, Serial0/1

     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D       12.1.1.0/24 [90/2681856] via 23.1.1.2, 00:01:28, Serial0/1

D*      12.0.0.0/8 [90/2169856] via 23.1.1.2, 00:00:35, Serial0/1

R3#


R4#show ip route

Codes: 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


Gateway of last resort is 34.1.1.3 to network 12.0.0.0


     34.0.0.0/24 is subnetted, 1 subnets

C       34.1.1.0 is directly connected, Serial0/0

     23.0.0.0/24 is subnetted, 1 subnets

D       23.1.1.0 [90/2681856] via 34.1.1.3, 00:06:38, Serial0/0

     12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

D       12.1.1.0/24 [90/3193856] via 34.1.1.3, 00:01:59, Serial0/0

D*      12.0.0.0/8 [90/2681856] via 34.1.1.3, 00:01:07, Serial0/0

R4#


向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI