Monitoring RIP
Two sets of commands enable you to monitor RIP operation on your router: the debug and the show commands. Both sets of commands provide information about your router's RIP state and configuration.
The task you are performing with each of these monitoring commands is basically the same for each command; that is, you are requesting information. The results of this request may vary. For instance, the debug commands provide information about problems with the network or the router, whereas the show commands provide information about the actual state and configuration of your router.
debug Commands
The debug commands provide information about the following RIP items:
- General events, such as creating a RIP process or removing RIP from an interface
- Routing events, such as when two RIP routers exchange routes
debug ip rip
- Use to display information about selected RIP events. This command has many keywords that allow you to specify a variety of RIP events.
- You can set the level of severity for the events you want displayed; specify the desired descriptive term or a corresponding number (07).
- You can set the verbosity of the messages you want displayed: low, medium, high.
- Example
host1#debug ip rip eventsUse the no version to cancel the display of any information about the designated variable. undebug ip rip
- Use to cancel the display of information about a selected event.
- The same RIP variables can be designated as in the debug ip rip command.
- Example
host1#undebug ip rip eventsThere is no no version. show Commands
Use the show commands to monitor the following types of RIP information:
You can set a statistics baseline for RIP interfaces by using the baseline ip rip command.
You can specify a VRF instance for the show ip rip commands. You can use the output filtering feature of the show command to include or exclude lines of output based on a text string you specify. See JUNOSe System Basics Configuration Guide, Chapter 2, Command-Line Interface, for details.
baseline ip rip
- Use to set a statistics baseline for RIP interfaces.
- The router implements the baseline by reading and storing the statistics at the time the baseline is set and then subtracting this baseline whenever baseline-relative statistics are retrieved.
- Use the optional delta keyword with the show ip rip statistics command to specify that baselined statistics are to be shown.
- Example
host1#baseline ip ripThere is no no version. show ip rip
- Use to display RIP information.
- Specify vrf vrfName to limit the display to a specific VRF.
- Use the ifconfig keyword to display address and interface configuration information instead of the default operational data.
- Field descriptions
- Router Administrative StateDisplays the RIP state. Enable means the router is allowed to send and receive updates. Disable means that RIP might be configured but it is not allowed to run yet.
- System version RIP1RIP versions allowed for sending and receiving RIP updates. The router version is currently set to RIP1, which sends RIPv1 but will receive RIPv1 or RIPv2. If it is set to RIP2, it will send and receive RIPv2 only. The default is configured for RIP1.
- Incoming filtersAccess list applied to incoming route updates
- Outgoing filtersAccess list applied to outgoing route updates
- Global route mapRoute map that specifies all RIP interfaces on the router
- Default metricValue for redistributed routes. The default is 1. This global value is superseded by metrics applied to a RIP interface.
- DistanceValue added to RIP routes added to the IP routing table. The default is 120.
- Number of route changesNumber of times the router has been told to route changes by its peers
- Number of route queriesNumber of times the router has received route requests from other routers
- Update intervalCurrent setting of the update timer (in seconds)
- Invalid intervalCurrent setting of the invalid timer (in seconds)
- Hold down timeCurrent setting of the hold-down timer (in seconds)
- Flush intervalCurrent setting of the flush timer (in seconds)
- Route TypeWhether RIP routes are available only for unicast forwarding, only for multicast reverse path forwarding checks, or for both
- Max Ecmp PathsNumber of parallel routes that RIP can support
- Default-Information originate alwaysAbility (enabled or disabled) of RIP to advertise a default route (0.0.0.0/0) if the default route exists in the IP routing table
- Triggered UpdatesAbility (enabled or disabled) of RIP to send triggered updates
- Purge Routes on Interface Down EventAbility (enabled or disabled) of RIP to purge the routing table for interfaces that were brought down by some event
- Send More Specific RoutesAbility (enabled or disabled) of RIP to send a less-specific route in preference to a more-specific route if the less-specific route has a metric
- Debounce TimeDebounce time for interfaces brought down by some event
- Default-Information originateAbility (enabled or disabled) of RIP to advertise a default route (0.0.0.0/0) if the default route exists in the IP routing table
- route-mapName of the route map specified for RIP
- Summary AddressRoute that RIP summarizes
- NetworkIP address of a network on which RIP is running
- NetmaskNetwork mask applied to the network address
- NeighborConfigured neighbor information
- Unnumbered statusStatus of the unnumbered interface
- Received bad packetNumber of bad packets received
- Received bad routesNumber of bad routes received
- Triggered updates sentNumber of triggered updates sent; triggered updates are sent before the entire RIP routing table is sent; triggered by events such as adding a new RIP route or redistribution
- Received updatesNumber of updates received
- Numbered statusStatus of the numbered interface from which this interface obtains its configuration
- Send versionVersion of RIP used for sending updates
- Receive versionVersion of RIP accepted in received updates
- Authentication modePassword or MD5 authentication, or none
- Default metricMetric value applied to the RIP interface. The default
is 1.- BFD minimum receive interval(msec)Configured minimum interval requested between BFD control packets sent by the remote RIP peer; used with RIP peers to negotiate a detection interval for BFD session failure. The default is 300 milliseconds.
- BFD minimum transmit interval(msec)Configured minimum interval between BFD control packets sent by the local RIP peer; used with RIP peers to negotiate a detection interval for BFD session failure. The default is 300 milliseconds.
- BFD multiplierMultiplied by the negotiated BFD minimum receive interval to determine the interval between packets permitted before the BFD session is declared down. Also, the number of BFD control packets that the RIP local peer can miss before the BFD session is declared down. The default is 3.
- Passive InterfaceWhether or not the interface is passive, thereby restricting the interface to unicast RIP messages
- Passive InterfaceWhether or not the interface is passive, thereby restricting the interface to unicast RIP messages
- Access-list applied to outgoing routeName of the access list applied to outgoing routes
- Access-list applied to incoming routeName of the access list applied to incoming routes
- Route-map applied to outgoing routeName of the route map applied to outgoing routes
host1#show ip ripRouting Information ProtocolRouter Administrative State = enableSystem version RIP2: send = 2, receive = 2No filter is applied to outgoing route update for all interfacesNo filter is applied to incoming route update for all interfacesNo global route mapNo table mapDefault metric = 1Distance = 120Number of route changes = 3Number of route queries = 0Update interval = 30 (secs)Invalid interval = 180 (secs)Hold down time = 120 (secs)Flush interval = 300 (secs)Route Type = both unicast and multicastMax Ecmp Paths = 4Default-Information originate always = enabledTriggered Updates = enabledPurge Routes on Interface Down Event = enabledSend More Specific Routes = enabledDebounce Time = 10Default-Information originate : disabledroute-map : noneSummary Address: NoneNetwork netmaskNeighborNo Configured Neighbors*** Address Operational Data ***Unnumbered, Rip is up, ATM2/1.18Dynamic creation and inherits configuration from loopback1Received bad packet = 0Received bad routes = 0Triggered updates sent = 0Received updates = 91.1.1.1, Rip is up, loopback1Send version = 2Receive version = 2Authentication mode = noneDefault metric = 1Passive Interface = NoAccess-list applied to outgoing route = noneAccess-list applied to incoming route = noneRoute-map applied to outgoing route = noneCopy configuration to dynamic interfacesReceived bad packet = 0Received bad routes = 0Triggered updates sent = 0Received updates = 0Example 2 host1#show ip rip ifconfigRouting Information ProtocolRouter Administrative State = enableSystem version RIP2: send = 2, receive = 2No filter is applied to outgoing route update for all interfacesNo filter is applied to incoming route update for all interfacesNo global route mapNo table mapDefault metric = 1Distance = 120Number of route changes = 17Number of route queries = 2Update interval = 30 (secs)Invalid interval = 180 (secs)Hold down time = 120 (secs)Flush interval = 300 (secs)Route Type = both unicast and multicastMax Ecmp Paths = 4Default-Information originate always = enabledTriggered Updates = enabledPurge Routes on Interface Down Event = enabledSend More Specific Routes = enabledDebounce Time = 10Default-Information originate : disabledroute-map : noneSummary Address: NoneNetwork netmaskNeighborNo Configured Neighbors*** Interface Configuration Data***loopback1Send version = defReceive version = defAuthentication mode = noneDefault metric = defaultPassive Interface = NoAccess-list applied to outgoing route = noneAccess-list applied to incoming route = noneRoute-map applied to outgoing route = noneCopy configuration to dynamic interfaces*** Address Configuration Data ***Unnumbered, Rip is up, ATM2/1.18Dynamic creation and inherits configuration from loopback1Received bad packet = 0Received bad routes = 0Triggered updates sent = 0Received updates = 31.1.1.1, Rip is up, loopback1Send version = defReceive version = defAuthentication mode = noneDefault metric = defaultPassive Interface = NoAccess-list applied to outgoing route = noneAccess-list applied to incoming route = noneRoute-map applied to outgoing route = noneReceived bad packet = 0Received bad routes = 0Triggered updates sent = 0Received updates = 0Example 3Interface configuration data excerpt showing BFD information. host1#show ip rip ifconfig...*** Interface Configuration Data***
FastEthernet1/0Send version = defReceive version = defAuthentication mode = noneDefault metric = defaultBFD minimum receive interval(msec) = 400BFD minimum transmit interval(msec)= 500BFD multiplier = 2Passive Interface = NoAccess-list applied to outgoing route = noneAccess-list applied to incoming route = noneRoute-map applied to outgoing route = noneshow ip rip brief
- Use to display limited RIP information.
- Specify vrf vrfName to limit the display to a specific VRF.
- Field descriptions
- IP AddressIP address of the interface where RIP is running
- TxTransmit version of RIP on this interface, which can override the router configuration
- RxReceive version of RIP on this interface
- AuthType of authentication, password (text) or MD5
- MetCurrent value is the same as the router one (the default metric). Based on MIB 2 for RIP, the interface's route metric can be set individually.
- AccList O/IAccess list applied to outgoing/incoming RIP route updates
- RtMapIdentifier for the route map that specifies a summary of RIP routes
- StatusStatus of RIP, either up or down
- IntfInterface type on which RIP is running
host1#show ip rip briefIP Address Tx Rx Auth Met AccList O/I RtMap Status Intf10.2.1.32 1 1,2 none 1 no/no no up fastEthernet0/010.10.1.2 1 1,2 none 1 no/no no up serial5:1/1:1show ip rip database
- Use to display the route entries in the RIP routing table.
- Specify vrf vrfName to limit the display to a specific VRF.
- Specify the active keyword to limit the display to active routes learned via RIP updates.
- Specify the inactive keyword to limit the display to routes that the router will discard in the immediate future.
- Field descriptions
- PrefixIP address prefix
- LengthPrefix length
- ttl(Time to live) Indicates how many seconds the specific route remains in the routing table. If an entry reaches 0, it is removed from the routing table.
- MetMetric that RIP uses to rate the value of different routes (hop count). The hop count is the number of routers that can be traversed in a route.
- Next HopNext IP address where a packet is sent. A value of zero in this field indicates that the next address the packet should be sent to is the router that originally sent the RIP message.
- IntfInterface that the route has learned
host1#show ip rip databasePrefix/Length: ttl Met: Next Hop Intf:3.0.0.0/8 0 1 72.30.100.2 tm2/1.1009.20.0.0/17 0 2 172.30.100.1 tm2/1.10010.2.1.0/24 0 2 172.30.100.1 tm2/1.100show ip rip network
- Use to display the networks associated with the RIP routing process.
- Specify vrf vrfName to limit the display to a specific VRF.
- Field descriptions
- networkIP address of a network on which RIP is running
- netmaskNetwork mask applied to the network address
host1#show ip rip networkNetwork netmask10.2.1.0 255.255.255.0172.30.100.0 255.255.255.0172.30.200.0 255.255.255.0show ip rip peer
- Use to display limited information about each RIP neighbor.
- Specify vrf vrfName to limit the display to a specific VRF.
- Field descriptions
- Time since last update receivedTime in seconds since an update was received from this peer
- Peer versionVersion of IS-IS running on the peer
- Bad packets receivedNumber of bad packets received from the peer
- Bad routes receivedNumber of bad routes received from the peer
- BFDState of the BFD session with the peer, Up or Down
host1#show ip rip peer192.168.1.102Time since last update received = 24Peer version = 1Bad packet received = 0Bad routes received = 0BFD Up192.168.1.151Time since last update received = 24Peer version = 1Bad packet received = 0Bad routes received = 0BFD Down192.168.1.250Time since last update received = 7Peer version = 2Bad packet received = 0Bad routes received = 0BFD Upshow ip rip statistics
- Use to display global and session statistics counters for RIP. If you specify an IP address, statistics for that interface are displayed in addition to the global RIP statistics.
- Specify vrf vrfName to limit the display to a specific VRF.
- Use the optional delta keyword to specify that baselined statistics are to be shown. You must use the baseline ip rip command to set a baseline.
- Field descriptions
- Number of route changesNumber of times the router has been told to route changes by its peers
- Number of route queriesNumber of times the router has received route requests from other routers
- Received bad packetsNumber of bad packets received from the peer
- Received bad routesNumber of bad routes received from the peer
- Triggered updates sentNumber of triggered updates sent; triggered updates are sent before the entire RIP routing table is sent; triggered by events such as adding a new RIP route or redistribution
- Received updatesNumber of updates received
host1#show ip rip statisticsNumber of route changes = 23Number of route queries = 0Example 2 host1#show ip rip statistics 10.2.1.32Number of route changes = 901Number of route queries = 0fastEthernet 0/0, 10.2.1.32Received bad packet = 0Received bad routes = 0Triggered updates sent = 2Received updates = 41show ip rip summary-address
- Summary AddressAddress summarizing RIP routes
- MaskNetwork mask specified in the ip summary-address command to identify which routes to summarize
- MetricMetric advertised with the summary RIP prefix
host1#show ip rip summary-addressSummary Address Mask Metric4.3.0.0 255.255.0.0 34.4.0.0 255.255.0.0 5