Chapter 62 RIP Commands
Ethernet Switch CLI Reference Guide
252
62.3 Command Examples
This example:
• Enables RIP.
• Enters the IP routing domain
172.16.1.1
with subnet mask
255.255.255.0
.
• Sets the RIP direction in this routing domain to
Both
and the version to 2 with subnet
broadcasting (
v2b
); the Switch will send and receive RIP packets in this routing domain.
distance <10-255>
When two different routing protocols, such
as RIP and OSPF provide multiple routes
to the same destination, the Switch can use
the administrative distance of the route
source to determine which routing protocol
to use and add the route to the routing
table.
Sets the administrative distance (from 10 to
255) that is assigned to the routes learned
by RIP.
The lower the administrative distance value
is, the more preferable the routing protocol
is. If two routes have the same
administrative distance value, the Switch
uses the route that has the lowest metric
value.
Note: You cannot set two routing
protocols to have the same
administrative distance.
C
13
exit
Leaves the RIP configuration mode.
C
13
no router rip
Disables RIP on the Switch.
C
13
interface route-domain <
ip-address
>/<
mask-
bits
>
Enters the configuration mode for this
routing domain.
C
13
ip rip direction
<Outgoing|Incoming|Both|None> version
<v1|v2b|v2m>
Sets the RIP direction and version in this
routing domain.
C
13
Table 137
rip Command Summary (continued)
COMMAND
DESCRIPTION
M
P
sysname(config)# router rip
sysname(config-rip)# exit
sysname(config)# interface route-domain 172.16.1.1/24
sysname(config-if)# ip rip direction Both version v2b