Archive for the ‘Ripv2’ Category

Ripv2 Conf.

May 10, 2009

Here We are Again lol, cuz i`m taking the 640-802 i would like to Post all my configurations Regarding CCNA (Ripv2,EIGRP,OSPF,Frame relay,NAT,Access-list,PPP,ISDN, etc ), So i can Have a Reference and Summary of what i did and what i know and need to remenber, I`ll begin with Ripv2 Basic Conf.

Setting Up Ripv2.

configuring Passive Interface.

Configuring Rip Authentication.

Configuring Ripv2 Behavior ( sending and reciving Version on Interfaces ).

i Think That is all, if i found there is something Missing ill post it or Edit this Entry.

Ill be Using 2 Cisco 2621 with 64mb each, running IOS c2600-i-mz.123-26.

The Topology is as Follows.

Networks are As Follow.

Network A on Lan 1 R0 = 10.10.10.0/24

Network B on lan 2 R0 = 172.16.0.0/16

Network C on lan 1 R1 = 192.168.100.0/24

Basic Configuration on R0.

Router>enable

Router#configure terminal

Router(config)#hostname R0

R0(config)#enable secret cisco

R0(config)#service password-encryption

R0(config)#line console 0

R0(config-line)#password cisco

R0(config-line)#login

R0(config-line)#logging syn

R0(config-line)#exec-timeout 2 0

R0(config-line)#line vty 0 15

R0(config-line)#password cisco

R0(config-line)#login

R0(config-line)#logging syn

R0(config-line)#exec-timeout 2 0

R0(config-line)#exit

R0(config)#interface s0/0

R0(config-if)#clockrate 64000

R0(config-if)#bandwidth 1500

R0(config-if)#ip add 192.168.1.1 255.255.255.252

R0(config-if)#no shut

R0(config-if)#exit

R0(config)#interface f0/0

R0(config-if)#description Network A

R0(config-if)#speed 100

R0(config-if)#duplex full

!Duplex and Speed commands should also be set on the end point of the connention.

R0(config-if)#ip add 10.10.10.1 255.255.255.0

R0(config-if)#no shut

R0(config-if)#exit

R0(config)#interface f0/1

R0(config-if)#description Network B

R0(config-if)#speed 100

R0(config-if)#duplex full

R0(config-if)#ip add 172.16.0.1 255.255.0.0

R0(config-if)#no shut

R0(config-if)#exit

Basic Configuration on R1.

Router>enable

Router#configure terminal

Router(config)#hostname R1

R1(config)#enable secret cisco

R1(config)#service password-encryption

R1(config)#line console 0

R1(config-line)#password cisco

R1(config-line)# login

R1(config-line)#logging syn

R1(config-line)#exec-timeout 2 0

R1(config-line)#line vty 0 15

R1(config-line)#password cisco

R1(config-line)#login

R1(config-line)#logging syn

R1(config-line)#exec-timeout 2 0

R1(config-line)#exit

R1(config)#interface s0/0

R1(config-if)#bandwidth 1500

R1(config-if)#ip add 192.168.1.2 255.255.255.252

R1(config-if)#no shut

R1(config-if)#exit

R1(config)#interface f0/0

R1(config-if)#description Network C

R1(config-if)#speed 100

R1(config-if)#duplex full

!Duplex and Speed commands should also be set on the end point of the connention.

R1(config-if)#ip add 192.168.100.1 255.255.255.0

R1(config-if)#no shut

R1(config-if)#exit

Setting Up Ripv2 in R0.

R0(config)#router rip

R0(config-router)#version 2

R0(config-router)#network 192.168.1.0 ! Serial network

R0(config-router)#network 10.10.10.0 ! Network A

R0(config-router)#network 172.16.0.0 ! Network B

R0(config-router)#exit

If you issue a Show ip protocols with this already set up you should see Rip process and the interfaces involved in the Routing Proccess.

Setting Up Ripv2 in R1.

R1(config)#router rip

R1(config-router)#version 2

R1(config-router)#network 192.168.1.0 ! Serial network

R1(config-router)#network 192.168.100.0 ! Network C

R1(config-router)#exit

NOTE: There is something importan to Point Out Here, in this Configuration we are setting up everything with the auto-summary commands. If you have another Sumary Squeme you should use the no auto-summary command on the (config-router) mode.

Also You can Issue debug ip rip commands (databse,events,triggers) to diagnosticated Route Exchanging. to see Rip learned Routes issue a show ip route rip.

Configuring Passive interface.

A passive interface is a interface that does not send Routing information but still recives Updates.

Sending Updates on non Neihbor Routers INterfaces may present a security issue, as sending Routing info to a internet Connention,and lots of more scenarios could present a security HOle.

Configuring Passive interface on R0 Network A and B.

R0(config)#router rip

R0(config-router)#passive-interface f0/0

R0(config-router)#passive-interface f1/0

R0(config-router)#exit

Note: that is one way to set Up passive interface. the other way is show next on R1.

Configuring passive interface on R1 Network C.

R1(config)#router rip

R1(config-router)#passive-interface default ! This will set Up all interfaces in passive mode.

R1(config-router)#no passive-interface s0/0 ! Activating S0/0 interface.

Thats it all set up. You can issue a show ip protocols to see Passive interfaces and Routing participating Interfaces.

Configuring Rip Authentication on R0.


If you need to authenticate Routing Updates packets between rip Routers you need to First of all define a Key-chain then define the Authentication Mode.

R0(config)#key-chain rip ! rip is the name. you could use what you want.

R0(config-keychain)#key 1 ! define a key number ( you can have lots of key for others issues and protocols ).

R0(config-keychain-key)#key-string ripv2 ! defining the key string.

R0(config-keychain-key)#exit

R0(config-keychain)exit

R0(config)#interface s0/0

R0(config-if)ip rip authentication key-chain rip

R0(config-if)#ip rip authentication mode md5

R0(config-if)#exit

Note: if yo activate debug ip rip. you should see an output that says “ignored v2 packet from 192.168.1.2 (invalid authentication)” this is because we havent set up authentication on R1.

Configuring Rip Authentication on R1.

R1(config)#key-chain rip

R1(config-keychain)#key 1

R1(config-keychain-key)#key-string ripv2

R1(config-keychain-key)#exit

R1(config-keychain)exit

R1(config)#interface s0/0

R1(config-if)ip rip authentication key-chain rip

R1(config-if)#ip rip authentication mode md5

R1(config-if)#exit

Configuring Ripv2 Behavior on R0.

Well as you may have noted we are using Ripv2. But what if the peering Router Only accepts ripv1 packets ( Forgetting the Classful issues) we can Make R0 to send ripv1 and recive ripv1 packets.

R0(config)#interface s0/0

R0(config-if)#ip rip send version 1 ! you can also configured it to send both packets.

R0(config-if)#ip rip revice version 1 2 ! reciving v1 and v2 packets.

This Stuff is Optional to the working squeme of the topplogy and i only post it as reference for Remenber.!

Ok Everything is set Up, we have configured Ripv2 , set up passive interfaces, configure authentication between Rip Routers, and modified packets Reciving and SENDING stuff, everything should be working now. Use Ping and the other Troubleshooting Tools to check out for Issues in case there is a problem, Or post it on the comments ( if someone Ever Read this ) remenber this is a reference for me so maybe ill never answer but i`ll do my best.


Follow

Get every new post delivered to your Inbox.