Ciao a tutti,
ho un problema con una simulazione nell 'uso di rip. Uso il packet tracert per simulare il comportamento dei router. Ho preso il caso (semplicissimo) dal testo cisco. 2 router con 2 interfacce ethernet collegati tra di loro.
r1 fastehternet0/0 ip 172.16.4.251 collegata con fastehternet0/0 del router r2
r1 fastehternet0/1 ip 10.1.1.251 collegato a pc singolo
r2 fastehternet0/0 ip 172.16.4.252 collegata con fastehternet0/0 del router r1
r2 fastehternet0/1 ip 172.22.3.252 collegato a pc singolo
Ora quando voglio configurare rip versione 2 per esempio (ma credo qui basterebbe anche quello versione 1)
scrivo sul router r1:
router rip
versione 2
network 10.1.1.251
network 172.16.4.251
però il problema è che quando faccio lo show ip route rip non c'è proprio...e come se sbagliassi qualcosa...
stesso comportamento se scrivo
router rip
network 10.0.0.0
network 172.16.0.0
grazie!!!
and
problema con rip
Moderatore: Federico.Lagni
-
- Cisco power user
- Messaggi: 86
- Iscritto il: sab 16 ago , 2008 4:59 pm
forse bisogna togliere l'auto-summary?
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
cosa non c'e' piu'? incollerresti uno sh ip route per piacere? il version 2 l'hai dato anche sull'altro neighbor?
nel tuo caso l'auto-summary puo' rimanere.
ciao
nel tuo caso l'auto-summary puo' rimanere.
ciao
-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
eccolo:
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.4.0 is directly connected, FastEthernet0/0
r2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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, 1 subnets
C 172.16.4.0 is directly connected, FastEthernet0/0
172.22.0.0/24 is subnetted, 1 subnets
C 172.22.3.0 is directly connected, FastEthernet0/1
Probabilemnte poichè sto imparando tutto ora (però mi piace molto) sbaglio qualche cosa io...
grazie a tutti
and
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
10.0.0.0/24 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, FastEthernet0/1
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.4.0 is directly connected, FastEthernet0/0
r2#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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, 1 subnets
C 172.16.4.0 is directly connected, FastEthernet0/0
172.22.0.0/24 is subnetted, 1 subnets
C 172.22.3.0 is directly connected, FastEthernet0/1
Probabilemnte poichè sto imparando tutto ora (però mi piace molto) sbaglio qualche cosa io...
grazie a tutti
and
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
le due reti dietro ai router si pingano? m'incolli anche le config per piacere?
ciao
ciao
-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
Ecco tutte le info che ho raccolto. Sicuramente se ho sbagliato qualcosa dallo show running salta fuori.
Grazie
and
PC1 collegato a r2 pinga normalmente il gateway
(fastehternet0/1 del router r2)
PC>ipconfig
IP Address......................: 172.22.3.253
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 172.22.3.252
PC>ping 172.22.3.252
Pinging 172.22.3.252 with 32 bytes of data:
Reply from 172.22.3.252: bytes=32 time=62ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Ping statistics for 172.22.3.252:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 62ms, Average = 38ms
r2#show running-config
Building configuration...
Current configuration : 434 bytes
!
version 12.4
no service password-encryption
!
hostname r2
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 172.16.4.252 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.22.3.252 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
network 172.16.0.0
network 172.22.0.0
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
PC2 collegato a r1 pinga normalmente il gateway
(fastehternet0/1 del router r1)
PC>ipconfig
IP Address......................: 10.1.1.252
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 10.1.1.251
PC>ping 10.1.1.251
Pinging 10.1.1.251 with 32 bytes of data:
Reply from 10.1.1.251: bytes=32 time=63ms TTL=255
Reply from 10.1.1.251: bytes=32 time=32ms TTL=255
Reply from 10.1.1.251: bytes=32 time=32ms TTL=255
Reply from 10.1.1.251: bytes=32 time=31ms TTL=255
Ping statistics for 10.1.1.251:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 63ms, Average = 39ms
R1#show running-config
Building configuration...
Current configuration : 430 bytes
!
version 12.4
no service password-encryption
!
hostname R1
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 172.16.4.251 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.1.1.251 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 172.16.0.0
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
Grazie
and
PC1 collegato a r2 pinga normalmente il gateway
(fastehternet0/1 del router r2)
PC>ipconfig
IP Address......................: 172.22.3.253
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 172.22.3.252
PC>ping 172.22.3.252
Pinging 172.22.3.252 with 32 bytes of data:
Reply from 172.22.3.252: bytes=32 time=62ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Reply from 172.22.3.252: bytes=32 time=31ms TTL=255
Ping statistics for 172.22.3.252:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 62ms, Average = 38ms
r2#show running-config
Building configuration...
Current configuration : 434 bytes
!
version 12.4
no service password-encryption
!
hostname r2
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 172.16.4.252 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 172.22.3.252 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
network 172.16.0.0
network 172.22.0.0
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
PC2 collegato a r1 pinga normalmente il gateway
(fastehternet0/1 del router r1)
PC>ipconfig
IP Address......................: 10.1.1.252
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 10.1.1.251
PC>ping 10.1.1.251
Pinging 10.1.1.251 with 32 bytes of data:
Reply from 10.1.1.251: bytes=32 time=63ms TTL=255
Reply from 10.1.1.251: bytes=32 time=32ms TTL=255
Reply from 10.1.1.251: bytes=32 time=32ms TTL=255
Reply from 10.1.1.251: bytes=32 time=31ms TTL=255
Ping statistics for 10.1.1.251:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 31ms, Maximum = 63ms, Average = 39ms
R1#show running-config
Building configuration...
Current configuration : 430 bytes
!
version 12.4
no service password-encryption
!
hostname R1
!
!
!
!
!
ip ssh version 1
!
!
interface FastEthernet0/0
ip address 172.16.4.251 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
ip address 10.1.1.251 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
router rip
network 10.0.0.0
network 172.16.0.0
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
attiva il version 2 sui due router..
vediamo un attimo che succede
ciao!
vediamo un attimo che succede
ciao!
-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
Funziona!!!
senza mettere la versione 2 ho rifatto tutto prima di girarti le configurazioni e ora funziona. Non so cosa sbagliavo, però forse c'è solo da aspattare...
In questo caso comunque mi funziona indifferentemente la versione 1 o 2 perchè tutta la rete ha la stessa subnet (classe C) giusto?
grazie
and
senza mettere la versione 2 ho rifatto tutto prima di girarti le configurazioni e ora funziona. Non so cosa sbagliavo, però forse c'è solo da aspattare...
In questo caso comunque mi funziona indifferentemente la versione 1 o 2 perchè tutta la rete ha la stessa subnet (classe C) giusto?
grazie
and
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
forse non aspettavi il tempo degli annunci.. 
cmq, la version 1 supporta solo la SM a 255.255.255.0 (presuppone che tutti i router usino tale mask), ecco perche' non hai problemi

cmq, la version 1 supporta solo la SM a 255.255.255.0 (presuppone che tutti i router usino tale mask), ecco perche' non hai problemi

-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
Ma credo di aver capito cosa avevo dimenticato.
In un post precedente mi avevi chiesto se avevo configurato rip su tutti i router. In effetti non lo avevo fatto su uno....
Comunque grazie mille per l'interessamento e la disponbilità
Ciao
and
In un post precedente mi avevi chiesto se avevo configurato rip su tutti i router. In effetti non lo avevo fatto su uno....
Comunque grazie mille per l'interessamento e la disponbilità
Ciao
and
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
beh si, i routing protocol devono essere abilitati su tutti i router che devono partecipare agli annunci 

-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
ti chiedo un ultima info. Ieri ho provato a replicare tutto anche a casa (sempre con Packet tracert) ed tutto ok.
Tutta la mia rete di simulazione ha subnet /30. Ho messo rip (normale non versione 2) e funziona tutto. Io però avevo capito che rip v. 1 è un protocollo classful cioè funziona solo con le subnet tradizionali ( classi A, B, C) mentre rip v. 2 supporta anche maschere VLSM.
Ora però la rete che ho costruito ha una maschera non tradizionale /30 eppure con rip funziona perfettamente.
Forse in realtà la differenza tra rip 1 e rip 2 è che il primo non supporta maschere miste, ossia se nella mia rete avessi reti con subnet /30 e per esempio /20 sarei obbligato ad usare rip2 oppure OSPF o altri. Ti sembra corretto?
grazie
and
Tutta la mia rete di simulazione ha subnet /30. Ho messo rip (normale non versione 2) e funziona tutto. Io però avevo capito che rip v. 1 è un protocollo classful cioè funziona solo con le subnet tradizionali ( classi A, B, C) mentre rip v. 2 supporta anche maschere VLSM.
Ora però la rete che ho costruito ha una maschera non tradizionale /30 eppure con rip funziona perfettamente.
Forse in realtà la differenza tra rip 1 e rip 2 è che il primo non supporta maschere miste, ossia se nella mia rete avessi reti con subnet /30 e per esempio /20 sarei obbligato ad usare rip2 oppure OSPF o altri. Ti sembra corretto?
grazie
and
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
puoi postare un show ip route ? (come al solito
)
e' probabile che ti faccia gli annunci in /24 ma i link /30 fra i router funzionino perche' tutti gli ip sono compresi appunto nella 24 bit...
ciao

e' probabile che ti faccia gli annunci in /24 ma i link /30 fra i router funzionino perche' tutti gli ip sono compresi appunto nella 24 bit...
ciao
-
- Cisco fan
- Messaggi: 33
- Iscritto il: gio 27 mar , 2008 12:00 pm
in pratica ha messo 3 router collegati tra di loro molto semplicemente.
ecco gli show ip route dei 3 router. Tutta la rete è nella subnet /30.
grazieee
and
r1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
R 172.16.0.0/16 [120/1] via 200.0.0.1, 00:00:25, FastEthernet0/0
200.0.0.0/30 is subnetted, 1 subnets
C 200.0.0.0 is directly connected, FastEthernet0/0
--------------------------------------------------------------------
r2#sho ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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/30 is subnetted, 2 subnets
R 172.16.1.0 [120/1] via 172.16.100.2, 00:00:17, FastEthernet0/1
C 172.16.100.0 is directly connected, FastEthernet0/1
200.0.0.0/30 is subnetted, 1 subnets
C 200.0.0.0 is directly connected, FastEthernet0/0
--------------------------------------------------------------------
r3#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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/30 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet1/0
C 172.16.100.0 is directly connected, FastEthernet0/0
R 200.0.0.0/24 [120/1] via 172.16.100.1, 00:00:22, FastEthernet0/0
ecco gli show ip route dei 3 router. Tutta la rete è nella subnet /30.
grazieee
and
r1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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
R 172.16.0.0/16 [120/1] via 200.0.0.1, 00:00:25, FastEthernet0/0
200.0.0.0/30 is subnetted, 1 subnets
C 200.0.0.0 is directly connected, FastEthernet0/0
--------------------------------------------------------------------
r2#sho ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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/30 is subnetted, 2 subnets
R 172.16.1.0 [120/1] via 172.16.100.2, 00:00:17, FastEthernet0/1
C 172.16.100.0 is directly connected, FastEthernet0/1
200.0.0.0/30 is subnetted, 1 subnets
C 200.0.0.0 is directly connected, FastEthernet0/0
--------------------------------------------------------------------
r3#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
i - IS-IS, 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/30 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet1/0
C 172.16.100.0 is directly connected, FastEthernet0/0
R 200.0.0.0/24 [120/1] via 172.16.100.1, 00:00:22, FastEthernet0/0
-
- Messianic Network master
- Messaggi: 1159
- Iscritto il: dom 11 mar , 2007 2:23 pm
- Località: Termoli
eheh, se noti nello sh ip route del R3 (come anche negli altri due) le /30 le vedi solo quando sono locali (directly connected) ma quando le annuncia lo fa in /24 o /16 a seconda della classe di appartenenza 
ciao!

ciao!