您的位置:首页 > 其它

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: