Hirdetés

Új hozzászólás Aktív témák

  • FecoGee

    Topikgazda

    válasz zsolti.22 #1035 üzenetére

    Hello,

    a megoldás alább. R1 routing konfigja és a prefix-lista, route-map:

    !
    router eigrp 10
    redistribute ospf 10 route-map CCNP
    network 10.0.0.8 0.0.0.3
    network 10.0.0.12 0.0.0.3
    default-metric 1500 10 255 1 1500
    no auto-summary
    !
    router ospf 10
    log-adjacency-changes
    redistribute eigrp 10 subnets
    !
    !
    ip prefix-list CCNP seq 5 permit 192.168.1.0/24
    ip prefix-list CCNP seq 10 permit 192.168.3.0/24
    !
    !
    !
    route-map CCNP deny 10
    match ip address prefix-list CCNP
    !
    route-map CCNP permit 20

    R4 route-táblája

    R4#sh ip route eigrp
    172.16.0.0/24 is subnetted, 4 subnets
    D 172.16.4.0 [90/2809856] via 10.0.0.9, 00:01:45, Serial0/0
    D 172.16.3.0 [90/2809856] via 10.0.0.9, 00:01:45, Serial0/0
    D EX 192.168.4.0/24 [170/2221056] via 10.0.0.9, 00:01:45, Serial0/0
    10.0.0.0/30 is subnetted, 4 subnets
    D 10.0.0.12 [90/2681856] via 10.0.0.9, 00:01:45, Serial0/0
    D EX 10.0.0.0 [170/2221056] via 10.0.0.9, 00:01:45, Serial0/0
    D EX 10.0.0.4 [170/2221056] via 10.0.0.9, 00:01:45, Serial0/0
    D EX 192.168.2.0/24 [170/2221056] via 10.0.0.9, 00:01:45, Serial0/0

    Nincs ott a 192.168.1.0 és a 192.168.3.0

    Ha kiveszem redisztribúciónál a route-map-et áthirdeti azokat is, tehát működik:

    R1#conf t
    Enter configuration commands, one per line. End with CNTL/Z.
    R1(config)#router eigrp 10
    R1(config-router)#no red ospf 10
    R1(config-router)#red ospf 10
    R1(config-router)#^Z
    R1#
    *Mar 1 00:42:18.307: %SYS-5-CONFIG_I: Configured from console by consolec
    R1#clear ip eigrp 10 n
    R1#
    *Mar 1 00:42:23.047: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 10.0.0.10 (Serial0/0) is down: manually cleared
    *Mar 1 00:42:23.059: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 10.0.0.14 (Serial0/1) is down: manually cleared


    R4#
    *Mar 1 00:42:23.599: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 10.0.0.9 (Serial0/0) is up: new adjacency
    R4#sh ip route eigrp
    172.16.0.0/24 is subnetted, 4 subnets
    D 172.16.4.0 [90/2809856] via 10.0.0.9, 00:00:11, Serial0/0
    D 172.16.3.0 [90/2809856] via 10.0.0.9, 00:00:11, Serial0/0
    D EX 192.168.4.0/24 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0
    10.0.0.0/30 is subnetted, 4 subnets
    D 10.0.0.12 [90/2681856] via 10.0.0.9, 00:00:12, Serial0/0
    D EX 10.0.0.0 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0
    D EX 10.0.0.4 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0
    D EX 192.168.1.0/24 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0
    D EX 192.168.2.0/24 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0
    D EX 192.168.3.0/24 [170/2221056] via 10.0.0.9, 00:00:12, Serial0/0

Új hozzászólás Aktív témák