Blackhole routing for eBGP peer interconnection

Created Mar 04, 2014 20:41:51Latest reply Sep 28, 2018 23:46:05 2042 2 0 0
 

As a local enterprise you will have to establish a company network and most likely you will need to interconnect your network with one or more ISPs. The most common case is interconnecting by using a eBGP session between your network edge device and the ISP PE device.

Let’ consider the topology below:

 

 

In this topology AS 20 is the Enterprise network and the two other ASes (10 and 30) belong to two different ISPs.

Problems start appearing when I try to advertise certain routing information to the ISPs. For this example I will try to advertise prefix 200.1.0.0/24 to both eBGP peers. For this I will first need to add the network command in BGP view as below:

#

bgp 20

 network 200.1.0.0 24

#

For BGP to advertise this prefix to its peers I also need to add a static route for this prefix:

#

ip route-static 200.1.0.0 24 GigabitEthernet 2/0/0

#

Right not the prefix will be advertised but yet another problem appears. In AS 20 i only use half of the /24 range, the rest of it being reserved for future expansions. This being the case whenever I receive packets destined to unused ip address from the advertised range I would like Router B to drop these packets, thus eliminating any security threat (e.g. DDoS attacks).

To accomplish this I need to modify the static route to a blackhole one so I can be sure that any packet with a non-existent destination will be dropped.

The configuration to modify the static route is below:

#

undo ip route-static 200.1.0.0 24 GigabitEthernet 2/0/0

ip route-static 200.1.0.0 24 Null 0

#

After appling this configuration I can be sure that all security threats have been eliminated and I have a full functioning network.

 

  • x
  • convention:

Sophoni  Moderator   Created Mar 05, 2014 10:33:19 Helpful(0) Helpful(0)

thanks for your share.
  • x
  • convention:

faysalji  Novice   Created Sep 28, 2018 23:46:05 Helpful(0) Helpful(0)

Good scenario to interconnect your network with one or more ISPs
  • x
  • convention:

If you think my post/reply is useful, please click the Helpful button and flag my post as a BEST ANSWER. Thanks

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top