|
Steps
|
Command
|
Purpose
|
|
Enable RIP
|
rip> en
|
Enables a RIP routing process and places you into the RIP Enable mode.
|
|
Specify a list of networks for the Routing Information Protocol (RIP) routing process
|
rip# configure terminal
|
Enables the RIP configuration mode which places you in the Router Configuration mode and allows you to configure from the terminal.
|
|
rip(config)# router rip
|
Allows to configure RIP routing process
The router rip command is necessary to enable RIP. RIP must be enabled before carrying out any of the RIP commands.
|
|
rip(config-router)# no router rip
|
Disables a RIP routing process and places you into the Disable mode.
|
|
rip(config-router)# version 1
rip(config-router)# version 2
|
RIP can be configured to process either Version 1 or Version 2 packets. The default mode is Version 2. If no version is specified, then the RIP will be set to Version 2. If RIP is set to Version 1, the setting "Version 1" will be displayed, but the setting "Version 2" will not be displayed whether or not Version 2 is set explicitly as the version of RIP being used.
|
|
rip(config-router)# network network
This group of commands either enables or disables RIP interfaces between certain numbers of a specified network address.
For example, if the network for 10.0.0.0/24 is RIP enabled, this would result in all the addresses from 10.0.0.0 to 10.0.0.255 being enabled for RIP.
|
Enables RIP interfaces between specified network address.
RIP routing updates will be sent and received only through interfaces on this network.
Also, if the network of an interface is not specified, the interface will not be advertised in any RIP update.
The interfaces which have addresses matching with network are enabled.
|
|
rip(config-router)# no network network
|
The no network command will disable RIP for the specified network.
|
|
rip(config-router)# neighbor a.b.c.d
Specify RIP neighbor. When a neighbor does not understand multicast, this command is used to specify neighbors.
In some cases, all routers will not be able to understand multicasting and where packets are sent to a network or a group of addresses. In such a situation where a neighbor cannot process multicast packets, it is necessary to establish a direct link between routers.
|
The neighbor command allows the network administrator to specify a router as a RIP neighbor.
|
|
rip(config-router)# no neighbor a.b.c.d
|
The no neighbor a.b.c.d command will disable the RIP neighbor.
|
|
rip(config-router)# redistribute kernel
rip(config-router)# redistribute kernel metric <0-16>
rip(config-router)# redistribute kernel route-map route-map
|
Redistribute kernel redistributes routing information from kernel route entries into the RIP tables.
|
|
rip(config-router)# no redistribute kernel
|
no redistribute kernel disables the routes.
|
|
rip(config-router)# redistribute static
rip(config-router)# redistribute static metric <0-16>
rip(config-router)# redistribute static route-map route-map
|
Redistribute static redistributes routing information from static route entries into the RIP tables.
|
|
rip(config-router)# no redistribute static
|
no redistribute static disables the routes.
|
|
rip(config-router)# redistribute connected
rip(config-router)# redistribute connected metric <0-16>
rip(config-router)# redistribute connected route-map route-map
|
Redistribute connected routes into the RIP tables. The connected route on RIP enabled interface is announced by default.
|
|
rip(config-router)# no redistribute connected
|
no redistribute connected disables the connected routes in the RIP tables. This command redistribute connected of the interface which RIP disabled.
|
|
rip(config-router)# redistribute ospf
rip(config-router)# redistribute connected metric <0-16>
rip(config-router)# redistribute connected route-map route-map
|
Redistribute ospf redistributes routing information from ospf route entries into the RIP tables.
|
|
rip(config-router)# no redistribute connected
|
no redistribute ospf disables the routes
|
|
rip(config-router)# redistribute bgp
rip(config-router)# redistribute connected metric <0-16>
rip(config-router)# redistribute connected route-map route-map
|
Redistribute bgp redistributes routing information from bgp route entries into the RIP tables.
|
|
rip(config-router)# no redistribute connected
|
no redistribute bgp disables the routes.
|
|
Configure Authentication
|
To set authentication mode as text and set the authentication string
rip(configure)# interface ifname
rip(configure-if)# ip rip authentication mode {text [string]}
For example,
rip(configure)# interface A
rip(configure-if)# ip rip authentication mode text
rip(configure-if)# ip rip authentication string teststring
To set authentication mode as MD5 and set the authentication string
rip(configure)# interface ifname
rip(configure-if)# ip rip authentication mode {md5 [key-chain name of key chain]}
For example,
rip(configure)# interface A
rip(configure-if)# ip rip authentication mode md5 key-chain testkeychain
|
Defines authentication mode for the each interface. By, default, authentication is on for all the interfaces. If authentication is not required for any of the interface, it is to be explicitly disabled.
RIP Version 1 does not support authentication.
RIP Version 2 supports Clear Text (simple password) or Keyed Message Digest 5 (MD5) authentication.
To enable authentication for RIP Version 2 packets and to specify the set of keys that can be used on an interface, use the ip rip authentication key-chain command in interface configuration mode.
If authentication is not required for any of the interface, use the no form of this command.
|
|
rip(config-router)# write
|
Writes the configuration to the device. We need to provide this statement after the configuration changes have been done, so as to write the configuration to the device.
Execute ‘exit’ command to return to the previous mode.
|
|
Show RIP Information
|
rip# show running-config
|
Shows the current configuration saved to the device.
|
|
RIP Debug Commands
|
rip# show ip rip status
|
Shows all the RIP information
|
|
rip# debug rip events
|
Debugging RIP events
|
|
rip# debug rip packet
|
Debugging RIP packets
|
|
rip# terminal monitor
|
Monitor the debug logs on telnet window.
|
|
rip# no debug rip events
|
Disable the debugging of RIP events
|
|
rip# no debug rip packets
|
Disable the debugging of RIP packets.
|