您现在的位置是:首页 > 英语文章 > Computer > Personal Tech
正文
Cisco CCNA / CCNP Certification: OSPF ASBRs Explained And Illustrated
2008-06-13来源:
When I first started studying for my CCNP, some of the concepts of OSPF really confused me. This was especially true for the ASBR, stub areas, and total stub areas. Sure, I could memorize the LSA types associated with these devices and area types, but there just weren't any illustrations that explained exactly what was going on.This CCNP tutorial shows an ASBR in operation, and also introduces you to a basic example of route redistribution. Don't worry, it gets more complicated. :)Here's the network we'll be working with in this tutorial:R5|R1/ R2 R3networks:R1 - R5 Ethernet Segment: 10.1.1.0 /24R1 - R2 - R3 Serial Segment: 172.16.123.0 /24 (Preconfigured with OSPF)R1 and R5 are running RIP over their common Ethernet segment, 10.1.1.0 /24. R5 has three loopbacks it will be advertising into the RIP domain.R1 is also running OSPF, with R2 and R3 as neighbors. Even though R1 knows about the loopbacks on R5, its OSPF neighbors do not. R1 has these routes in its RIP routing table, and for OSPF neighbors to learn of these routes, route redistribution must be manually configured.R5#conf t
R5(config)#router rip
R5(config-router)#version 2
R5(config-router)#no auto-summary
R5(config-router)#network 5.0.0.0
R5(config-router)#network 10.0.0.0R1#conf t
R1(config)#router rip
R1(config-router)#version 2
R1(config-router)#no auto-summary
R1(config-router)#network 10.0.0.0R1#show ip route rip
5.0.0.0/24 is subnetted, 3 subnets
R 5.1.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0
R 5.2.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0
R 5.3.1.0 [120/1] via 10.1.1.5, 00:00:10, Ethernet0R1 has a route for all three of R5's loopback interfaces, learned via RIP. R1 is also running OSPF, but its neighbors R2 and R3 don't know about these RIP routes:R2#show ip route ospfR2# < no output from show command means no routes! >R3#show ip route ospfR3#Be careful when configuring redistribution use IOS Help to make sure you're not missing any vital options. IOS Help shows that there is a "subnets" option when redistributing RIP into OSPF. If that is left off, only classful networks are redistributed (as the router is kind enough to tell us). In this case, we have no classful networks, so there will be no redistribution. R2 will not see the RIP routes.R1(config)#router ospf 1
R1(config-router)#redistribute rip ?metric Metric for redistributed routes
metric-type OSPF/IS-IS exterior metric type for redistributed routes
route-map Route map reference
subnets Consider subnets for redistribution into OSPF
tag Set tag for routes redistributed into OSPFR1(config-router)#redistribute rip
% Only classful networks will be redistributedR2#show ip route ospfR2#clear ip route *R2#show ip route ospfR2#On R1, we'll now use the "subnets" option, and the RIP subnets are successfully redistributed into OSPF.R1(config)#router ospf 1R1(config-router)#redistribute rip subnetsR2 now sees the redistributed routes.R2#show ip route ospf5.0.0.0/24 is subnetted, 3 subnetsO E2 5.1.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123O E2 5.2.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123O E2 5.3.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.12310.0.0.0/24 is subnetted, 1 subnetsO E2 10.1.1.0 [110/20] via 172.12.123.1, 00:00:08, Serial0.123Notice that the routes are marked as "E2". The E indicates that these are external routes these are routes that were learned by OSPF via redistribution.Naturally, you'll want to ping these networks to make sure you have two-way communication. Even though the routes to these loopbacks are in the routing table, pings fail:R2#ping 5.1.1.1Type es
相关文章
- Beyond Test Taking: Learning to Handle Information
- 5 Ways to Make Your Computer Work For You (And Not The Other Way Around)
- How to Be an Expert (and Find One if You’re Not)
- How to Sell Yourself (and Why Your Career Depends On It)
- 7 Tips for Resolving Conflicts Quickly and Peacefully
- The Power of Ritual: Conquer Procrastination, Time Wasters and Laziness
- 5 Challenges of Working From Anywhere And How To Overcome Them
- Cisco Certification: The Most Important Cisco Study Youll Ever Do
- Smart Apple iPod Tips and Techniques
- Temporary Fixes to Spyware, Ad-ware, and Virus Infections