Home > Articles > Cisco Certification > CCIE > CCIE Security Practice Labs

CCIE Security Practice Labs

  • Sample Chapter is provided courtesy of Cisco Press.
  • Date: Mar 26, 2004.

Section 2.0: Routing Configuration

2.1: Core Routing OSPF/EIGRP/RIP

  1. Configure core routing for all the above protocols on all routers in the network. Redistribute only where necessary; you must use your judgement. See the solutions below where required.

2.2: OSPF

  1. There is a loopback on R3 10.50.13.97/28 in Area66. You will see this route on all participating OSPF routers but not on R5, which is running RIPv1. The RIP network between R5 and R1 is a /27. You are redistributing OSPF into RIP on R1, but it will not redistribute the /28 since it has a different mask belonging to the same major net.

  2. The workaround is to summarize this in RIP on R1 to /27. Since you are restricted not to use a summarization technique, another technique to achieve this is to create a loopback on R1 with a /27 mask; this will automatically get into the RIP database, as it is the same major net. You can check this in the RIP database with show ip rip database on R1, and you will find the loopback as directly connected and not redistributed. This is not a good practice in real life but you can use this in lab setup.

  3. It is always a good idea to hardcode the router IDs on each OSPF speaker. This way, it is easier to identify the router sending/receiving updates and troubleshoot any problems with the OSPF peers.

  4. On R5, you need to enable split-horizon on the serial link to R1, as it is advertising the 30.0.0.0/8 route back to R1 (see the following debug output):

  5. r1#debug ip routing
    04:08:11: RT: network 144.144.0.0 is now variably masked
    04:08:11: RT: add 144.144.0.0/16 via 10.50.13.130, rip metric [120/3]
    04:08:11: RT: network 122.0.0.0 is now variably masked
    04:08:11: RT: add 122.0.0.0/8 via 10.50.13.130, rip metric [120/3]
    04:08:11: RT: network 13.0.0.0 is now variably masked
    04:08:11: RT: add 13.0.0.0/8 via 10.50.13.130, rip metric [120/3]
    04:08:11: RT: network 133.133.0.0 is now variably masked
    04:08:11: RT: add 133.133.0.0/16 via 10.50.13.130, rip metric [120/3]
    04:08:11: RT: network 30.0.0.0 is now variably masked
    04:08:11: RT: add 30.0.0.0/8 via 10.50.13.130, rip metric [120/3]
    
    04:08:39: RT: metric change to 144.144.0.0 via 10.50.13.130, rip metric [120/3]
      new metric [120/4]
    04:08:39: RT: metric change to 122.0.0.0 via 10.50.13.130, rip metric [120/3]
      new metric [120/4]
    04:08:39: RT: metric change to 13.0.0.0 via 10.50.13.130, rip metric [120/3]
      new metric [120/4]
    04:08:39: RT: metric change to 133.133.0.0 via 10.50.13.130, rip metric [120/3]
      new metric [120/4]
    04:08:39: RT: metric change to 30.0.0.0 via 10.50.13.130, rip metric [120/3]
      new metric [120/4]

    Fix this by enabling split-horizon on Serial0 on R5.

    Snip from R5 config:

    interface Serial0
     ip address 10.50.13.130 255.255.255.224
     ip split-horizon
     no frame-relay inverse-arp

2.3: EIGRP

  1. Configure EIGRP with the null routes, redistribute EIGRP into OSPF with a metric of 10, and then summarize them in OSPF to a /25 to advertise one route to all OSPF neighbors.

2.4: RIP

  1. Basic RIP configuration to be done on R3, R6, and PIX using MD5 authentication. Do not configure any default route on PIX and R6. You should configure RIP on PIX to inject a default route for R3 using rip inside default version 2 authentication md5 cisco 1.

  2. Make sure you can ping the AAA server from the PIX.

2.5: BGP

2.5.1: Basic BGP Configuration

  1. Configure R1 as route-reflector server for BGP connection to R5, as it is not fully meshed. Also configure next-hop-self for R5 peer, as R1 will advertise all routes learned by iBGP peers and forward to R5 without changing the next hop, and this could cause reachability problems at times if you don't have proper routes on R5.

  2. For iBGP between R3 and R6, you need to create static NAT for R6 Ethernet 10.10.6.2 to 10.50.31.22 and permit TCP port 49 on PIX for inbound connections. You will use 10.50.31.22 on R3 for BGP peer configuration.

  3. It is always a good idea to hardcode the router IDs on each BGP speaker just like in the OSPF process for troubleshooting.

2.5.2: BGP Connections

  1. This is a tricky one. The objective is to always build a BGP connection from outside-to-inside only. That is, R6 should not be able to build a BGP connection to R3, which it can by default since packets are going from a higher security level interface to a lower interface.

  2. To achieve this task, you need to configure an ACL on the inside interface and deny R6 BGP connection to R3:

  3. access-list inside deny tcp host 10.10.6.2 host 10.50.31.2 eq bgp (hitcnt=4)
  4. See also the PIX output in the Solutions section.

2.5.3: BGP and OSPF

  1. Another tricky question. It seems very straightforward to create loopbacks on R2 and R4. Advertise them in BGP using the network command, and redistribute into OSPF. All OSPF routers should see these routes.

  2. Well, it is not so simple. After doing the above, check from R3 and R4 and see if you can ping using the optimal path. If you do traceroute from routers R3 and R4, you will notice that they are not taking the optimal path.

  3. For example:

    Traceroute 122.122.122.122 from R4 and you will find that it is going through R5, whereas the optimal path is via R1.

    Traceroute 144.144.144.144 or 122.122.122.122 from R3 and you will find that it is not using the optimal path either.

  4. The solution is to use the BGP network backdoor command. You can also use the distance command, but you are restricted to use this to achieve this task. See solutions for R3 and R4.

NOTE

Note that there is a bug with the BGP network backdoor command in Cisco IOS Software Release 12.1T. When you apply the command it will not take effect. See bug id CSCdr12571 for more details. The workaround is to remove using the no network backdoor command and reapply back in. No need to clear BGP.

2.5.4: BGP and RIP

  1. Traceroute 111.111.111.111 (loopback2) from R4. You will notice that the next hop is R5 10.10.45.5 and not R1 10.50.13.81 as it is for 11.11.11.11 (loopback1). Why?

  2. Because we advertised 111.111.111.111 in RIP and BGP on R1, which made to BGP table on R5, and since R5 was peering eBGP with R4, it overwrote the route learned on R4 via OSPF as better admin distance. To confirm, turn on debug ip routing on R4 and clear ip route * as demonstrated in the following ip routing debug snippet from R4.

    5d23h: RT: add 111.111.111.0/24 via 10.50.13.81, ospf metric [110/5]
    5d23h: RT: closer admin distance for 111.111.111.0, flushing 1 routes
    5d23h: RT: add 111.111.111.0/24 via 10.10.45.5, bgp metric [20/0]

    As you can see, it overwrites the 111.111.111.111 route learned via OSPF with BGP.

    To fix this, you need to tweak the eBGP admin distance from 20 to 120 (something higher than OSPF) as follows.

    Configure the distance bgp 120 200 200 command on R4 in BGP.

    Then clear ip route * and you will see that the OSPF route stays, as demonstrated in the following ip routing debug from R4.

    5d23h: RT: add 111.111.111.0/24 via 10.50.13.81, ospf metric [110/5]

    NOTE

    You will not notice this problem if you have BGP "synchronization" enabled on R4; do "no sync" on R4 BGP and you will run into this problem.

2.5.5: BGP Attributes

  1. Advertise loopback1 using the network command on R6. You are restricted to use the network command to advertise loopback2; you will need to redistribute connected in BGP. Create an access list and a route map to redistribute loopback2 only. After doing so, do a show ip bgp on R6 and you will find that the origin-code for loopback2 is incomplete, denoted by a ?, because it has been redistributed and BGP hasn't learned this internally. To change the origin-code to denote i, use the set origin igp command in your route map:

  2. access-list 16 permit 166.166.166.0 0.0.0.255 
    !
    route-map loop2 permit 10 
     match ip address 16 
     set origin igp 
    !
    router bgp 3
     no synchronization
     bgp router-id 6.6.6.6
     bgp cluster-id 2795939494
     bgp log-neighbor-changes
     network 16.16.16.0 mask 255.255.255.0 
     redistribute connected metric 2 route-map loop2

    Done? No, not yet.

    Check the routing table on R3 to see if you see the R6 Loopback1 and Loopback2. Check its next hop, and which routing protocol is it learning from:

    r3#show ip route 
      16.0.0.0/24 is subnetted, 1 subnets
    O E2 16.16.16.0 [110/5] via 10.50.13.1, 00:00:07, Serial1/0.1
      166.166.0.0/24 is subnetted, 1 subnets
    O E2 166.166.166.0 [110/5] via 10.50.13.1, 00:00:07, Serial1/0.1
    O*E2 0.0.0.0/0 [110/1] via 10.50.13.17, 00:00:07, Serial1/0.3

    See the following debugs, which show Loopback1 and Loopback2 being learned via OSPF (10.50.13.1) and not iBGP (10.50.31.22). This is because R3 is peering eBGP with R1 and redistributing BGP into OSPF on R1. Because OSPF is peering with R3, it is learning the route via OSPF and overwriting the iBGP route learned via R6. Very complex loop!

    r3#debug ip routing
    IP routing debugging is on
    r3#
    4d23h: RT: closer admin distance for 16.16.16.0, flushing 1 routes
    4d23h: RT: add 16.16.16.0/24 via 10.50.13.1, ospf metric [110/5]
    4d23h: RT: add 122.122.122.0/24 via 10.50.13.17, ospf metric [110/786]
    4d23h: RT: add 144.144.144.0/24 via 10.50.13.1, ospf metric [110/834]
    4d23h: RT: closer admin distance for 166.166.166.0, flushing 1 routes
    4d23h: RT: add 166.166.166.0/24 via 10.50.13.1, ospf metric [110/5]

    To fix this, create an access list and filter the two loopbacks using distribute-list inbound in OSPF:

    r3# show running-config
    ! <snip>
    router ospf 110
     router-id 3.3.3.3
    distribute-list 16 in
    !
    r3#show access-lists 
    Standard IP access list 16
     deny 16.16.16.0, wildcard bits 0.0.0.255
     deny 166.166.166.0, wildcard bits 0.0.0.255
     permit any
    
    r3# 
    r3#debug ip routing
    IP routing debugging is on
    r3# <snip>
    4d23h: RT: add 16.16.16.0/24 via 10.50.31.22, bgp metric [200/2]
    4d23h: RT: add 166.166.166.0/24 via 10.50.31.22, bgp metric [200/2]

    Routes are now being learned via iBGP and not OSPF.

    Ping and traceroute to verify.

17. Section 3.0: ISDN Configuration | 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