Home > Articles > Cisco Certification > CCNA Routing and Switching > IP Access List Security for CCNA Exam #640-607

IP Access List Security for CCNA Exam #640-607

  • Sample Chapter is provided courtesy of Cisco Press.
  • Date: Apr 19, 2002.

Contents

  1. RIP Fundamentals
  2. Configuring RIP Between R1 and R2
  3. Verifying RIP Configuration and Operation
  4. Lab Follow-up Tasks

Chapter Description

For CCNA preparation, CCIE Wendell Odom reviews the characteristics and limitations of the distance vector routing protocol RIP, provides an exercise on configuring RIP between two routers, R1 and R2, and follows up with useful commands to verify and troubleshoot your RIP configuration.

Verifying RIP Configuration and Operation

Besides viewing the running configuration to ensure that RIP appears with the desired networks as expected, you can use a few commands to help you verify the RIP configuration, fine tune it where necessary, and ensure that it is operating properly.

These commands include the following:

show ip protocols
show ip route
ping
debug ip rip
passive-interface

Verifying RIP Configuration with the show ip protocols Command

Begin verifying the RIP configuration using the show ip protocols command, as demonstrated in Example 8-10.

Example 8-10 show ip protocols Command Output on R1 Displays Detailed Information About RIP Configuration

R1#show ip protocols
Routing Protocol is "rip"
 Sending updates every 30 seconds, next due in 20 seconds
 Invalid after 180 seconds, hold down 180, flushed after 240
 Outgoing update filter list for all interfaces is not set
 Incoming update filter list for all interfaces is not set
 Redistributing: rip
 Default version control: send version 1, receive any version
  Interface    Send Recv  Key-chain
  Ethernet0    1   1 2
  Loopback0    1   1 2
 Routing for Networks:
  192.168.1.0
  192.169.1.0
 Routing Information Sources:
  Gateway     Distance   Last Update
  192.168.1.2     120   00:00:06
 Distance: (default is 120)

R1# 

Review the highlighted fields in the show ip protocols output from Example 8-10. First, you see the following:

Sending updates every 30 seconds, next due in 20 seconds

This indicates that RIP is advertising routes every 30 seconds and that the next advertisement is expected in 20 seconds; this means that R1 just received an update 10 seconds ago. Next, you get the following:

Invalid after 180 seconds, hold down 180, flushed after 240

This means that if R1 does not receive an update from R2 for 180 seconds or more, it marks the routes advertised by R2 as being unusable. If R1 still doesn't receive an update from R2 after 240 seconds, R1 removes the routing table entries that it received from R2. This line also shows that the hold-down timer is set to 180.

The next highlighted line indicates that the default configuration for RIP is to send RIP-1 updates and to receive both RIP-1 and RIP-2 updates.

The last highlighted lines verify that RIP is configured for networks 192.168.1.0 and 192.169.1.0. Each of these networks will be advertised in RIP routing updates.

Compare the show ip protocols output for R1 in Example 8-10 to the show ip protocols output on R2, as shown in Example 8-11.

Example 8-11 show ip protocols on R2

R2#show ip protocols
Routing Protocol is "rip"
 Sending updates every 30 seconds, next due in 28 seconds
 Invalid after 180 seconds, hold down 180, flushed after 240
 Outgoing update filter list for all interfaces is
 Incoming update filter list for all interfaces is
 Redistributing: rip
 Default version control: send version 1, receive any version
  Interface    Send Recv  Key-chain
  Ethernet0    1   1 2
  Ethernet1    1   1 2
  Loopback0    1   1 2
 Routing for Networks:
  192.168.1.0
  192.168.2.0
  192.169.2.0
 Routing Information Sources:
  Gateway     Distance   Last Update
  192.168.1.1     120   00:00:08
 Distance: (default is 120)

R2# 

The highlighted areas show that the only difference is that R2 also is configured to send and receive RIP updates for the 192.168.2.0 network on its Ethernet1 interface. Ideally, you do not want RIP updates to be broadcast out the Ethernet1 interface. The section "Preventing RIP Updates with the passive-interface Command" goes into more detail about this.

Confirming RIP Advertisement Receipt with the show ip route Command

The show ip protocols command indicates that the proper networks are configured for RIP advertisements. You can confirm that these RIP advertisements are being received by looking at the routing table of R1 and R2 using the show ip route command. Example 8-12 provides the output from this command on R1.

Example 8-12 Routing Table of R1 After Successful RIP Configuration

R1#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route, o - ODR

Gateway of last resort is not set

C  192.169.1.0/24 is directly connected, Loopback0
C  192.168.1.0/24 is directly connected, Ethernet0
R  192.168.2.0/24 [120/1] via 192.168.1.2, 00:00:09, Ethernet0
R  192.169.2.0/24 [120/1] via 192.168.1.2, 00:00:09, Ethernet0
R1#

R1 has received two RIP routes from R2: one to network 192.168.2.0 and one to 192.169.2.0. These correspond to Ethernet1 and Loopback0 on R2. Each route is preceded by an R, indicating that the route was learned through RIP.

Example 8-13 shows the routing table of R2.

Example 8-13 R2 Routing Table

R2#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route, o - ODR

Gateway of last resort is not set

C  192.168.1.0/24 is directly connected, Ethernet0
R  192.169.1.0/24 [120/1] via 192.168.1.1, 00:00:19, Ethernet0
C  192.168.2.0/24 is directly connected, Ethernet1
C  192.169.2.0/24 is directly connected, Loopback0
C  192.168.100.0/24 is directly connected, Serial0
R2# 

R2 has received one RIP route of 192.169.1.0 from R1. This corresponds to R1's Loopback0 interface and was learned via a RIP advertisement from R1.

Verifying Router Interconnectivity with the ping Command

With the correct routes in R1's and R2's routing tables, R1 and R2 should be capable of pinging each other's Loopback0 interface. In addition, R1 now should be capable of pinging R2's Ethernet1 address of 192.168.2.2. To verify this, first initiate a ping from R2 to R1's Loopback0 address of 192.169.1.1, as shown in Example 8-14.

Example 8-14 Successful ping from R2 to R1's Loopback0 Address

R2#ping 192.169.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.169.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/6/24 ms
R2#

Success! Now initiate a ping from R1 to R2's Loopback0 address of 192.169.2.2 and to R2's Ethernet1 address of 192.168.2.2, as shown in Example 8-15.

Example 8-15 Successful ping from R1 to R2's Loopback0 and Ethernet1 Addresses

Termserver#1
[Resuming connection 1 to r1 ... ]

R1#ping 192.169.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.169.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/3/4 ms
R1#ping 192.168.2.2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
R1#      

Success! R1 now has successfully learned the routes necessary to ping R2's Loopback0 and Ethernet1 addresses.

Analyzing Router Processes with the debug ip rip Command

In the lab examples, R1 and R2 learned the desired routes without any problems; however, in the real world, problems might arise where the configuration appears correct but RIP routes are not appearing in the routing table as expected. For more complex scenarios, you can use a debug command to see what is going on in the background RIP process of the router. The command used is debug ip rip and is executed from privileged EXEC mode as follows:

Router#debug ip rip

To turn off IP RIP debugging, use the no form of the preceding command, as follows:

Router#no debug ip rip

To turn off all debugging on the router, you can use either of the following commands:

Router#undebug all
Router#no debug all

Observe the RIP routing process on R1 by turning on IP RIP debugging and then turning off all debugging, as shown in Example 8-16.

Example 8-16 debug ip rip Command Output on R1

R1#debug ip rip
RIP protocol debugging is on
R1#
RIP: received v1 update from 192.168.1.2 on Ethernet0
   192.168.2.0 in 1 hops
   192.169.2.0 in 1 hops
R1#
RIP: sending v1 update to 255.255.255.255 via Ethernet0 (192.168.1.1)
   network 192.169.1.0, metric 1

RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.169.1.1)
   network 192.168.1.0, metric 1
   network 192.168.2.0, metric 2
   network 192.169.2.0, metric 2

R1#undebug all
All possible debugging has been turned off
R1#      

The debug ip rip output reveals the following information:

  • R1 received a Version 1 update from 192.168.1.2 (R2) on its Ethernet0 interface. This update contained the two routes configured on R2 to be advertised (that is, 192.168.2.0 and 192.169.2.0).

  • R1 sent a RIP broadcast on its Ethernet0 interface advertising the network 192.169.1.0.

  • R1 sent a RIP broadcast on its Loopback0 interface advertising networks 192.168.1.0, 192.168.2.0, and 192.169.2.0.

Preventing RIP Updates with the passive-interface Command

R1 is sending RIP updates via its Loopback0 interface because when a network is added to RIP, RIP not only advertises this network route but also sends updates on the interface corresponding to this network. This is the case with Loopback0 on R1. When R1's Loopback0 network 192.169.1.0 was added to RIP to ensure that it was advertised to R2, RIP also began sending updates on the interface corresponding to network 192.169.1.0 or Loopback0. Because loopback interfaces are virtual interfaces, there is no purpose in sending updates out this interface. Remember that the reason to include the Loopback0 network in RIP was to ensure that it was advertised to R2. You can prevent RIP from sending updates via Loopback0 by configuring Loopback0 to be a passive interface in the RIP routing process. You can do this from router configuration mode using the following command:

R1(config-router)#passive-interface [interface#]

Example 8-17 demonstrates how to configure Loopback0 as a passive interface.

Example 8-17 R1 Loopback0 Configured as a Passive Interface

R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router rip
R1(config-router)#passive-interface loopback0
R1(config-router)#end
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1# 

Now turn on IP RIP debugging again and observe the difference in the debug output after Loopback0 has been configured as a passive interface, as shown in Example 8-18.

Example 8-18 debug ip rip Output on R1 After Loopback0 Configured as a Passive Interface

R1#debug ip rip
RIP protocol debugging is on
R1#
RIP: received v1 update from 192.168.1.2 on Ethernet0
   192.168.2.0 in 1 hops
   192.169.2.0 in 1 hops
R1#
RIP: sending v1 update to 255.255.255.255 via Ethernet0 (192.168.1.1)
   network 192.169.1.0, metric 1
R1#
RIP: received v1 update from 192.168.1.2 on Ethernet0
   192.168.2.0 in 1 hops
   192.169.2.0 in 1 hops
R1#
RIP: sending v1 update to 255.255.255.255 via Ethernet0 (192.168.1.1)
   network 192.169.1.0, metric 1
R1#                  

The debug output represents two 30-second RIP interval updates. Notice that after you have configured Loopback0 to be a passive interface, RIP no longer sends updates via Loopback0.

R2 has a similar situation. You do not want RIP updates to be sent out Loopback0 or Ethernet1. Switch over to R2 and observe the current debug ip rip information, as shown in Example 8-19.

Example 8-19 RIP Debug Information on R2 Before Passive Interface Configuration

Termserver#2
[Resuming connection 2 to r2 ... ]

R2#debug ip rip
RIP protocol debugging is on
R2#
RIP: received v1 update from 192.168.1.1 on Ethernet0
   192.169.1.0 in 1 hops
R2#
RIP: sending v1 update to 255.255.255.255 via Ethernet0 (192.168.1.2)
   network 192.168.2.0, metric 1
   network 192.169.2.0, metric 1
RIP: sending v1 update to 255.255.255.255 via Ethernet1 (192.168.2.2)
   network 192.168.1.0, metric 1
   network 192.169.1.0, metric 2
   network 192.169.2.0, metric 1
RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.169.2.2)
   network 192.168.1.0, metric 1
   network 192.169.1.0, metric 2
   network 192.168.2.0, metric 1
R2#undebug all
All possible debugging has been turned off
R2# 

The output indicates that R2 still is receiving network 192.169.1.0 from R1. This corresponds to R1's Loopback0 and verifies that even though Loopback0 was configured as a passive interface on R1, R1 still is advertising this network to R2 as desired. In addition, notice that R2 is sending updates out Ethernet0, Ethernet1, and Loopback0. To remedy this, configure Ethernet1 and Loopback0 to be passive interfaces on R2, as shown in Example 8-20.

Example 8-20 Ethernet1 and Loopback0 Configured as Passive Interface on R2

R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#
%SYS-5-CONFIG_I: Configured from console by console
R2(config)#router rip
R2(config-router)#passive-interface ethernet1
R2(config-router)#passive-interface loopback0
R2(config-router)#end
R2#
%SYS-5-CONFIG_I: Configured from console by console
R2#

Example 8-21 shows the change to the debug ip rip information after the new passive interface configuration.

Example 8-21 debug ip rip Output After Loopback0 and Ethernet1 Configured as Passive Interfaces on R2

R2#debug ip rip
RIP protocol debugging is on
R2#
RIP: sending v1 update to 255.255.255.255 via Ethernet0 (192.168.1.2)
   network 192.168.2.0, metric 1
   network 192.169.2.0, metric 1
R2#
RIP: received v1 update from 192.168.1.1 on Ethernet0
   192.169.1.0 in 1 hops
R2#

RIP updates no longer are being sent via Loopback0 and Ethernet1, as intended.

Saving the New Configuration

At this point, turn off all debugging and save the configuration on R1 and R2, as shown in Example 8-22.

Example 8-22 Turning Off All Debugging and Saving Configuration on R1 and R2

R2#undebug all
All possible debugging has been turned off
R2#copy running startup 
Building configuration...
[OK]
R2#
Termserver#1
[Resuming connection 1 to r1 ... ]

R1#undebug all
All possible debugging has been turned off
R1#copy running startup
Building configuration...
[OK]
R1#

Next, you can verify that the host table mapping that was set up in Chapter 6 pointing to the loopback interface works between R1 and R2. This is because RIP is advertising the routes to these loopback interfaces via RIP between R1 and R2. Test this on R1 by typing r2 from the privileged EXEC mode, and see if a Telnet session is opened up to R2, as shown in Example 8-23.

Example 8-23 Successful Telnet from R1 to R2 Using Host Table Entry

R1#r2
Trying R2 (192.169.2.2)... Open

This is Router 2


User Access Verification

Password:
R2>enable
Password:
R2#  

Example 8-23 verifies that the host table worked as designed. R1 initiated a Telnet session to 192.169.2.2 (R2's Loopback0 interface), the banner is displayed, and you are prompted for the vty password and finally the enable password. Quit the Telnet session to R2 using the quit command, as demonstrated in Example 8-24.

Example 8-24 Ending Telnet Session Between R1 and R2

R2#quit

[Connection to r2 closed by foreign host]
R1# 

The Telnet session has been terminated, and you are returned to R1.

4. Lab Follow-up Tasks | Next Section Previous Section

Cisco Press Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Cisco Press and its family of brands. I can unsubscribe at any time.

Overview

Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Cisco Press products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information

To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@ciscopress.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information

Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security

Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children

This site is not directed to children under the age of 13.

Marketing

Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information

If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out

Users can always make an informed choice as to whether they should proceed with certain services offered by Cisco Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.ciscopress.com/u.aspx.

Sale of Personal Information

Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents

California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure

Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links

This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact

Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice

We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020