Auto-summary na RIP-v2

Pytania dt. certyfikacji CCNA i CCDA
Wiadomość
Autor
r3solved
wannabe
wannabe
Posty: 136
Rejestracja: 31 sie 2012, 11:26

Auto-summary na RIP-v2

#1

#1 Post autor: r3solved »

Witam wszystkich,
...podczas labowania napotkałem na problem związany z auto-summary. Zacznijmy od tego, że labuje na RIP-v2 ponieważ jako protokół bezklasowy ma możliwość wyłączenia automatycznego podsumowania tras. A więc do rzeczy, czy po włączeniu auto-summary na routerze powinien podsumować mi trasy (na tym właśnie routerze) do granic klasowych, czy rozsyła on tylko podsumowane trasy i dopiero router sąsiedni widzi trasę po podsumowaniu? Topologia R1 --- R2 --- R3. R2 natomiast prawidłowo podsumował trasy 10.0.0.0/8 i 192.168.2.0/24.

Przykład z mojego routerka labowego R1:

Kod: Zaznacz cały

  172.16.0.0/24 is subnetted, 4 subnets
C       172.16.4.0 is directly connected, Loopback164
C       172.16.5.0 is directly connected, Loopback165
R       172.16.2.0 [120/1] via 172.16.3.1, 00:00:23, FastEthernet0/0
C       172.16.3.0 is directly connected, FastEthernet0/0
R    192.168.4.0/24 [120/1] via 172.16.3.1, 00:00:23, FastEthernet0/0
R    192.168.5.0/24 [120/1] via 172.16.3.1, 00:00:23, FastEthernet0/0
     10.0.0.0/8 is variably subnetted, 5 subnets, 2 masks
R       10.2.1.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.2.2.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.0.0.0/8 [120/1] via 172.16.3.1, 00:00:25, FastEthernet0/0
C       10.3.5.0/24 is directly connected, Loopback35
C       10.3.4.0/24 is directly connected, Loopback34
     192.168.2.0/24 is variably subnetted, 3 subnets, 2 masks
R       192.168.2.32/28 [120/2] via 172.16.3.1, 00:02:46, FastEthernet0/0
C       192.168.2.0/24 is directly connected, Loopback1682
R       192.168.2.16/28 [120/2] via 172.16.3.1, 00:02:46, FastEthernet0/0
C    192.168.3.0/24 is directly connected, Loopback1683
R3#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            172.16.3.2      YES manual up                    up
Loopback34                 10.3.4.1        YES manual up                    up
Loopback35                 10.3.5.1        YES manual up                    up
Loopback164                172.16.4.1      YES manual up                    up
Loopback165                172.16.5.1      YES manual up                    up
Loopback1682               192.168.2.1     YES manual up                    up
Loopback1683               192.168.3.1     YES manual up                    up
...dlaczego przykładowo poniższe trasy nie zostały podsumowane do 10.0.0.0/8?

Kod: Zaznacz cały

R       10.2.1.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.2.2.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.0.0.0/8 [120/1] via 172.16.3.1, 00:00:25, FastEthernet0/0
C       10.3.5.0/24 is directly connected, Loopback35
C       10.3.4.0/24 is directly connected, Loopback34
...R2:

Kod: Zaznacz cały

     172.16.0.0/24 is subnetted, 4 subnets
R       172.16.4.0 [120/1] via 172.16.3.2, 00:00:18, FastEthernet1/0
R       172.16.5.0 [120/1] via 172.16.3.2, 00:00:18, FastEthernet1/0
C       172.16.2.0 is directly connected, FastEthernet0/0
C       172.16.3.0 is directly connected, FastEthernet1/0
R    192.168.4.0/24 [120/1] via 172.16.2.2, 00:00:13, FastEthernet0/0
R    192.168.5.0/24 [120/1] via 172.16.2.2, 00:00:13, FastEthernet0/0
R    10.0.0.0/8 [120/1] via 172.16.3.2, 00:00:18, FastEthernet1/0
                [120/1] via 172.16.2.2, 00:00:14, FastEthernet0/0
R    192.168.2.0/24 [120/1] via 172.16.3.2, 00:00:19, FastEthernet1/0
                    [120/1] via 172.16.2.2, 00:00:14, FastEthernet0/0
R    192.168.3.0/24 [120/1] via 172.16.3.2, 00:00:19, FastEthernet1/0
R2#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            172.16.2.1      YES manual up                    up
FastEthernet1/0            172.16.3.1      YES manual up                    up
...R3:

Kod: Zaznacz cały

     172.16.0.0/24 is subnetted, 4 subnets
C       172.16.4.0 is directly connected, Loopback164
C       172.16.5.0 is directly connected, Loopback165
R       172.16.2.0 [120/1] via 172.16.3.1, 00:00:00, FastEthernet0/0
C       172.16.3.0 is directly connected, FastEthernet0/0
R    192.168.4.0/24 [120/1] via 172.16.3.1, 00:00:00, FastEthernet0/0
R    192.168.5.0/24 [120/1] via 172.16.3.1, 00:00:00, FastEthernet0/0
     10.0.0.0/24 is subnetted, 2 subnets
C       10.3.5.0 is directly connected, Loopback35
C       10.3.4.0 is directly connected, Loopback34
C    192.168.2.0/24 is directly connected, Loopback1682
C    192.168.3.0/24 is directly connected, Loopback1683
R3#show ip INT BRIEF
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            172.16.3.2      YES manual up                    up
Loopback34                 10.3.4.1        YES manual up                    up
Loopback35                 10.3.5.1        YES manual up                    up
Loopback164                172.16.4.1      YES manual up                    up
Loopback165                172.16.5.1      YES manual up                    up
Loopback1682               192.168.2.1     YES manual up                    up
Loopback1683               192.168.3.1     YES manual up                    up
Pozdrawiam :)

Awatar użytkownika
frontier
wannabe
wannabe
Posty: 1861
Rejestracja: 16 lis 2004, 13:55
Lokalizacja: Edinburgh

#2

#2 Post autor: frontier »

Poczytaj sobie dwie rzeczy:

1. Kiedy router usuwa trase nauczona przez RIP
2. Jak wyglada pakiet RIP w wersji 1 i 2
Jeden konfig wart więcej niż tysiąc słów

Awatar użytkownika
japek
wannabe
wannabe
Posty: 54
Rejestracja: 02 sie 2009, 20:34

#3

#3 Post autor: japek »

Pdsumuje dopiero to co przekazuje dalej, czyli router sąsiedni otrzyma podsumowanie.

Zomal
wannabe
wannabe
Posty: 240
Rejestracja: 11 cze 2012, 23:02
Kontakt:

Re: Auto-summary na RIP-v2

#4

#4 Post autor: Zomal »

r3solved pisze:

...dlaczego przykładowo poniższe trasy nie zostały podsumowane do 10.0.0.0/8?

Kod: Zaznacz cały

R       10.2.1.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.2.2.0/24 [120/2] via 172.16.3.1, 00:02:44, FastEthernet0/0
R       10.0.0.0/8 [120/1] via 172.16.3.1, 00:00:25, FastEthernet0/0
C       10.3.5.0/24 is directly connected, Loopback35
C       10.3.4.0/24 is directly connected, Loopback34
Pomyśl na chłopską logikę, co by się stało jakbyśmy protokołem routingu moglibyśmy modyfikować wpisy do tras, z którymi jesteśmy bezpośrednio połączeni?
Podsumowałoby do trasy 10.0.0.0/8, a ten sam wpis już jest w tablicy routingu, i pakiet raz wychodziłby na zewnątrz a raz był przetwarzany przez router....

Directly Connected mają zawsze odległość administracyjną równą 0, nie można tego zmienić tak jak w przypadku choćby tras statycznych (AD = 1).

r3solved
wannabe
wannabe
Posty: 136
Rejestracja: 31 sie 2012, 11:26

#5

#5 Post autor: r3solved »

...wasze wskazówki bardzo pomogły, dzięki wszystkim i każdemu z osobna :)

ODPOWIEDZ