Hirdetés

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

  • FecoGee

    Topikgazda

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

    Na megírom a megoldást mert lassan alszom, hosszú volt az éjszaka, csörgött a telefon párszor :) , és nem kizárt hogy ma éjszaka is így lenne.

    R4 route táblája:

    EIGRP_2#sh ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    172.16.0.0/24 is subnetted, 4 subnets
    C 172.16.4.0 is directly connected, Loopback1
    D 172.16.1.0 [90/2809856] via 10.0.0.14, 00:00:33, Serial0/1
    D 172.16.2.0 [90/2809856] via 10.0.0.14, 00:00:33, Serial0/1
    C 172.16.3.0 is directly connected, Loopback0
    10.0.0.0/30 is subnetted, 4 subnets
    D 10.0.0.8 [90/2681856] via 10.0.0.14, 00:00:43, Serial0/1
    C 10.0.0.12 is directly connected, Serial0/1
    D EX 10.0.0.0 [170/2229760] via 10.0.0.14, 00:00:43, Serial0/1
    D EX 10.0.0.4 [170/2229760] via 10.0.0.14, 00:00:48, Serial0/1

    Látszik hogy egy 192.168.x.x-es route sincs benne.

    R2 route táblája:

    ASBR#sh ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    172.16.0.0/24 is subnetted, 4 subnets
    D 172.16.4.0 [90/2297856] via 10.0.0.13, 00:00:59, Serial0/1
    D 172.16.1.0 [90/2297856] via 10.0.0.9, 00:00:48, Serial0/0
    D 172.16.2.0 [90/2297856] via 10.0.0.9, 00:00:48, Serial0/0
    D 172.16.3.0 [90/2297856] via 10.0.0.13, 00:00:59, Serial0/1
    192.168.4.0/32 is subnetted, 1 subnets
    O 192.168.4.1 [110/11] via 10.0.0.5, 00:00:03, FastEthernet0/1
    10.0.0.0/30 is subnetted, 4 subnets
    C 10.0.0.8 is directly connected, Serial0/0
    C 10.0.0.12 is directly connected, Serial0/1
    C 10.0.0.0 is directly connected, FastEthernet0/0
    C 10.0.0.4 is directly connected, FastEthernet0/1
    192.168.1.0/32 is subnetted, 1 subnets
    O 192.168.1.1 [110/11] via 10.0.0.1, 00:00:16, FastEthernet0/0
    192.168.2.0/32 is subnetted, 1 subnets
    O 192.168.2.1 [110/11] via 10.0.0.1, 00:00:16, FastEthernet0/0
    192.168.3.0/32 is subnetted, 1 subnets
    O 192.168.3.1 [110/11] via 10.0.0.5, 00:00:06, FastEthernet0/1

    Ebből a lényeg:

    192.168.4.0/32 is subnetted, 1 subnets
    O 192.168.4.1 [110/11] via 10.0.0.5, 00:00:03, FastEthernet0/1

    192.168.1.0/32 is subnetted, 1 subnets
    O 192.168.1.1 [110/11] via 10.0.0.1, 00:00:16, FastEthernet0/0
    192.168.2.0/32 is subnetted, 1 subnets
    O 192.168.2.1 [110/11] via 10.0.0.1, 00:00:16, FastEthernet0/0
    192.168.3.0/32 is subnetted, 1 subnets
    O 192.168.3.1 [110/11] via 10.0.0.5, 00:00:06, FastEthernet0/1

    /32-vel látja a subneteket. Miért? Mert az OSPF a loopback interface-kre saját type-t használ, amit /32-vel hirdet be. És mivel a redisztribúció a route-táblából történik, ezért a /24-es prefix lista bejegyzéseid nem érvényesülnek, hiszen /32-vel vannak ott.
    A megoldás a loopback interface-k OSPF type-jának átállítása.

    OSPF_1(config)#int ra lo0 - 1
    OSPF_1(config-if-range)#ip ospf net po
    OSPF_1(config-if-range)#ip ospf net point-to-p
    OSPF_1(config-if-range)#^Z
    OSPF_1#clear ip ospf 10 p
    Reset OSPF process? [no]: y
    OSPF_1#
    *Mar 1 00:06:10.443: %OSPF-5-ADJCHG: Process 10, Nbr 10.0.0.14 on FastEthernet0/0 from FULL to DOWN, Neighbor Down: Interface down or detached
    *Mar 1 00:06:11.463: %OSPF-5-ADJCHG: Process 10, Nbr 10.0.0.14 on FastEthernet0/0 from LOADING to FULL, Loading Done

    És már látszik is R4-en a két subnet.

    EIGRP_2#sh ip route
    Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2
    i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
    ia - IS-IS inter area, * - candidate default, U - per-user static route
    o - ODR, P - periodic downloaded static route

    Gateway of last resort is not set

    172.16.0.0/24 is subnetted, 4 subnets
    C 172.16.4.0 is directly connected, Loopback1
    D 172.16.1.0 [90/2809856] via 10.0.0.14, 00:06:19, Serial0/1
    D 172.16.2.0 [90/2809856] via 10.0.0.14, 00:06:19, Serial0/1
    C 172.16.3.0 is directly connected, Loopback0
    192.168.4.0/24 is subnetted, 1 subnets
    D EX 192.168.4.0 [170/2229760] via 10.0.0.14, 00:00:13, Serial0/1
    10.0.0.0/30 is subnetted, 4 subnets
    D 10.0.0.8 [90/2681856] via 10.0.0.14, 00:06:29, Serial0/1
    C 10.0.0.12 is directly connected, Serial0/1
    D EX 10.0.0.0 [170/2229760] via 10.0.0.14, 00:06:33, Serial0/1
    D EX 10.0.0.4 [170/2229760] via 10.0.0.14, 00:06:33, Serial0/1
    D EX 192.168.2.0/24 [170/2229760] via 10.0.0.14, 00:01:16, Serial0/1

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