BGP Attribute AS Path Ignore


You are responsible for a International network. All routers are connected through BGP. One of the network administrators in NewDelhi configure AS Path prepending for their AS so Paris will send all traffic through Sydney. You heard about a hidden option to ignore AS Path information, maybe this is just what you need…


  • All IP addresses have been preconfigured for you as specified in the topology picture.
  • Configure EBGP between all the ASes.
  • Advertise the loopback0 interface on router Barcelona in BGP.
  • Router Paris should have two paths to reach network /24.
  • Configure AS Path prepending on router NewDelhi so router Paris sends all traffic to network /24 through router Sydney.
  • Configure router Paris to ignore the added ASes so it will send traffic for network /24 to router NewDelhi. Don’t use any of the other BGP attributes.

It took me 1000s of hours reading books and doing labs, making mistakes over and over again until I mastered all the routing protocols for CCNP.

Would you like to be a master of routing too? In a short time without having to read 900 page books or google the answers to your questions and browsing through forums?

I collected all my knowledge and created a single ebook for you that has everything you need to know to become a master of routing.

You will learn all the secrets about BGP, attributes, AS Path and more.

Does this sound interesting to you? Take a look here and let me show you how to Master CCNP ROUTE




BGP AS Path Attribute Ignore

Configuration Files

You need to register to download the GNS3 topology file. (Registration is free!)

Once you are logged in you will find the configuration files right here.

Opt In Image
Do you want your CCNA or CCNP Certificate?

The How to Master series helps you to understand complex topics like spanning-tree, VLANs, trunks, OSPF, EIGRP, BGP and more.

Written by René Molenaar - CCIE #41726

You May Also Like

About the Author: Rene Molenaar

René - CCIE #41726 is the creator of where he shares CCNA, CCNP and CCIE R&S labs. He also blogs about networking on


  1. hi

    when i opened the topology file it just came with the peer group lab.

    Can you check the file?

  2. I cannot get the follow as-path ignore command to work

    R2(config-router)#bgp bestpath ?
    compare-routerid Compare router-id for identical EBGP paths
    cost-community cost community
    med MED attribute

    Cisco IOS Software, 3600 Software (C3640-JK9O3S-M), Version 12.4(16a), RELEASE SOFTWARE (fc2)

    Any idea why this might be?

  3. Just try the command, it will work even if it is not shown.
    “bgp bestpath as-path ignore”
    you will then see it in the running config.

  4. Hi,
    To complete this lab, use the same topology as “BGP Attribute Router ID”
    1) NewDelhi —Router-ID =
    neighbor route-map as-prepend out —- towards Paris
    route-map as-prepend permit 10
    set as-path prepend 2 2 2
    bgp bestpath as-path ignore ———— just past the command even it is showing up
    bgp bestpath compare-routerid
    based on AS-path lenght the Sydney should be the prefered path, but with ” ingore command” Paris will prefer Newdelhi as it has a lower-ID (
    Paris#sh ip bgp
    BGP routing table entry for, version 2
    Paths: (2 available, best #2, table Default-IP-Routing-Table)
    Advertised to update-groups:
    4 1 from (
    Origin IGP, localpref 100, valid, external
    2 2 2 2 1 from (
    Origin IGP, localpref 100, valid, external, best

  5. !!! Rectifictaion!!!
    2) Paris config
    bgp bestpath as-path ignore ———— just past the command even it is NOT showing up with ? mark

  6. Thanks once again for your struggle,

    sorry to say, the topology is change.

    show me show to upload the topology to your site.
    i create to many topology , i wish to share with all of you.
    i can help to upload the topology when missing is there like this one.

    i will appreciate you email to me

    thanks to your struggle and help to others

  7. i don’t read any of the lab comments before i have completed the lab myself.
    Cisco hidden command… doh!
    what did people do before prolific Internet search was even a thing ?! 🙂

    good lab.

Comments are closed.