Delete all protocol-specific information from the global context and interface context and set all protocol
parameters to default values
switch(config)# no router rip
switch(rip)#
Enabling IP RIP on a VLAN
To enable RIP on all IP addresses in a VLAN, use
ip rip
in the VLAN context. When the command is entered
without specifying any IP address, it is enabled in all configured IP addresses of the VLAN.
To enable RIP on a specific IP address in a VLAN, use
ip rip [
ip-addr
| all]
in the VLAN context and
enter a specific IP address. If you want RIP enabled on all IP addresses, you can specify
all
in the command
instead of a specific IP address.
Configuring a RIP authentication key
Configures a RIP authentication key. There is a maximum of 16 characters.
Syntax:
[no] ip rip [
ip-addr
] authentication-key
key-string
NOTE:
When the switch is in enhanced secure mode, commands that take a secret key as a
parameter have the echo of the secret typing replaced with asterisks. The input for
key-string
is
prompted for interactively. For more information, see the
Access Security Guide
for your switch.
Changing the RIP type on a VLAN interface
When you enable RIP on a VLAN interface, RIPv2-only is enabled by default. You can change the RIP type to one
of the following on an individual VLAN interface basis:
• Version 1 only
• Version 2 only (the default)
• Version 1 - or - version 2
Syntax:
[no] ip rip [v1-only | v1-or-v2 | v2-only]
To change the RIP type supported on a VLAN interface, enter commands such as the following:
switch(config)# vlan 1
switch(vlan-1)# ip rip v1-only
switch(vlan-1)# exit
switch(config)# write memory
Changing the cost of routes learned on a VLAN interface
By default, the switch interface increases the cost of an RIP route that is learned on the interface. The switch
increases the cost by adding one to the route's metric before storing the route.
You can change the amount that an individual VLAN interface adds to the metric of RIP routes learned on the
interface.
Chapter 8 Routing Information Protocol (RIP)
171