BGP Communities No-Export

Scenario:

As the owner of a small dutch ISP you like to configure some of the networking stuff yourself. For one of your customers you have to make some changes to the network. They want to advertise their networks to you but you want to prevent this information to be spread to other customers or other parts within your network.

Goal:

  • All IP addresses have been preconfigured for you.
  • Configure EBGP between AS 1 and AS 2.
  • Configure EBGP between AS 2 and AS 3.
  • Configure IBGP in AS 2.
  • Advertise the loopback0 interface on router Erik in BGP.
  • Configure router Rene so network 1.1.1.0 /24 is known within AS 2 but will never be advertised to any other autonomous systems.

IOS:

c3640-jk9s-mz.124-16.bin

Topology:

BGP Communities No Advertise

Video Solution:

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 GNS3Vault.com where he shares CCNA, CCNP and CCIE R&S labs. He also blogs about networking on http://networklessons.com

3 Comments

  1. Dear Gns3vault I have a couple of questions:
    In the answer key you have applied send community both to ibgp neighbor Franc Why?
    Second Why did u applied the route-map to Eric router in inbound direction? Shouldnt we apply the route-map to bert-router in out bound direction….I think i m missing something in bgp…can u please clear these

    1. howdy Khizer

      i cannot speak to this with certainty; however, i believe the configs you asking about were most likely left over from another lab.

      in fact, i was able to accomplish this lab by only configuring router “Rene”.

      Lab Task:
      Configure router Rene so network 1.1.1.0 /24 is known within AS 2 but will never be advertised to any other autonomous systems.

      i configured router Rene with an “inbound” route-map for BGP neighbor Erik and nothing else.

      i was able to accomplish the lab task in this way… i.e. router Bert has no knowledge of BGP route 1.1.1.0/24.
      however, routers Rene and Frans (BGP AS 2) do know of BGP route 1.1.1.0/24.

      Rene#sh run | se router bgp
      router bgp 2
      bgp router-id 2.2.2.2
      bgp log-neighbor-changes
      network 0.0.0.0
      network 2.2.2.0 mask 255.255.255.0
      neighbor 192.168.12.1 remote-as 1
      neighbor 192.168.12.1 send-community
      neighbor 192.168.12.1 route-map ONE in
      neighbor 192.168.23.3 remote-as 2
      neighbor 192.168.24.4 remote-as 4

      Bert#sh ip bgp | i Net|\*
      Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
      Network Next Hop Metric LocPrf Weight Path
      *> 2.2.2.0/24 192.168.24.2 0 0 2 i
      *> 3.3.3.0/24 192.168.24.2 0 2 i
      *> 4.4.4.0/24 0.0.0.0 0 32768 i

      Rene#sh ip bgp | i Net|\*
      Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
      Network Next Hop Metric LocPrf Weight Path
      *> 1.1.1.0/24 192.168.12.1 0 0 1 i
      *> 2.2.2.0/24 0.0.0.0 0 32768 i
      *>i 3.3.3.0/24 192.168.23.3 0 100 0 i
      *> 4.4.4.0/24 192.168.24.4 0 0 4 i

      Frans#sh ip bgp | i Net|\*
      Status codes: s suppressed, d damped, h history, * valid, > best, i – internal,
      Network Next Hop Metric LocPrf Weight Path
      *>i 1.1.1.0/24 192.168.12.1 0 100 0 1 i
      *>i 2.2.2.0/24 192.168.23.2 0 100 0 i
      *> 3.3.3.0/24 0.0.0.0 0 32768 i
      *>i 4.4.4.0/24 192.168.24.4 0 100 0 4 i

      HTH 🙂

Comments are closed.