Using RIP v2 between two routers

Hello.

I am having difficulty getting RIP to work between 2 routers and I was hoping one of you could help. Here is my setup:

Router 1: Cisco 851

------------------------------- FastEthernet4 - Vlan1 - 192.168.1.1/24 10.0.0.1/8 (secondary) 192.168.2.1/24 (secondary)

RIP v2 enabled to advertise 192.168.1.0

R1#show 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 76.121.56.1 to network 0.0.0.0

x.0.0.0/32 is subnetted, 1 subnets S x.x.x.x[254/0] via x.x.x.x, FastEthernet4 x.0.0.0/22 is subnetted, 1 subnets C x.x.x.x is directly connected, FastEthernet4 C 10.0.0.0/8 is directly connected, Vlan1 C 192.168.1.0/24 is directly connected, Vlan1 C 192.168.2.0/24 is directly connected, Vlan1 S* 0.0.0.0/0 [254/0] via 76.121.56.1

Router 2: Cisco 871

------------------------------- FastEthernet4 - 192.168.3.1/24 Vlan1 - 192.168.2.2/24

RIP v2 enabled to advertise 192.168.3.0

The problem is that neither of the routers routing tables shows the advertised routes. I double-checked to make sure RIP was enabled and the proper classful subnet is advertised - and they are - but the routing tables don't show and RIP routes.

R2#show 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

C 192.168.2.0/24 is directly connected, Vlan1 C 192.168.3.0/24 is directly connected, FastEthernet4

Questions:

1) Can I even do this using VLAN1 as the interface? 2) What else do I need to get this working so that R1 has a route to the 192.168.3.0 subnet and R2 has a route to 192.168.1.0?

Thanks!

--Paul

Reply to
Paul
Loading thread data ...

You have something configured wrong on one or both routers. If you post the configs of both routers, someone will be able to fix it.

Reply to
Thrill5

Thrill5 is correct that you should post sanitised configs.

I am assuming that the two Vlan1s are connected together.

I did though look in some detail at what you have posted and I suspect that you will (possibly among other things) need to re-evaluate your addressing plan.

I am not sure of the precise behaviour but I use the model that secondary addresses do not take part in any routing protocols.

I would guess that R1 is ignoring the RIP advertisments received from 192.168.2.2 and that R2 is ignoring the advertsments received from 192.168.1.1.

R1 will ONLY send RIP advertisments from its main address on each enabled interface.

I would guess that if you put the primary addresses of each Vlan1 interface on the same network then it might all spring to life.

Reply to
bod43

I read an article that states secondary addresses should be able to particpate in RIP broadcasts here -->

formatting link
Anyway, here is the config for each router:

R1

-- Current configuration : 5690 bytes !

version 12.4 no service pad service tcp-keepalives-in service tcp-keepalives-out service timestamps debug datetime msec localtime show-timezone service timestamps log datetime msec localtime show-timezone service password-encryption service sequence-numbers ! hostname R1 ! boot-start-marker boot-end-marker ! logging buffered 51200 debugging logging console critical enable secret 5 $1$NoMo$kiXQ8IFaCaApyWj9U73n61 ! no aaa new-model ! resource policy ! clock timezone PCTime -8 clock summer-time PCTime date Apr 6 2003 2:00 Oct 26 2003 2:00 ip subnet-zero no ip source-route ! ! ip cef ip tcp synwait-time 10 no ip bootp server ip ssh time-out 60 ip ssh authentication-retries 2 ! ! crypto pki trustpoint TP-self-signed-317866788 enrollment selfsigned subject-name cn=IOS-Self-Signed-Certificate-317866788 revocation-check none rsakeypair TP-self-signed-317866788 ! !

quit ! no spanning-tree vlan 1 username xxxxx privilege 15 secret 5 ! ! interface Null0 no ip unreachables ! interface FastEthernet0 duplex full speed 100 ! interface FastEthernet1 duplex full speed 100 spanning-tree portfast ! interface FastEthernet2 duplex full speed 100 ! interface FastEthernet3 duplex full speed 100 ! interface FastEthernet4 description $ES_WAN$$FW_OUTSIDE$ ip address dhcp client-id FastEthernet4 no ip redirects no ip unreachables no ip proxy-arp ip nat outside ip virtual-reassembly ip route-cache flow duplex auto speed auto no cdp enable ! interface Vlan1 description $ETH-SW-LAUNCH$$INTF-INFO-HWIC 4ESW$$ES_LAN$$FW_INSIDE$ ip address 10.0.0.1 255.0.0.0 secondary ip address 192.168.2.1 255.255.255.0 secondary ip address 192.168.1.1 255.255.255.0 no ip redirects no ip unreachables no ip proxy-arp ip nat inside ip virtual-reassembly ip route-cache flow ip tcp adjust-mss 1452 ! router rip version 2 network 192.168.1.0 ! ip classless ip flow-top-talkers top 5 sort-by bytes ! ip http server ip http access-class 2 ip http authentication local ip http secure-server ip http timeout-policy idle 60 life 86400 requests 10000

logging trap debugging

no cdp run ! control-plane ! banner login ^CAuthorized access only! Disconnect IMMEDIATELY if you are not an authorized user!^C ! line con 0 login local no modem enable transport output telnet line aux 0 logging synchronous login local transport output telnet line vty 0 privilege level 15 logging synchronous login local transport input telnet ssh line vty 1 2 privilege level 15 logging synchronous login local transport input ssh line vty 3 4 privilege level 15 login local transport input ssh ! scheduler max-task-time 5000 scheduler allocate 4000 1000 scheduler interval 500 ntp clock-period 17174943r end

R2

Reply to
Paul

Cabling-Design.com Forums website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.