Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Router RIP Problems

Status
Not open for further replies.

bgregorcy

MIS
Jan 9, 2003
10
US
Hello,

I am trying to set up a lab and I am running into problems. I am trying to set up three 2500 series routers back to back to back. Here's my config:

Router1:

e0 = 172.16.10.2 255.255.255.0
s0 = 172.16.20.1 255.255.255.0

Router2:

e0 = 172.16.30.1 255.255.255.0
s0 = 172.16.20.2 255.255.255.0
s1 = 172.16.40.1 255.255.255.0

Router3:

e0 = 172.16.50.1 255.255.255.0
s0 = 172.16.40.2 255.255.255.0


Also I turned off: no ip classless and no ip split-horizon.

When I do a sh ip route all I get is:
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.20.0 is directly connected, Serial0

I can't ping anything?

I pretty newb at this so it is probably something I overlooked. If anybody has any ideas it would be greatly appreciated.

b



 
Also I turned on debug ip rip and I get:

RIP: ignored v1 update from bad source 172.16.40.1 on Serial0.

This is on Router1, the other routers have similar messages.

b
 
did you specify network when you configured rip ?

I have seen this before.

give this a try

ROUTER>enable
ROUTER# config t
ROUTER(config)#router rip
ROUTER(config-router)#network 172.16.40.0

(repeat last command for each class c network)

regards,
Chris
 
I did, this is what I used:

(config)#router rip
(config-router)#network 172.16.0.0
(config-router)#^Z

I did this to all routers.

Thank you for your reply
 
I think that may be the problem.
With the 24 bit mask, you'll need to specify the network command for each network to the 3rd octet so that RIP can see all the networks.


Hope this helps.
 
Rip ver1 looks only the major network address .
If you cant ping try to configure the bandwidth of your serial interfaces.

e.g. bandwidth 56

CCNA
System/Network Administrator
 
Also if you have a DCE device configure the clock rate

e.g. clock rate 64000 CCNA
System/Network Administrator
 
Ok, I still can't get it to work but here is what I did:

turned off router rip and then turned it back on set it to the 3rd octet ie..

router rip
network 172.16.20.0

what I noticed is that when I did a sh run I got:
router rip
network 172.16.0.0

so its acting like it won't go to the 3rd octet.

Also, the clock rate is set to 64000 but I am not sure how to set the bandwidth. Is it something like:

int s0
ip address xxx.xxx.xxx.xxx
clock rate 64000
no shut

where would the bandwidth command be.

Thanks for the replies,

b




 
It's to do with classful v classless addressing, try having the command 'ip classless' in your config, if this doesn't work, use RIPv2 instead of RIPv1
 
Thanks for the help,

I still have not been able to get it to work. Here's what I have done.

1) I am clocking only the middle router. The DCE router.
2) I needed to reverse one of the cables. It was plugged in backwards.
3) I turned on ip classless.
4) All interfaces are no shut.

How do you use RIPv2?

Here is my config, if you see anything that should not be there please let me know.

{Odelay}
Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname odelay
!
enable secret 5 $1$tNAc$PMel4PQXYmbQFJXFac4/u1
!
!
interface Ethernet0
ip address 172.16.10.2 255.255.255.0
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 172.16.20.1 255.255.255.0
!

!
interface Serial1
ip address 172.16.60.1 255.255.255.0
!
router rip
network 172.16.0.0
!
ip classless
!
end
{Maddux}
Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname maddux
!
enable secret 5 $1$xgnu$gC.r0P0aD5SNrJjnAU.L20
!
!
interface Ethernet0
ip address 172.16.30.1 255.255.255.0
!
interface Serial0
ip address 172.16.20.2 255.255.255.0
clockrate 64000
!
interface Serial1
ip address 172.16.40.1 255.255.255.0
clockrate 64000

ip classless

end

{SAM}
Current configuration:
!
version 11.0
service udp-small-servers
service tcp-small-servers
!
hostname sam
!
enable secret 5 $1$mK4o$MkO4DOq3NXGzo4R2wXxLk1
!
!
interface Ethernet0
ip address 172.16.50.1 255.255.255.0
!
interface Serial0
ip address 172.16.40.2 255.255.255.0
!
interface Serial1
ip address 172.16.90.1 255.255.255.0
!
ip classless
!
end

 
Did you an encapsulation on the serial interface?

encap hdlc or encap ppp. When you show interface is the line down? Sh controllers s 0 is dce/dte on the correct interface?
 
Thanks for your reply,

When I do a sh int, it shows that the the serials ports are up and the line is up. But it does show that I have hdlc encapsulation turned on.

How do I turn that off?

And the dce/dte is on the correct interface if you mean that the middle router is the dce and the routers the two routers that connect to it are the dte.
 
I think should try to put version 2 at the rip. This might work.

Good luck,
Preeda
 
Someone else at another site also told me that. I am not sure exactly how to do it. Do you know of any links that show how to implement it?

Thank you
 
I turned off hdlc encapsulation and it still does not work.


boo
 
In your previous posts you stated you have turned off split horizon. Try turning it back on on each interface. Also chcek that "DCE" ends of serial cable are connected to ports configured with clock rate command. Putting RIP version 2 won't help you here, but if you want to use RIPv2, use command:
Router(config)# router rip
Router(config-router)# version 2
Then you have to do this on every router. Peter Mesjar
CCNA, A+ certified
pmesjar@centrum.sk
 
Thanks for the reply,

Here's what I have done:

I turned on split horizon on each interface.

I double checked to make sure that the "DCE" cable is connected to the middle router. The ports configured with the clock rate.

I also tried RIP version 2 and it did not work. I am posting my currect config from the three routers.

Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname odelay
!
enable secret 5 $1$tNAc$PMel4PQXYmbQFJXFac4/u1
!
!
interface Ethernet0
ip address 172.16.10.2 255.255.255.0
!
interface Ethernet1
no ip address
shutdown
!
interface Serial0
ip address 172.16.20.1 255.255.255.0
!
interface Serial1
ip address 172.16.60.1 255.255.255.0
!
router rip
network 172.16.0.0
!
ip classless
end




Current configuration:
!
version 11.2
no service password-encryption
no service udp-small-servers
no service tcp-small-servers
!
hostname maddux
!
enable secret 5 $1$xgnu$gC.r0P0aD5SNrJjnAU.L20
!
!
interface Ethernet0
ip address 172.16.30.1 255.255.255.0
!
interface Serial0
ip address 172.16.20.2 255.255.255.0
clockrate 64000
!
interface Serial1
ip address 172.16.40.1 255.255.255.0
clockrate 64000
!
router rip
network 172.16.0.0
!
ip classless
!
end




Current configuration:
!
version 11.0
service udp-small-servers
service tcp-small-servers
!
hostname sam
!
enable secret 5 $1$mK4o$MkO4DOq3NXGzo4R2wXxLk1
!
!
interface Ethernet0
ip address 172.16.50.1 255.255.255.0
!
interface Serial0
ip address 172.16.40.2 255.255.255.0
!
interface Serial1
ip address 172.16.90.1 255.255.255.0
!
router rip
network 172.16.0.0
!
ip classless
!
end




Thanks for all the responses, if anybody has any ideas they will be very appreciated.
 
RIP is a classful protocol.
Ip 172.16.90.1 is a class B address network. Rip will only use frist 2 octs. Rip is confused with the mask 255.255.255.0 = Class C address

Your 2 options are change ip to 172.16.90.1 255.255.0.0 or add:
ip classless
ip sub-net zero
commands

Then you will see your routes.
 
From the config you have posted, I was able to draw the network diagram. It is supposed to connect like this:
ODELAY S0---S0 MADDUX
S1 S1
\ /
\ /
S1 S0
SAM
ODELAY S0: 172.16.20.1
S1: 172.16.60.1 <- mismatch
SAM S1: 172.16.90.1 <- mismatch
S0: 172.16.40.2
MADDUX S1: 172.16.40.1
S0: 172.16.20.2
You have wrong IP address configured on router Sam, interface serial1 - 172.16.90.1, it should be 172.16.60.2 because Odelay's IP address for serial interface is 172.16.60.1. Or change IP address on Odelay's S1 interface to 172.16.90.2

Also we are dealing with routes here, can you post output of show ip route command? Peter Mesjar
CCNA, A+ certified
pmesjar@centrum.sk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top