View
RIP view
Default level
2: System level
Parameters
ip-address: IP address of a RIP neighbor, in dotted decimal format.
Description
Use peer to specify the IP address of a neighbor in the non-broadcast multi-access (NBMA) network,
where routing updates destined for the peer are unicast, rather than multicast or broadcast.
Use undo peer to remove the IP address of a neighbor.
By default, no neighbor is specified.
You need not use the peer ip-address command when the neighbor is directly connected; otherwise the
neighbor may receive both the unicast and multicast (or broadcast) of the same routing information.
Examples
# Specify to send unicast updates to peer 202.38.165.1.
<Sysname> system-view
[Sysname] rip 1
[Sysname-rip-1] peer 202.38.165.1
preference
Syntax
preference [ route-policy route-policy-name ] value
undo preference [ route-policy ]
View
RIP view
Default level
2: System level
Parameters
route-policy-name: Routing policy name with 1 to 63 case-sensitive characters.
value: Preference for RIP routes, in the range of 1 to 255. The smaller the value, the higher the preference.
Description
Use preference to specify the preference for RIP routes.
Use undo preference to restore the default.
By default, the preference of RIP routes is 100.
You can specify a routing policy by using the keyword route-policy to set a preference for the matching
RIP routes.
The preference set by the routing policy applies to all matching RIP routes. The preference of other
•
routes is set by the preference command.
43