| Cisco CCNA / CCNP Certification: OSPF E2 vs. E1 Routes |
|
OSPF is a major topic on both the CCNA and CCNP exams, and it's also the topic that requires the most attention to detail. Where dynamic routing protocols such as RIP and IGRP have only one router type, a look at a Cisco routing table shows several different OSPF route types. R1#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -
BGP O E2 5.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0 6.0.0.0/32 is subnetted, 1 subnets O E2 6.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0 172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks O E2 172.12.21.0/30 [110/20] via 172.34.34.3, 00:33:32, O E2 7.1.1.1 [110/20] via 172.34.34.3, 00:33:21, Ethernet0 15.0.0.0/24 is subnetted, 1 subnets O E2 15.1.1.0 [110/20] via 172.34.34.3, 00:33:32, Ethernet0 E2 is the default route type for routes learned via redistribution. The
key with E2 routes is that the cost of these routes reflects only the
cost of the path from the ASBR to the final destination; the cost of the
path from R4 to R1 is not reflected in this cost. (Remember that OSPF's
metric for a path is referred to as "cost".) Enter configuration commands, one per line. End with CNTL/Z. R1(config)#router ospf 1 R1(config-router)#redistribute rip subnets metric-type 1 Now on R4, the routes appear as E1 routes and have a larger metric, since
the entire path cost is now reflected in the routing table. 6.0.0.0/32 is subnetted, 1 subnets O E1 6.1.1.1 [110/100] via 172.34.34.3, 00:33:21, Ethernet0 172.12.0.0/16 is variably subnetted, 2 subnets, 2 masks O E1 172.12.21.0/30 [110/94] via 172.34.34.3, 00:33:32, Ethernet0 O E1 7.1.1.1 [110/94] via 172.34.34.3, 00:33:21, Ethernet0 15.0.0.0/24 is subnetted, 1 subnets O E1 15.1.1.0 [110/94] via 172.34.34.3, 00:33:32, Ethernet0 |
|
| ccnaguru.com | |
Written by Chris Bryant |
|