]>
Commit | Line | Data |
---|---|---|
0efdf0fe | 1 | .. _rip: |
42fc5d26 QY |
2 | |
3 | *** | |
4 | RIP | |
5 | *** | |
6 | ||
7 | RIP -- Routing Information Protocol is widely deployed interior gateway | |
c1a54c05 QY |
8 | protocol. RIP was developed in the 1970s at Xerox Labs as part of the |
9 | XNS routing protocol. RIP is a :term:`distance-vector` protocol and is | |
10 | based on the :term:`Bellman-Ford` algorithms. As a distance-vector | |
42fc5d26 | 11 | protocol, RIP router send updates to its neighbors periodically, thus |
c1a54c05 | 12 | allowing the convergence to a known topology. In each update, the |
d1e7591e | 13 | distance to any given network will be broadcast to its neighboring |
42fc5d26 QY |
14 | router. |
15 | ||
16 | *ripd* supports RIP version 2 as described in RFC2453 and RIP | |
17 | version 1 as described in RFC1058. | |
18 | ||
0efdf0fe | 19 | .. _starting-and-stopping-ripd: |
42fc5d26 QY |
20 | |
21 | Starting and Stopping ripd | |
22 | ========================== | |
23 | ||
c1a54c05 QY |
24 | The default configuration file name of *ripd*'s is :file:`ripd.conf`. When |
25 | invocation *ripd* searches directory |INSTALL_PREFIX_ETC|. If :file:`ripd.conf` | |
26 | is not there next search current directory. | |
42fc5d26 | 27 | |
c1a54c05 QY |
28 | RIP uses UDP port 520 to send and receive RIP packets. So the user must have |
29 | the capability to bind the port, generally this means that the user must have | |
30 | superuser privileges. RIP protocol requires interface information maintained by | |
31 | *zebra* daemon. So running *zebra* is mandatory to run *ripd*. Thus minimum | |
32 | sequence for running RIP is like below: | |
42fc5d26 QY |
33 | |
34 | :: | |
35 | ||
42fc5d26 QY |
36 | # zebra -d |
37 | # ripd -d | |
a8c90e15 | 38 | |
42fc5d26 QY |
39 | |
40 | Please note that *zebra* must be invoked before *ripd*. | |
41 | ||
c1a54c05 | 42 | To stop *ripd*. Please use:: |
0416ce1c | 43 | |
44 | kill `cat /var/run/frr/ripd.pid` | |
c1a54c05 | 45 | |
d1e7591e | 46 | Certain signals have special meanings to *ripd*. |
42fc5d26 | 47 | |
07a17e6d QY |
48 | +-------------+------------------------------------------------------+ |
49 | | Signal | Action | | |
50 | +=============+======================================================+ | |
51 | | ``SIGHUP`` | Reload configuration file :file:`ripd.conf`. | | |
52 | | | All configurations are reset. All routes learned | | |
53 | | | so far are cleared and removed from routing table. | | |
54 | +-------------+------------------------------------------------------+ | |
55 | | ``SIGUSR1`` | Rotate the *ripd* logfile. | | |
56 | +-------------+------------------------------------------------------+ | |
57 | | ``SIGINT`` | | | |
58 | | ``SIGTERM`` | Sweep all installed routes and gracefully terminate. | | |
59 | +-------------+------------------------------------------------------+ | |
42fc5d26 | 60 | |
c1a54c05 | 61 | *ripd* invocation options. Common options that can be specified |
0efdf0fe | 62 | (:ref:`common-invocation-options`). |
42fc5d26 | 63 | |
42fc5d26 | 64 | |
0efdf0fe | 65 | .. _rip-netmask: |
42fc5d26 QY |
66 | |
67 | RIP netmask | |
68 | ----------- | |
69 | ||
c1a54c05 QY |
70 | The netmask features of *ripd* support both version 1 and version 2 of RIP. |
71 | Version 1 of RIP originally contained no netmask information. In RIP version 1, | |
72 | network classes were originally used to determine the size of the netmask. | |
73 | Class A networks use 8 bits of mask, Class B networks use 16 bits of masks, | |
74 | while Class C networks use 24 bits of mask. Today, the most widely used method | |
75 | of a network mask is assigned to the packet on the basis of the interface that | |
76 | received the packet. Version 2 of RIP supports a variable length subnet mask | |
77 | (VLSM). By extending the subnet mask, the mask can be divided and reused. Each | |
78 | subnet can be used for different purposes such as large to middle size LANs and | |
79 | WAN links. FRR *ripd* does not support the non-sequential netmasks that are | |
80 | included in RIP Version 2. | |
81 | ||
82 | In a case of similar information with the same prefix and metric, the old | |
83 | information will be suppressed. Ripd does not currently support equal cost | |
84 | multipath routing. | |
42fc5d26 | 85 | |
0efdf0fe | 86 | .. _rip-configuration: |
42fc5d26 QY |
87 | |
88 | RIP Configuration | |
89 | ================= | |
90 | ||
c1a54c05 | 91 | .. clicmd:: router rip |
42fc5d26 | 92 | |
c1a54c05 QY |
93 | The `router rip` command is necessary to enable RIP. To disable RIP, use the |
94 | `no router rip` command. RIP must be enabled before carrying out any of the | |
95 | RIP commands. | |
42fc5d26 | 96 | |
c1a54c05 | 97 | .. clicmd:: network NETWORK |
42fc5d26 | 98 | |
42fc5d26 | 99 | |
c1a54c05 QY |
100 | Set the RIP enable interface by NETWORK. The interfaces which have addresses |
101 | matching with NETWORK are enabled. | |
42fc5d26 | 102 | |
c1a54c05 QY |
103 | This group of commands either enables or disables RIP interfaces between |
104 | certain numbers of a specified network address. For example, if the network | |
105 | for 10.0.0.0/24 is RIP enabled, this would result in all the addresses from | |
106 | 10.0.0.0 to 10.0.0.255 being enabled for RIP. The `no network` command will | |
107 | disable RIP for the specified network. | |
42fc5d26 | 108 | |
c1a54c05 | 109 | .. clicmd:: network IFNAME |
42fc5d26 | 110 | |
42fc5d26 | 111 | |
c1a54c05 QY |
112 | Set a RIP enabled interface by IFNAME. Both the sending and |
113 | receiving of RIP packets will be enabled on the port specified in the | |
114 | `network ifname` command. The `no network ifname` command will disable | |
115 | RIP on the specified interface. | |
42fc5d26 | 116 | |
c1a54c05 | 117 | .. clicmd:: neighbor A.B.C.D |
42fc5d26 | 118 | |
42fc5d26 | 119 | |
cdbf7b0d B |
120 | Specify a RIP neighbor to send updates to. This is required when a neighbor |
121 | is connected via a network that does not support multicast, or when it is | |
122 | desired to statically define a neighbor. RIP updates will be sent via unicast | |
123 | to each neighbour. Neighbour updates are in addition to any multicast updates | |
124 | sent when an interface is not in passive mode (see the `passive-interface` | |
125 | command). RIP will continue to process updates received from both the | |
126 | neighbor and any received via multicast. The `no neighbor a.b.c.d` command | |
127 | will disable the RIP neighbor. | |
42fc5d26 | 128 | |
c1a54c05 QY |
129 | Below is very simple RIP configuration. Interface `eth0` and interface which |
130 | address match to `10.0.0.0/8` are RIP enabled. | |
a8c90e15 | 131 | |
9eb95b3b | 132 | .. code-block:: frr |
42fc5d26 | 133 | |
c1a54c05 QY |
134 | ! |
135 | router rip | |
136 | network 10.0.0.0/8 | |
137 | network eth0 | |
138 | ! | |
42fc5d26 | 139 | |
42fc5d26 | 140 | |
c1a54c05 | 141 | .. clicmd:: passive-interface (IFNAME|default) |
42fc5d26 | 142 | |
42fc5d26 | 143 | |
c1a54c05 QY |
144 | This command sets the specified interface to passive mode. On passive mode |
145 | interface, all receiving packets are processed as normal and ripd does not | |
146 | send either multicast or unicast RIP packets except to RIP neighbors | |
147 | specified with `neighbor` command. The interface may be specified as | |
148 | `default` to make ripd default to passive on all interfaces. | |
42fc5d26 | 149 | |
c1a54c05 | 150 | The default is to be passive on all interfaces. |
42fc5d26 | 151 | |
c1a54c05 | 152 | .. clicmd:: ip split-horizon |
42fc5d26 | 153 | |
42fc5d26 | 154 | |
c1a54c05 QY |
155 | Control split-horizon on the interface. Default is `ip split-horizon`. If |
156 | you don't perform split-horizon on the interface, please specify `no ip | |
157 | split-horizon`. | |
42fc5d26 | 158 | |
0efdf0fe | 159 | .. _rip-version-control: |
42fc5d26 QY |
160 | |
161 | RIP Version Control | |
162 | =================== | |
163 | ||
c1a54c05 QY |
164 | RIP can be configured to send either Version 1 or Version 2 packets. The |
165 | default is to send RIPv2 while accepting both RIPv1 and RIPv2 (and replying | |
166 | with packets of the appropriate version for REQUESTS / triggered updates). The | |
d1e7591e QY |
167 | version to receive and send can be specified globally, and further overridden on |
168 | a per-interface basis if needs be for send and receive separately (see below). | |
42fc5d26 | 169 | |
c1a54c05 QY |
170 | It is important to note that RIPv1 cannot be authenticated. Further, if RIPv1 |
171 | is enabled then RIP will reply to REQUEST packets, sending the state of its RIP | |
172 | routing table to any remote routers that ask on demand. For a more detailed | |
0efdf0fe | 173 | discussion on the security implications of RIPv1 see :ref:`rip-authentication`. |
42fc5d26 | 174 | |
c1a54c05 | 175 | .. clicmd:: version VERSION |
42fc5d26 | 176 | |
c1a54c05 QY |
177 | Set RIP version to accept for reads and send. ``VERSION`` can be either 1 or |
178 | 1. | |
42fc5d26 | 179 | |
c1a54c05 | 180 | Disabling RIPv1 by specifying version 2 is STRONGLY encouraged, |
0efdf0fe | 181 | :ref:`rip-authentication`. This may become the default in a future release. |
42fc5d26 | 182 | |
c1a54c05 | 183 | Default: Send Version 2, and accept either version. |
42fc5d26 | 184 | |
c1a54c05 | 185 | .. clicmd:: ip rip send version VERSION |
42fc5d26 | 186 | |
c1a54c05 | 187 | VERSION can be ``1``, ``2``, or ``1 2``. |
42fc5d26 | 188 | |
c1a54c05 QY |
189 | This interface command overrides the global rip version setting, and selects |
190 | which version of RIP to send packets with, for this interface specifically. | |
191 | Choice of RIP Version 1, RIP Version 2, or both versions. In the latter | |
192 | case, where ``1 2`` is specified, packets will be both broadcast and | |
193 | multicast. | |
42fc5d26 | 194 | |
c1a54c05 | 195 | Default: Send packets according to the global version (version 2) |
42fc5d26 | 196 | |
c1a54c05 | 197 | .. clicmd:: ip rip receive version VERSION |
42fc5d26 | 198 | |
c1a54c05 | 199 | VERSION can be ``1``, ``2``, or ``1 2``. |
42fc5d26 | 200 | |
c1a54c05 QY |
201 | This interface command overrides the global rip version setting, and selects |
202 | which versions of RIP packets will be accepted on this interface. Choice of | |
203 | RIP Version 1, RIP Version 2, or both. | |
42fc5d26 | 204 | |
c1a54c05 | 205 | Default: Accept packets according to the global setting (both 1 and 2). |
42fc5d26 | 206 | |
1e31580f | 207 | |
0efdf0fe | 208 | .. _how-to-announce-rip-route: |
42fc5d26 QY |
209 | |
210 | How to Announce RIP route | |
211 | ========================= | |
212 | ||
1e31580f | 213 | .. clicmd:: redistribute <babel|bgp|connected|eigrp|isis|kernel|openfabric|ospf|sharp|static|table> [metric (0-16)] [route-map WORD] |
42fc5d26 | 214 | |
1e31580f | 215 | Redistribute routes from other sources into RIP. |
42fc5d26 | 216 | |
1e31580f | 217 | If you want to specify RIP only static routes: |
42fc5d26 | 218 | |
c1a54c05 | 219 | .. clicmd:: default-information originate |
42fc5d26 | 220 | |
c1a54c05 | 221 | .. clicmd:: route A.B.C.D/M |
42fc5d26 | 222 | |
42fc5d26 | 223 | |
c1a54c05 QY |
224 | This command is specific to FRR. The `route` command makes a static route |
225 | only inside RIP. This command should be used only by advanced users who are | |
226 | particularly knowledgeable about the RIP protocol. In most cases, we | |
227 | recommend creating a static route in FRR and redistributing it in RIP using | |
228 | `redistribute static`. | |
42fc5d26 | 229 | |
0efdf0fe | 230 | .. _filtering-rip-routes: |
42fc5d26 QY |
231 | |
232 | Filtering RIP Routes | |
233 | ==================== | |
234 | ||
235 | RIP routes can be filtered by a distribute-list. | |
236 | ||
8a7be4dd | 237 | .. clicmd:: distribute-list [prefix] LIST <in|out> IFNAME |
42fc5d26 | 238 | |
c1a54c05 | 239 | You can apply access lists to the interface with a `distribute-list` command. |
8a7be4dd DS |
240 | If prefix is specified LIST is a prefix-list. If prefix is not specified |
241 | then LIST is the access list name. `in` specifies packets being received, | |
242 | and `out` specifies outgoing packets. Finally if an interface is specified | |
243 | it will be applied against a specific interface. | |
42fc5d26 | 244 | |
c1a54c05 QY |
245 | The `distribute-list` command can be used to filter the RIP path. |
246 | `distribute-list` can apply access-lists to a chosen interface. First, one | |
247 | should specify the access-list. Next, the name of the access-list is used in | |
248 | the distribute-list command. For example, in the following configuration | |
249 | ``eth0`` will permit only the paths that match the route 10.0.0.0/8 | |
42fc5d26 | 250 | |
9eb95b3b | 251 | .. code-block:: frr |
42fc5d26 | 252 | |
c1a54c05 QY |
253 | ! |
254 | router rip | |
255 | distribute-list private in eth0 | |
256 | ! | |
257 | access-list private permit 10 10.0.0.0/8 | |
258 | access-list private deny any | |
259 | ! | |
a8c90e15 | 260 | |
42fc5d26 | 261 | |
c1a54c05 | 262 | `distribute-list` can be applied to both incoming and outgoing data. |
42fc5d26 | 263 | |
0efdf0fe | 264 | .. _rip-metric-manipulation: |
42fc5d26 QY |
265 | |
266 | RIP Metric Manipulation | |
267 | ======================= | |
268 | ||
c1a54c05 | 269 | RIP metric is a value for distance for the network. Usually |
42fc5d26 | 270 | *ripd* increment the metric when the network information is |
c1a54c05 | 271 | received. Redistributed routes' metric is set to 1. |
42fc5d26 | 272 | |
c1a54c05 | 273 | .. clicmd:: default-metric (1-16) |
42fc5d26 | 274 | |
42fc5d26 | 275 | |
c1a54c05 QY |
276 | This command modifies the default metric value for redistributed routes. |
277 | The default value is 1. This command does not affect connected route even if | |
278 | it is redistributed by *redistribute connected*. To modify connected route's | |
279 | metric value, please use ``redistribute connected metric`` or *route-map*. | |
280 | *offset-list* also affects connected routes. | |
42fc5d26 | 281 | |
c1a54c05 | 282 | .. clicmd:: offset-list ACCESS-LIST (in|out) |
42fc5d26 | 283 | |
c1a54c05 | 284 | .. clicmd:: offset-list ACCESS-LIST (in|out) IFNAME |
42fc5d26 | 285 | |
42fc5d26 | 286 | |
0efdf0fe | 287 | .. _rip-distance: |
42fc5d26 QY |
288 | |
289 | RIP distance | |
290 | ============ | |
291 | ||
c1a54c05 | 292 | Distance value is used in zebra daemon. Default RIP distance is 120. |
42fc5d26 | 293 | |
c1a54c05 | 294 | .. clicmd:: distance (1-255) |
42fc5d26 | 295 | |
42fc5d26 | 296 | |
c1a54c05 | 297 | Set default RIP distance to specified value. |
42fc5d26 | 298 | |
c1a54c05 | 299 | .. clicmd:: distance (1-255) A.B.C.D/M |
42fc5d26 | 300 | |
42fc5d26 | 301 | |
c1a54c05 QY |
302 | Set default RIP distance to specified value when the route's source IP |
303 | address matches the specified prefix. | |
42fc5d26 | 304 | |
c1a54c05 | 305 | .. clicmd:: distance (1-255) A.B.C.D/M ACCESS-LIST |
42fc5d26 | 306 | |
42fc5d26 | 307 | |
c1a54c05 QY |
308 | Set default RIP distance to specified value when the route's source IP |
309 | address matches the specified prefix and the specified access-list. | |
42fc5d26 | 310 | |
11ab5329 | 311 | .. _rip-route-map: |
42fc5d26 QY |
312 | |
313 | RIP route-map | |
314 | ============= | |
315 | ||
316 | Usage of *ripd*'s route-map support. | |
317 | ||
318 | Optional argument route-map MAP_NAME can be added to each `redistribute` | |
319 | statement. | |
320 | ||
9eb95b3b | 321 | .. code-block:: frr |
42fc5d26 | 322 | |
9eb95b3b QY |
323 | redistribute static [route-map MAP_NAME] |
324 | redistribute connected [route-map MAP_NAME] | |
325 | ..... | |
42fc5d26 | 326 | |
a8c90e15 | 327 | |
c1a54c05 QY |
328 | Cisco applies route-map _before_ routes will exported to rip route table. In |
329 | current FRR's test implementation, *ripd* applies route-map after routes are | |
330 | listed in the route table and before routes will be announced to an interface | |
331 | (something like output filter). I think it is not so clear, but it is draft and | |
332 | it may be changed at future. | |
42fc5d26 | 333 | |
0efdf0fe | 334 | Route-map statement (:ref:`route-map`) is needed to use route-map |
42fc5d26 QY |
335 | functionality. |
336 | ||
c1a54c05 | 337 | .. clicmd:: match interface WORD |
42fc5d26 | 338 | |
c1a54c05 QY |
339 | This command match to incoming interface. Notation of this match is |
340 | different from Cisco. Cisco uses a list of interfaces - NAME1 NAME2 ... | |
341 | NAMEN. Ripd allows only one name (maybe will change in the future). Next - | |
342 | Cisco means interface which includes next-hop of routes (it is somewhat | |
343 | similar to "ip next-hop" statement). Ripd means interface where this route | |
344 | will be sent. This difference is because "next-hop" of same routes which | |
345 | sends to different interfaces must be different. Maybe it'd be better to | |
346 | made new matches - say "match interface-out NAME" or something like that. | |
42fc5d26 | 347 | |
c1a54c05 | 348 | .. clicmd:: match ip address WORD |
42fc5d26 | 349 | |
c1a54c05 | 350 | .. clicmd:: match ip address prefix-list WORD |
42fc5d26 | 351 | |
c1a54c05 | 352 | Match if route destination is permitted by access-list. |
42fc5d26 | 353 | |
c1a54c05 | 354 | .. clicmd:: match ip next-hop WORD |
42fc5d26 | 355 | |
c1a54c05 | 356 | .. clicmd:: match ip next-hop prefix-list WORD |
42fc5d26 | 357 | |
c1a54c05 QY |
358 | Match if route next-hop (meaning next-hop listed in the rip route-table as |
359 | displayed by "show ip rip") is permitted by access-list. | |
42fc5d26 | 360 | |
c1a54c05 | 361 | .. clicmd:: match metric (0-4294967295) |
42fc5d26 | 362 | |
c1a54c05 QY |
363 | This command match to the metric value of RIP updates. For other protocol |
364 | compatibility metric range is shown as (0-4294967295). But for RIP protocol | |
365 | only the value range (0-16) make sense. | |
42fc5d26 | 366 | |
c1a54c05 | 367 | .. clicmd:: set ip next-hop A.B.C.D |
42fc5d26 | 368 | |
c1a54c05 QY |
369 | This command set next hop value in RIPv2 protocol. This command does not |
370 | affect RIPv1 because there is no next hop field in the packet. | |
42fc5d26 | 371 | |
c1a54c05 | 372 | .. clicmd:: set metric (0-4294967295) |
42fc5d26 | 373 | |
c1a54c05 QY |
374 | Set a metric for matched route when sending announcement. The metric value |
375 | range is very large for compatibility with other protocols. For RIP, valid | |
376 | metric values are from 1 to 16. | |
42fc5d26 | 377 | |
0efdf0fe | 378 | .. _rip-authentication: |
42fc5d26 QY |
379 | |
380 | RIP Authentication | |
381 | ================== | |
382 | ||
383 | RIPv2 allows packets to be authenticated via either an insecure plain | |
384 | text password, included with the packet, or via a more secure MD5 based | |
d50b2aa0 | 385 | :abbr:`HMAC (keyed-Hashing for Message AuthentiCation)`, |
42fc5d26 QY |
386 | RIPv1 can not be authenticated at all, thus when authentication is |
387 | configured `ripd` will discard routing updates received via RIPv1 | |
388 | packets. | |
389 | ||
a8c90e15 | 390 | However, unless RIPv1 reception is disabled entirely, |
0efdf0fe | 391 | :ref:`rip-version-control`, RIPv1 REQUEST packets which are received, |
42fc5d26 | 392 | which query the router for routing information, will still be honoured |
a8c90e15 | 393 | by `ripd`, and `ripd` WILL reply to such packets. This allows |
42fc5d26 QY |
394 | `ripd` to honour such REQUESTs (which sometimes is used by old |
395 | equipment and very simple devices to bootstrap their default route), | |
396 | while still providing security for route updates which are received. | |
397 | ||
398 | In short: Enabling authentication prevents routes being updated by | |
399 | unauthenticated remote routers, but still can allow routes (I.e. the | |
400 | entire RIP routing table) to be queried remotely, potentially by anyone | |
401 | on the internet, via RIPv1. | |
402 | ||
403 | To prevent such unauthenticated querying of routes disable RIPv1, | |
0efdf0fe | 404 | :ref:`rip-version-control`. |
42fc5d26 | 405 | |
c1a54c05 | 406 | .. clicmd:: ip rip authentication mode md5 |
42fc5d26 | 407 | |
42fc5d26 | 408 | |
c1a54c05 | 409 | Set the interface with RIPv2 MD5 authentication. |
42fc5d26 | 410 | |
c1a54c05 | 411 | .. clicmd:: ip rip authentication mode text |
42fc5d26 | 412 | |
42fc5d26 | 413 | |
c1a54c05 | 414 | Set the interface with RIPv2 simple password authentication. |
42fc5d26 | 415 | |
c1a54c05 | 416 | .. clicmd:: ip rip authentication string STRING |
42fc5d26 | 417 | |
42fc5d26 | 418 | |
c1a54c05 QY |
419 | RIP version 2 has simple text authentication. This command sets |
420 | authentication string. The string must be shorter than 16 characters. | |
42fc5d26 | 421 | |
c1a54c05 | 422 | .. clicmd:: ip rip authentication key-chain KEY-CHAIN |
42fc5d26 | 423 | |
42fc5d26 | 424 | |
d1e7591e | 425 | Specify Keyed MD5 chain. |
42fc5d26 | 426 | |
9eb95b3b | 427 | .. code-block:: frr |
42fc5d26 | 428 | |
9eb95b3b QY |
429 | ! |
430 | key chain test | |
431 | key 1 | |
432 | key-string test | |
433 | ! | |
434 | interface eth1 | |
435 | ip rip authentication mode md5 | |
436 | ip rip authentication key-chain test | |
437 | ! | |
a8c90e15 | 438 | |
42fc5d26 | 439 | |
0efdf0fe | 440 | .. _rip-timers: |
42fc5d26 QY |
441 | |
442 | RIP Timers | |
443 | ========== | |
444 | ||
c1a54c05 | 445 | .. clicmd:: timers basic UPDATE TIMEOUT GARBAGE |
42fc5d26 | 446 | |
42fc5d26 | 447 | |
c1a54c05 QY |
448 | RIP protocol has several timers. User can configure those timers' values |
449 | by `timers basic` command. | |
42fc5d26 | 450 | |
c1a54c05 | 451 | The default settings for the timers are as follows: |
42fc5d26 | 452 | |
c1a54c05 QY |
453 | - The update timer is 30 seconds. Every update timer seconds, the RIP |
454 | process is awakened to send an unsolicited Response message containing | |
455 | the complete routing table to all neighboring RIP routers. | |
456 | - The timeout timer is 180 seconds. Upon expiration of the timeout, the | |
457 | route is no longer valid; however, it is retained in the routing table | |
458 | for a short time so that neighbors can be notified that the route has | |
459 | been dropped. | |
460 | - The garbage collect timer is 120 seconds. Upon expiration of the | |
461 | garbage-collection timer, the route is finally removed from the routing | |
462 | table. | |
42fc5d26 | 463 | |
c1a54c05 QY |
464 | The ``timers basic`` command allows the the default values of the timers |
465 | listed above to be changed. | |
42fc5d26 | 466 | |
42fc5d26 | 467 | |
0efdf0fe | 468 | .. _show-rip-information: |
42fc5d26 QY |
469 | |
470 | Show RIP Information | |
471 | ==================== | |
472 | ||
473 | To display RIP routes. | |
474 | ||
c1a54c05 | 475 | .. clicmd:: show ip rip |
42fc5d26 | 476 | |
c1a54c05 | 477 | Show RIP routes. |
42fc5d26 QY |
478 | |
479 | The command displays all RIP routes. For routes that are received | |
480 | through RIP, this command will display the time the packet was sent and | |
c1a54c05 | 481 | the tag information. This command will also display this information |
42fc5d26 QY |
482 | for routes redistributed into RIP. |
483 | ||
c1a54c05 | 484 | .. clicmd:: show ip rip status |
42fc5d26 | 485 | |
c1a54c05 | 486 | The command displays current RIP status. It includes RIP timer, |
d1e7591e | 487 | filtering, version, RIP enabled interface and RIP peer information. |
42fc5d26 QY |
488 | |
489 | :: | |
490 | ||
c1a54c05 QY |
491 | ripd> **show ip rip status** |
492 | Routing Protocol is "rip" | |
493 | Sending updates every 30 seconds with +/-50%, next due in 35 seconds | |
494 | Timeout after 180 seconds, garbage collect after 120 seconds | |
495 | Outgoing update filter list for all interface is not set | |
496 | Incoming update filter list for all interface is not set | |
497 | Default redistribution metric is 1 | |
498 | Redistributing: kernel connected | |
499 | Default version control: send version 2, receive version 2 | |
500 | Interface Send Recv | |
501 | Routing for Networks: | |
502 | eth0 | |
503 | eth1 | |
504 | 1.1.1.1 | |
505 | 203.181.89.241 | |
506 | Routing Information Sources: | |
507 | Gateway BadPackets BadRoutes Distance Last Update | |
a8c90e15 | 508 | |
42fc5d26 QY |
509 | |
510 | RIP Debug Commands | |
511 | ================== | |
512 | ||
513 | Debug for RIP protocol. | |
514 | ||
c1a54c05 | 515 | .. clicmd:: debug rip events |
42fc5d26 | 516 | |
c1a54c05 QY |
517 | Shows RIP events. Sending and receiving packets, timers, and changes in |
518 | interfaces are events shown with *ripd*. | |
42fc5d26 | 519 | |
c1a54c05 | 520 | .. clicmd:: debug rip packet |
42fc5d26 | 521 | |
c1a54c05 QY |
522 | Shows display detailed information about the RIP packets. The origin and |
523 | port number of the packet as well as a packet dump is shown. | |
42fc5d26 | 524 | |
c1a54c05 | 525 | .. clicmd:: debug rip zebra |
42fc5d26 | 526 | |
c1a54c05 QY |
527 | This command will show the communication between *ripd* and *zebra*. The |
528 | main information will include addition and deletion of paths to the kernel | |
529 | and the sending and receiving of interface information. | |
42fc5d26 | 530 | |
c1a54c05 | 531 | .. clicmd:: show debugging rip |
42fc5d26 | 532 | |
c1a54c05 | 533 | Shows all information currently set for ripd debug. |
42fc5d26 | 534 | |
b832909b QY |
535 | |
536 | Sample configuration | |
537 | ==================== | |
538 | ||
539 | .. code-block:: frr | |
540 | ||
541 | ||
542 | debug rip events | |
543 | debug rip packet | |
544 | ||
545 | router rip | |
546 | network 11.0.0.0/8 | |
547 | network eth0 | |
548 | route 10.0.0.0/8 | |
549 | distribute-list private-only in eth0 | |
550 | ||
551 | access-list private-only permit 10.0.0.0/8 | |
552 | access-list private-only deny any |