yu
yu

Scenario Redistributing Between EIGRP and OSPF

Scenario  Redistributing Between EIGRP and OSPF



Routers R1, R2, and R3 are configured in OSPF process 1. (Remember that OSPF has a process ID that is only locally significant.) R4 is configured in EIGRP domain 1, and R5 is configured in EIGRP domain 2. The WAN link between R4 and R5 resides in EIGRP domain 3.
details the IP address assignment. Also, notice that a redundant path exists between R4 and R5. Therefore, you must carefully consider any route redistribution to avoid routing loops.
Start by enabling the routing protocols in use, namely OSPF on Routers R1–R3. Figure 8-5 depicts a simple OSPF network with one area, the backbone.
All of Router R1's interfaces reside in area 0; hence, you can use one IOS command to place all R1's interfaces in OSPF area 0 or the backbone.

Example 8-47. R1's OSPF Configuration

R1(config)#router ospf 1
R1(config-router)#network 0.0.0.0 255.255.255.255 area 0
Routers R2 and R3 reside in OSPF and EIGRP domains. Example 8-48 configures R2's serial link to R1 to reside in area 0.

Example 8-48. R2's OSPF Configuration

R2(config)#router ospf 1
R2(config-router)#network 141.108.255.2 0.0.0.0 area 0
The inverse mask, 0.0.0.0, configures the IP address 141.108.255.2 into area 0.
Example 8-49 configures R3's serial link to R1 to reside in area 0.

Example 8-49. R3's OSPF Configuration

R3config)#router ospf 1
R3config-router)#network 141.108.255.6 0.0.0.0 area 0
R1 should now have full OSPF adjacency to R2 and R3. Example 8-50 confirms that OSPF has formed a full relationship to R2 and R3.

Example 8-50. shows ip ospf neighbor on R1

R1#show ip ospf neighbor

Neighbor ID     Pri   State           Dead Time   Address         Interface
141.108.255.17    1   FULL/  -        00:00:38    141.108.255.2   Serial1/0
141.108.255.13    1   FULL/  -        00:00:38    141.108.255.6   Serial1/1
R1 is fully adjacent (Full) to R2 and R3, and no designated router (DR) or backup designated router (BDR) is selected over a point-to-point (in this case back-to-back serial connected Cisco routers).
Before you configure redistribution, configure the EIGRP domains on R4 and R5. Example 8-51 configures R4 in EIGRP domains 1 and 3.

Example 8-51. EIGRP Configuration on R4

R4(config)#router eigrp 1
R4(config-router)# passive-interface Serial1
R4(config-router)# network 141.108.0.0
R4(config-router)#network 161.100.0.0
R4(config-router)# no auto-summary
R4(config-router)#!
R4(config-router)#router eigrp 3
R4(config-router)# passive-interface Ethernet0
R4(config-router)# passive-interface Serial0
R4(config-router)# network 141.108.0.0
R4(config-router)# no auto-summary
Automatic summarization is disabled on R4, so you can apply some summary commands later. Also on R4, for interfaces in EIGRP domain 1, you need to apply the passive interface command to ensure that no routing updates are sent.
Similarly, in EIGRP domain 3, only one network resides in EIGRP 3, the WAN link to R5.
Example 8-52 confirms the EIGRP interfaces in domains 1 and 3.

Example 8-52. show ip eigrp interfaces on R4

R4#show ip eigrp interfaces
IP-EIGRP interfaces for process 1
                    Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface    Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Se0            1        0/0         7       5/194        226           0
Et0            0        0/0         0       0/10           0           0

IP-EIGRP interfaces for process 3
                    Xmit Queue   Mean   Pacing Time   Multicast    Pending
Interface    Peers  Un/Reliable  SRTT   Un/Reliable   Flow Timer   Routes
Se1            0        0/0       0       0/10        0              0
Example 8-52 confirms that the Ethernet interface and link to R3 reside in EIGRP 1 and the WAN link to R5 resides in EIGRP 3. The peers on R4 confirm that EIGRP is configured on R3. There is no EIGRP peer to R5 because EIGRP is not enabled on R5 yet.
Example 8-53 configures R5 in EIGRP 2 and EIGRP 3.

Example 8-53. EIGRP Configuration on R5

R5(config)#router eigrp 3
R5(config-router)# passive-interface Ethernet0
R5(config-router)# passive-interface Serial0
R5(config-router)# network 141.108.0.0
R5(config-router)# no auto-summary
R5(config-router)#!
R5(config-router)#router eigrp 2
R5(config-router)# passive-interface Serial1
R5(config-router)# network 141.108.0.0
R5(config-router)# network 160.100.0.0
R5(config-router)# no auto-summary
At this stage, you have not configured any redistribution. Start by configuring redistribution in the EIGRP domains 1, 2, and 3. Redistributing from one EIGRP AS to another does not require you to define a metric because EIGRP conserves the metric. Therefore, you redistribute only networks using the metric from the original AS or domain. You do have to ensure that route maps or distribution lists are used to avoid loops. You configure route maps on R2 and R3, the core routers in the network, later in this chapter.
Example 8-54 configures redistribution from EIGRP domain 1 to 3 on Router R4 and also configures a summary route on R4, advertising the subnet 160.100.0.0/17.

Example 8-54. Redistribution on R4

R4(config)#interface s0
R4(config-if)#ip summary-address eigrp 1 160.100.0.0 255.255.128.0
R4(config)#router eigrp 1
R4(config-router)#redistribute eigrp 3
R4(config-router)#exit
R4(config)#router eigrp 3
R4(config-router)#redistribute eigrp 1
Example 8-55 configures redistribution from EIGRP domain 2 to 3 on Router R5 and also configures a summary route on R4, advertising the subnet 160.100.128.0/17.

Example 8-55. Redistribution on R5

R5(config-router)#interface Serial0
R5(config-if)# ip summary-address eigrp 2 160.100.128.0 255.255.128.0
R5(config-if)#exit
R5(config)#router eigrp 3
R5(config-router)# redistribute eigrp 2
R5(config-router)#router eigrp 2
R5(config-router)# redistribute eigrp 3
To ensure IP connectivity, display the IP routing tables on R2 and R3. Example 8-56 displays the IP routing table (EIGRP only) on R2.

Example 8-56. show ip route eigrp on R2

R2#sh ip route eigrp
     141.108.0.0/16 is variably subnetted, 13 subnets, 2 masks
D       141.108.255.20/30
           [90/21024000] via 141.108.255.18, 00:01:26, Serial1/1
D EX    141.108.255.12/30
           [170/22016000] via 141.108.255.18, 00:01:26, Serial1/1
     160.100.0.0/17 is subnetted, 2 subnets
D       160.100.128.0 [90/20537600] via 141.108.255.18, 00:01:26, Serial1/1
D EX    160.100.0.0 [170/21049600] via 141.108.255.18, 00:01:26, Serial1/1
R2 has the summary route from R4 appearing as an internal EIGRP route (D) because the network resides in the same AS. The second summary route redistributed from domain 3 to 2 appears as an external EIGRP (D EX) route.
Example 8-57 displays the IP routing table (EIGRP) in R3.

Example 8-57. show ip route eigrp on R3

R3#show ip route eigrp
     160.100.0.0/17 is subnetted, 2 subnets
D EX    160.100.128.0 [170/21529600] via 141.108.255.14, 00:06:21, Serial1
D       160.100.0.0 [90/21017600] via 141.108.255.14, 00:10:12, Serial1
     141.108.0.0/16 is variably subnetted, 13 subnets, 2 masks
D       141.108.255.20/30 [90/21504000] via 141.108.255.14, 00:10:12, Serial1
D EX    141.108.255.16/30 [170/22016000] via 141.108.255.14, 00:07:27, Serial1
Similarly, R3 has an internal (D 160.100.0.0) and external summary route (D EX 160.100.128.0) for the remote Ethernet segments on R4 and R5, respectively.
R1's IP routing table does not contain the EIGRP networks because the OSPF routers R2 and R3 (ABRs and ASBRs) have yet to enable redistribution from EIGRP (composite metric) to OSPF (cost metric). Because OSPF and EIGRP use different metrics for routing, you must assign metrics when redistributing and ensure, by using route maps, that no redistributed information causes a routing loop.
Example 8-58 configures R2 for redistributing OSPF routes into EIGRP and EIGRP routes into OSPF. R2 is configured not to permit any routes from R4 advertising networks in the range 141.108.0.0–141.108.7.255 and also the WAN subnets 141.108.255.0/30 (Link R1/R2) and 141.108.255.4/30 (Link R1/R3); this prevents erroneous routing information and routing loops from occurring.

Example 8-58. Retribution on R2

router eigrp 2
 redistribute ospf 1 metric 1500 2000 255 1 1500 route-map allowintoeigrp
!
router ospf 1
 redistribute eigrp 2 metric 100 subnets route-map allowintoospf
!
route-map allowintoeigrp permit 10
 match ip address 1
!
route-map allowintoospf permit 10
 match ip address 2
! Networks in Access list 1 reside in the EIGRP domain
access-list 1 deny   160.100.0.0 0.0.255.255
access-list 1 permit any
! Networks in Access-list 2 reside in the OSPF domain
access-list 2 deny   141.108.0.0 0.0.7.255
access-list 2 deny   141.108.255.0 0.0.0.3
access-list 2 deny   141.108.255.4 0.0.0.3
access-list 2 permit any
R2 is configured to redistribute OSPF networks with a route map named allowintoeigrp, indicating that only networks matching access list 1 are allowed into OSPF. Similarly, when redistributing EIGRP networks into OSPF, the route map named allowintoospf permits all networks matching access-list 2, as shaded in Example 8-58.
Example 8-59 displays the OSPF to EIGRP redistribution on Router R3 with a route map configured to ensure that erroneous information is not sent from either routing domain.

Example 8-59. Redistribution on R3

router eigrp 1
 redistribute ospf 1 metric 1500 20000 255 1 1500 route-map allowintoeigrp
!
router ospf 1
 redistribute eigrp 1 metric 100 subnets route-map allowintoospf

! Networks in Access list 1 reside in the EIGRP domain
access-list 1 deny   160.100.0.0 0.0.255.255
access-list 1 permit any
! Networks in Access-list 2 reside in the OSPF domain
access-list 2 deny   141.108.0.0 0.0.7.255
access-list 2 deny   141.108.255.0 0.0.0.3
access-list 2 deny   141.108.255.4 0.0.0.3
access-list 2 permit any
route-map allowintoeigrp permit 10
 match ip address 1
!
route-map allowintoospf permit 10
 match ip address 2

Example 8-60. show ip route ospf and Pings on R1

R1#show ip route ospf
     141.108.0.0/16 is variably subnetted, 13 subnets, 2 masks
O E2    141.108.255.20/30 [110/100] via 141.108.255.6, 01:16:02, Serial1/1
O E2    141.108.255.16/30 [110/100] via 141.108.255.6, 01:16:02, Serial1/1
O E2    141.108.255.12/30 [110/100] via 141.108.255.6, 01:16:02, Serial1/1
     160.100.0.0/17 is subnetted, 2 subnets
O E2    160.100.128.0 [110/100] via 141.108.255.2, 01:16:11, Serial1/0
O E2    160.100.0.0 [110/100] via 141.108.255.6, 01:16:02, Serial1/1
R1#ping 160.100.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 160.100.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms
R1#ping 160.100.128.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 160.100.128.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/31/32 ms
R1#
Example 8-61 displays the IP routing table on R4.

Example 8-61. show ip route on R4

R4#show ip route

     141.108.0.0/16 is variably subnetted, 13 subnets, 2 masks
C       141.108.255.20/30 is directly connected, Serial1
D       141.108.255.16/30 [90/21504000] via 141.108.255.22, 01:42:25, Serial1
C       141.108.255.12/30 is directly connected, Serial0
D       141.108.255.4/30 [90/21504000] via 141.108.255.13, 01:42:51, Serial0
D EX    141.108.255.0/30 [170/22016000] via 141.108.255.22, 01:42:25, Serial1
D EX    141.108.1.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.0.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.3.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.2.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.5.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.4.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.7.0/24 [170/22016000] via 141.108.255.22, 01:21:46, Serial1
D EX    141.108.6.0/24 [170/22016000] via 141.108.255.22, 01:21:47, Serial1
     160.100.0.0/17 is subnetted, 2 subnets
D EX    160.100.128.0 [170/21017600] via 141.108.255.22, 01:42:27, Serial1
C       160.100.0.0 is directly connected, Ethernet0
Full connectivity is displayed on R4, and notice that the shaded routes in Example 8-61 encompass all the routes from 141.108.0.0–141.108.7.255. (These routes are the loopback interfaces on R1.)
Example 8-62 displays a successful ping from R4 to all the remote loopbacks on R1 to ensure that you have network connectivity from the EIGRP domain.

Example 8-62. Pinging Loopbacks from R4

R4#ping 141.108.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/37/44 ms
R4#ping 141.108.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/37/40 ms
R4#ping 141.108.2.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/36/40 ms
R4#ping 141.108.3.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.3.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/37/40 ms
R4#ping 141.108.4.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/38/40 ms
R4#ping 141.108.5.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.5.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/50/100 ms
R4#ping 141.108.6.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 141.108.6.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/38/40 ms
Because R4 and R5 have a redundant path to the OSPF backbone, the EIGRP topology table on R4 and R5 displays feasible successors. Example 8-63 displays the output from the show ip eigrp topology command on R4.

Example 8-63. show ip eigrp topology on R4

R4#show ip eigrp topology
IP-EIGRP Topology Table for AS(1)/ID(160.100.1.1)
Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply,
       r - Reply status
P 141.108.255.20/30, 1 successors, FD is 20992000
         via Connected, Serial1
P 141.108.255.16/30, 1 successors, FD is 21504000
         via Redistributed (21504000/0)
P 141.108.255.12/30, 1 successors, FD is 20992000
         via Connected, Serial0
P 141.108.255.4/30, 1 successors, FD is 21504000
         via 141.108.255.13 (21504000/20992000), Serial0
P 141.108.255.0/30, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 160.100.128.0/17, 1 successors, FD is 21017600
         via Redistributed (21017600/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 160.100.0.0/17, 1 successors, FD is 281600
         via Connected, Ethernet0
P 141.108.1.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.0.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.3.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.2.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.5.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.4.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.7.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
P 141.108.6.0/24, 1 successors, FD is 22016000
         via Redistributed (22016000/0)
         via 141.108.255.13 (26112000/6826496), Serial0
IP-EIGRP Topology Table for AS(3)/ID(160.100.1.1)
P 141.108.255.20/30, 1 successors, FD is 20992000
         via Connected, Serial1
         via Reconnected (20992000/0)
P 141.108.255.16/30, 1 successors, FD is 21504000
         via 141.108.255.22 (21504000/2169856), Serial1
P 141.108.255.12/30, 1 successors, FD is 20992000
         via Connected, Serial0
         via Reconnected (20992000/0)
P 141.108.255.4/30, 1 successors, FD is 21504000
         via Redistributed (21504000/0)
         via 141.108.255.22 (22016000/2730496), Serial1
P 141.108.255.0/30, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/21024000), Serial1
         via Redistributed (26112000/0)
P 160.100.128.0/17, 1 successors, FD is 21017600
         via 141.108.255.22 (21017600/281600), Serial1
P 160.100.0.0/17, 1 successors, FD is 281600
         via Redistributed (281600/0)
P 141.108.1.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.0.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.3.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.2.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.5.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.4.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.7.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
P 141.108.6.0/24, 1 successors, FD is 22016000
         via 141.108.255.22 (22016000/2730496), Serial1
         via Redistributed (26112000/0)
In Example 8-63, R4 has a number of dual paths to remote networks, as shaded in the output. Because the metric is lower through Serial 1, the chosen path to the remote network 141.108.6.0/24 is through Serial 1, for example. Next, simulate a network failure by shutting down the serial link to R5 on R4. Example 8-64 disables the link to R5.

Example 8-64. Shut Down S1 on R4

R4(config)#interface serial 1
R4(config-if)#shutdown
04:02:11: %LINK-5-CHANGED: Interface Serial1, changed state to administratively
down
04:02:12: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed state
 to down
The IP routing table on R4 displays the path to the remote loopbacks and OSPF network through Serial 0. Example 8-65 confirms the IP routing table; note the EIGRP composite metric, which is higher than through Serial 1 to R5 (22016000 compared to 26112000).

Example 8-65. show ip route eigrp on R4

R4#show ip route eigrp
     141.108.0.0/16 is variably subnetted, 11 subnets, 2 masks
D       141.108.255.4/30 [90/21504000] via 141.108.255.13, 02:53:02, Serial0
D EX    141.108.255.0/30 [170/26112000] via 141.108.255.13, 00:02:07, Serial0
D EX    141.108.1.0/24 [170/26112000] via 141.108.255.13, 00:02:07, Serial0
D EX    141.108.0.0/24 [170/26112000] via 141.108.255.13, 00:02:07, Serial0
D EX    141.108.3.0/24 [170/26112000] via 141.108.255.13, 00:02:07, Serial0
D EX    141.108.2.0/24 [170/26112000] via 141.108.255.13, 00:02:07, Serial0
D EX    141.108.5.0/24 [170/26112000] via 141.108.255.13, 00:02:08, Serial0
D EX    141.108.4.0/24 [170/26112000] via 141.108.255.13, 00:02:08, Serial0
D EX    141.108.7.0/24 [170/26112000] via 141.108.255.13, 00:02:08, Serial0
D EX    141.108.6.0/24 [170/26112000] via 141.108.255.13, 00:02:08, Serial0
     160.100.0.0/17 is subnetted, 2 subnets
D EX    160.100.128.0 [170/26112000] via 141.108.255.13, 00:02:08, Serial0
This scenario demonstrates the metric and filtering techniques common in today's large IP networks and the care that you must take when sending networks from one routing algorithm to another. You must pay particular attention to the metric and avoid any routing loops.
Example 8-66 displays R1's full working configuration.

Example 8-66. R1's Full Working Configuration

hostname R1
!
enable password cisco
!
interface Loopback0
 ip address 141.108.2.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback1
 ip address 141.108.3.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback2
 ip address 141.108.4.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback3
 ip address 141.108.5.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback4
 ip address 141.108.6.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback5
 ip address 141.108.7.1 255.255.255.0
 ip ospf network point-to-point
!
interface Loopback6
 ip address 141.108.0.1 255.255.255.0
 ip ospf network point-to-point
!
interface Ethernet0/0
 ip address 141.108.1.1 255.255.255.0
!
interface Serial1/0
 ip address 141.108.255.1 255.255.255.252
 clockrate 128000
!
interface Serial1/1
 ip address 141.108.255.5 255.255.255.252
 clockrate 128000
!
router ospf 1
 redistribute connected subnets
 network 0.0.0.0 255.255.255.255 area 0
!
end
Example 8-67 displays R2's full working configuration.

Example 8-67. R2's Full Working Configuration

hostname R2
!
enable password cisco
!
ip subnet-zero
no ip domain-lookup
!
interface Serial1/0
 bandwidth 128
 ip address 141.108.255.2 255.255.255.252
 no ip mroute-cache
!
interface Serial1/1
 ip address 141.108.255.17 255.255.255.252
!
router eigrp 2
 redistribute ospf 1 metric 1500 2000 255 1 1500 route-map allowintoeigrp
 passive-interface Serial1/0
 network 141.108.0.0
 no auto-summary
!
router ospf 1
 summary-address 141.108.0.0 255.255.248.0
 redistribute eigrp 2 metric 100 subnets route-map allowintoospf
 redistribute eigrp 1
 network 141.108.255.2 0.0.0.0 area 0
access-list 1 deny   160.100.0.0 0.0.255.255
access-list 1 permit any
access-list 2 deny   141.108.0.0 0.0.7.255
access-list 2 deny   141.108.255.0 0.0.0.3
access-list 2 deny   141.108.255.4 0.0.0.3
access-list 2 permit any
route-map allowintoeigrp permit 10
 match ip address 1
!
route-map allowintoospf permit 10
 match ip address 2
!
end
Example 8-68 displays R3's full working configuration.

Example 8-68. R3's Full Working Configuration

hostname R3
!
enable password cisco
!
no ip domain-lookup
!
interface Serial0
 ip address 141.108.255.6 255.255.255.252
 bandwidth 125
!
interface Serial1
 ip address 141.108.255.13 255.255.255.252
 bandwidth 125
 clockrate 125000
!
router eigrp 1
 redistribute ospf 1 metric 1500 20000 255 1 1500 route-map allowintoeigrp
 passive-interface Serial0
 network 141.108.0.0
 no auto-summary
!
router ospf 1
 redistribute eigrp 1 metric 100 subnets route-map allowintoospf
 network 141.108.255.6 0.0.0.0 area 0
access-list 1 deny   160.100.0.0 0.0.255.255
access-list 1 permit any
access-list 2 deny   141.108.0.0 0.0.7.255
access-list 2 deny   141.108.255.0 0.0.0.3
access-list 2 deny   141.108.255.4 0.0.0.3
access-list 2 permit any
route-map allowintoeigrp permit 10
 match ip address 1
!
route-map allowintoospf permit 10
 match ip address 2
!
end
Example 8-69 displays R4's full working configuration.

Example 8-69. R4's Full Working Configuration

hostname R4
!
enable password cisco
!
interface Ethernet0
 ip address 160.100.1.1 255.255.128.0
!
interface Serial0
 bandwidth 125
 ip address 141.108.255.14 255.255.255.252
 ip summary-address eigrp 1 160.100.0.0 255.255.128.0 5
!
interface Serial1
 bandwidth 125
 ip address 141.108.255.21 255.255.255.252
 clockrate 125000
!
router eigrp 1
 redistribute eigrp 3
 passive-interface Serial1
 network 141.108.0.0
 network 160.100.0.0
 no auto-summary
!
router eigrp 3
 redistribute eigrp 1
 passive-interface Ethernet0
 passive-interface Serial0
 network 141.108.0.0
 no auto-summary
access-list 1 permit 160.100.0.0 0.0.127.255
access-list 2 permit 160.100.0.0 0.0.127.255
route-map allowtoR3 permit 10
 match ip address 1
!
route-map allowtoR5 permit 10
 match ip address 2
end
Example 8-70 displays R5's full working configuration.

Example 8-70. R5's Full Working Configuration

hostname R5
!
enable password cisco
interface Ethernet0
 ip address 160.100.128.1 255.255.128.0
!
interface Serial0
 ip address 141.108.255.18 255.255.255.252
 ip summary-address eigrp 2 160.100.128.0 255.255.128.0
 clockrate 125000
!
interface Serial1
 ip address 141.108.255.22 255.255.255.252
 no ip directed-broadcast
!
router eigrp 3
 redistribute eigrp 2
 passive-interface Ethernet0
 passive-interface Serial0
 network 141.108.0.0
 no auto-summary
!
router eigrp 2
 redistribute eigrp 3
 passive-interface Serial1
 network 141.108.0.0
 network 160.100.0.0
 no auto-summary
!
ip classless
!
end
Latest
Previous
Next Post »
yu