lab 2 EIGRP Default Route
生活随笔
收集整理的這篇文章主要介紹了
lab 2 EIGRP Default Route
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
EIGRP發布默認路由的四種方式
-
Redistributed default route
#R1# router eigrp 100 redistribute static network 10.1.1.1 0.0.0.0no auto-summary ip route 0.0.0.0 0.0.0.0 202.100.1.10?
?
-
By using ip summary-address command
#interface FastEthernet1/0ip address 10.1.1.1 255.255.255.0 ip summary-address eigrp 100 0.0.0.0 0.0.0.0 5?
-
Default route by using ip default-network command
R1(config)#ip default-network 202.100.1.0( 寫成主類 ) 這樣就可以把這條路由下發給其它的路由器當做默認路由了使用本命令要滿足以下條件: 1、接口IP地址必須是主類 2、接口必須宣告進EIGRP 3、使用命令下發時也必須寫主類網絡號?
-
Default route with network 0.0.0.0 command
R1#router eigrp 100network 1.1.1.1 0.0.0.0network 10.1.1.1 0.0.0.0network 0.0.0.0no auto-summaryip route 0.0.0.0 0.0.0.0 FastEthernet0/0( 寫下一跳不行,必須寫接口 )?
基本網絡配置
?
R2# interface FastEthernet0/0ip address 10.1.1.10 255.255.255.0 R1# interface FastEthernet0/0ip address 202.100.1.1 255.255.255.0 interface FastEthernet1/0ip address 10.1.1.1 255.255.255.0 ip route 0.0.0.0 0.0.0.0 202.100.1.10 Interne# interface FastEthernet0/0ip address 202.100.1.10 255.255.255.0 ip route 0.0.0.0 0.0.0.0 202.100.1.1?
?
Redistributed default route配置
?
?
R1# router eigrp 100 redistribute static network 10.1.1.1 0.0.0.0no auto-summary?
?
驗證
#R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is 10.1.1.1 to network 0.0.0.010.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, FastEthernet0/0 D*EX 0.0.0.0/0 [170/307200] via 10.1.1.1, 00:17:42, FastEthernet0/0 #?
?
Default route By using ip summary-address command配置
R1# router eigrp 100network 10.1.1.1 0.0.0.0no auto-summary interface FastEthernet1/0ip address 10.1.1.1 255.255.255.0 ip summary-address eigrp 100 0.0.0.0 0.0.0.0 5?
?
驗證
R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is 10.1.1.1 to network 0.0.0.010.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, FastEthernet0/0 D* 0.0.0.0/0 [90/284160] via 10.1.1.1, 00:00:05, FastEthernet0/0?
?
Default route by using ip default-network command配置
-
the network must either be an EIGRP-derived network in the routing table or be generated using a static route, which has been redistributed into EIGRP
-
the ip default-network command does not benefit router R1 directly.
?
?
驗證
R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route Gateway of last resort is 10.1.1.1 to network 202.100.1.0 1.0.0.0/24 is subnetted, 1 subnets D 1.1.1.0 [90/409600] via 10.1.1.1, 00:04:01, FastEthernet0/0 D* 202.100.1.0/24 [90/307200] via 10.1.1.1, 00:00:14, FastEthernet0/0 10.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, FastEthernet0/0?
?
Default route with network 0.0.0.0 command配置
if the network 0.0.0.0 command is added to the EIGRP configuration, it redistributes a default route as a result of the ip route 0.0.0.0 0.0.0.0 interface command. R1#router eigrp 100 network 1.1.1.1 0.0.0.0network 10.1.1.1 0.0.0.0 network 0.0.0.0 no auto-summary ip route 0.0.0.0 0.0.0.0 FastEthernet0/0?
?
驗證
R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route Gateway of last resort is 10.1.1.1 to network 0.0.0.0 1.0.0.0/24 is subnetted, 1 subnets D 1.1.1.0 [90/409600] via 10.1.1.1, 00:10:37, FastEthernet0/0 D 202.100.1.0/24 [90/307200] via 10.1.1.1, 00:00:30, FastEthernet0/010.0.0.0/24 is subnetted, 1 subnets C 10.1.1.0 is directly connected, FastEthernet0/0 D* 0.0.0.0/0 [90/307200] via 10.1.1.1, 00:00:02, FastEthernet0/0?
?
?
?
?
?
?
轉載于:https://www.cnblogs.com/faerl/p/8253740.html
總結
以上是生活随笔為你收集整理的lab 2 EIGRP Default Route的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2018 ios开发者账号同意新协议加联
- 下一篇: __getattr__动态获取接口