Lab9:IGRP,EIGRP,OSPF之间路由重发布。
2007-04-16 17:08
393 查看
这段时间也不知道自己在忙些什么,一个礼拜了,今天再写点,再不看6月份还怎么考啊/,该实验主要内容:
1)注意有类与无类网络的发布;
2)各种路由协议之间的重发布。
3)R1与R2的S0/0之间为EIGRP,R2的S0/1与R3的S0/0之间为OSPF,R3的回环口为IGRP.
具体过程:
Router>en
Router#con t
Router(config)#hostname R1
R1(config)#int loopback 1
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#ip add 2.2.2.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#router eigrp 100
R1(config-router)#net 10.1.1.0
R1(config-router)#net 2.2.2.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Loopback1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
3.0.0.0/16 is subnetted, 1 subnets
D 3.3.0.0 [90/3015680] via 2.2.2.2, 00:14:25, Serial0
20.0.0.0/16 is subnetted, 1 subnets
D 20.1.0.0 [90/3015680] via 2.2.2.2, 00:12:29, Serial0
Router>
Router>en
Router#con t
Router(config)#host R2
R2(config)#int s0/0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int s0/1
R2(config-if)#ip add 3.3.3.1 255.255.0.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#route ospf 200
R2(config-router)#net 3.3.0.0 0.0.255.255 area 0
R2(config-router)#exit
R2(config)#route eigrp 100
R2(config-router)#net 2.2.2.0
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
R2#con t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#redistribute igrp 100
R2(config-router)#exit
R2(config)#exit
R2#con t
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100 把OSPF发布到EIGRP
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/1628160] via 2.2.2.1, 00:02:08, Serial0
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/1628160] via 2.2.2.1, 00:22:05, Serial0
20.0.0.0/16 is subnetted, 1 subnets
O 20.1.0.0 [110/64] via 3.3.3.2, 00:19:53, Serial1
Router>
Router>en
Router#con t
Router(config)#host R3
R3(config)#int loopback 1
R3(config-if)#ip add 20.1.1.1 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip add 3.3.3.2 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#route igrp 100
R3(config-router)#net 20.1.0.0
R3(config-router)#exit
R3(config)#route ospf 200
R3(config-router)#net 3.3.0.0 0.0.255.255 area 0
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
20.0.0.0/16 is subnetted, 1 subnets
C 20.1.0.0 is directly connected, Loopback1
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial0
R3#con t
R3(config)#route ospf 200
R3(config-router)#redistribute igrp 100
R3(config-router)#exit
R3(config)#route igrp 100
R3(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
20.0.0.0/16 is subnetted, 1 subnets
C 20.1.0.0 is directly connected, Loopback1
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial0
2.0.0.0/16 is subnetted, 1 subnets
O 2.2.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
10.0.0.0/16 is subnetted, 1 subnets
O 10.1.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
本文出自 “Ж孤云Ж” 博客,请务必保留此出处http://guyun.blog.51cto.com/71128/23884
1)注意有类与无类网络的发布;
2)各种路由协议之间的重发布。
3)R1与R2的S0/0之间为EIGRP,R2的S0/1与R3的S0/0之间为OSPF,R3的回环口为IGRP.
具体过程:
Router>en
Router#con t
Router(config)#hostname R1
R1(config)#int loopback 1
R1(config-if)#ip add 10.1.1.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#int s0/0
R1(config-if)#ip add 2.2.2.1 255.255.255.0
R1(config-if)#no sh
R1(config-if)#exit
R1(config)#router eigrp 100
R1(config-router)#net 10.1.1.0
R1(config-router)#net 2.2.2.0
R1(config-router)#exit
R1(config)#exit
R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Loopback1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
3.0.0.0/16 is subnetted, 1 subnets
D 3.3.0.0 [90/3015680] via 2.2.2.2, 00:14:25, Serial0
20.0.0.0/16 is subnetted, 1 subnets
D 20.1.0.0 [90/3015680] via 2.2.2.2, 00:12:29, Serial0
Router>
Router>en
Router#con t
Router(config)#host R2
R2(config)#int s0/0
R2(config-if)#ip add 2.2.2.2 255.255.255.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#int s0/1
R2(config-if)#ip add 3.3.3.1 255.255.0.0
R2(config-if)#clock rate 64000
R2(config-if)#no sh
R2(config-if)#exit
R2(config)#route ospf 200
R2(config-router)#net 3.3.0.0 0.0.255.255 area 0
R2(config-router)#exit
R2(config)#route eigrp 100
R2(config-router)#net 2.2.2.0
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
R2#con t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#redistribute igrp 100
R2(config-router)#exit
R2(config)#exit
R2#con t
R2(config)#route eigrp 100
R2(config-router)#redistribute ospf 200 metric 1000 100 100 100 100 把OSPF发布到EIGRP
R2(config-router)#exit
R2(config)#route ospf 200
R2(config-router)#redistribute eigrp 100
R2(config-router)#exit
R2(config)#exit
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/1628160] via 2.2.2.1, 00:02:08, Serial0
R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial1
2.0.0.0/24 is subnetted, 1 subnets
C 2.2.2.0 is directly connected, Serial0
10.0.0.0/24 is subnetted, 1 subnets
D 10.1.1.0 [90/1628160] via 2.2.2.1, 00:22:05, Serial0
20.0.0.0/16 is subnetted, 1 subnets
O 20.1.0.0 [110/64] via 3.3.3.2, 00:19:53, Serial1
Router>
Router>en
Router#con t
Router(config)#host R3
R3(config)#int loopback 1
R3(config-if)#ip add 20.1.1.1 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#int s0/0
R3(config-if)#ip add 3.3.3.2 255.255.0.0
R3(config-if)#no sh
R3(config-if)#exit
R3(config)#route igrp 100
R3(config-router)#net 20.1.0.0
R3(config-router)#exit
R3(config)#route ospf 200
R3(config-router)#net 3.3.0.0 0.0.255.255 area 0
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
20.0.0.0/16 is subnetted, 1 subnets
C 20.1.0.0 is directly connected, Loopback1
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial0
R3#con t
R3(config)#route ospf 200
R3(config-router)#redistribute igrp 100
R3(config-router)#exit
R3(config)#route igrp 100
R3(config-router)#redistribute ospf 200 metric 1000 100 100 100 100
R3(config-router)#exit
R3(config)#exit
R3#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
U - per-user static route
Gateway of last resort is not set
20.0.0.0/16 is subnetted, 1 subnets
C 20.1.0.0 is directly connected, Loopback1
3.0.0.0/16 is subnetted, 1 subnets
C 3.3.0.0 is directly connected, Serial0
2.0.0.0/16 is subnetted, 1 subnets
O 2.2.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
10.0.0.0/16 is subnetted, 1 subnets
O 10.1.0.0 [110/64] via 3.3.3.1, 00:00:48, Serial0
R3#ping 10.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
本文出自 “Ж孤云Ж” 博客,请务必保留此出处http://guyun.blog.51cto.com/71128/23884
相关文章推荐
- rip eigrp 和ospf之间的路由重发布
- EIGRP、OSPF、IS-IS路由协议之间的重发布实例
- 实战:OSPF和EIGRP路由再发布
- 静态、rip、eigrp与ospf路由重发布
- 详解BSCI实验三、配置OSPF与EIGRP的路由再发布
- 配置Ospf与Eigrp的路由再发布
- EIGRP路由汇总和OSPF路由汇总配置
- LAB:EIGRP默认路由发布方法
- RIPV1与RIPV2,IGRP与EIGRP和单区域OSPF使用和配置
- Enhanced IGRP(EIGRP) and Open Shortest Path First(OSPF)
- CCNP-EIGRP发布默认路由的方法总结
- 路由重分布 rip,eigrp,和ospf
- CCNP-EIGRP发布默认路由的方法总结
- IP 路由 内部网关协议 常见的三种协议RIP、OSPF、EIGRP学习认识
- CCNP-EIGRP&OSPF重分布和路由汇总
- EIGRP和OSPF的双向双点路由重分布
- ospf &rip 路由重发布
- 多区域OSPF和路由再发布
- 路由知识 静态路由 rip eigrp ospf
- 思科路由重分发、路由过滤方法及难点总结(EIGRP、OSPF举例)