ConfigureTerminal.com

Resources for the Networking Professional

 

Specials

Cisco ConsoleThe Cisco Engineer's Toolkit will save you time - or your money back!

The toolkit contains all of the following:
1) VPN Config Generator - create VPNs in seconds
2) Initial Router Config Generator - setup firewalls, NAT, Wireless and ...
3) Includes ... Read More ...

Latest Release

Star - Get all our software

Get ALL our software

Today I'm allowing you to secure your spot at the introductory low price of only $29.99 $9.99 per month.

No typo. You can get all of our software and the benefits listed below for less than 35 cents a day!

Read more....

FREE Networking Tips

Have powerful new TIPS and information delivered to your inbox. Its a $395 value; but yours FREE!
Your Name
Your Email

Search Site

Get all our Software

Star - Get all our softwareToday I'm allowing you to secure your spot at the introductory low price of only $29.99 $9.99 per month.

No typo. You can get all of our software and the benefits listed below for less than 35 cents a day!

Read more....

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Windows Live Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Yahoo Add to: Blogmarks Add to: Technorati Add to: Google Information
BGP AS Path Prepending E-mail
Written by David Bombal   

Network Diagram:

 

*****************************************************************
AIM: Force ISPs to use line between R2 and R4 when traffic is sent to AS1
*****************************************************************

================================================
R3 trace:
================================================

================================================
R6 trace:
================================================

We want to force the ISPs to use upper link - MED won't work as lost between AS 2 and AS 4 - Not happening now!

================================================
R5 trace:
================================================

We want to force the ISPs to use upper link - MED won't work as lost between AS 2 and AS 4 - Not happening now!

================================================
Traffic Flow:
=================================================

Green = out of the AS

Red = into the AS

As can be seen, return traffic will sometimes use the bottom link - we want it to always use the top link.

 

================================================
Config on R3:
=================================================

router bgp 1
no synchronization
bgp router-id 3.3.3.3
bgp cluster-id 151587081
network 3.3.3.3 mask 255.255.255.255
network 9.9.9.9 mask 255.255.255.255
network 10.1.3.0 mask 255.255.255.0
network 10.1.4.0 mask 255.255.255.0
neighbor 2.2.2.2 remote-as 1
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 update-source Loopback0
neighbor 2.2.2.2 route-map setnexthop in
neighbor 5.5.5.5 remote-as 4
neighbor 5.5.5.5 ebgp-multihop 255
neighbor 5.5.5.5 update-source Loopback0
neighbor 5.5.5.5 send-community
neighbor 5.5.5.5 route-map setmetricout out <==== Route map is applied to
neighbor R5

no auto-summary
!
ip classless
ip route 2.2.2.2 255.255.255.255 10.1.3.1
ip route 5.5.5.5 255.255.255.255 10.1.4.2
no ip http server
ip as-path access-list 1 permit ^2$
!
access-list 1 permit any
access-list 10 permit any
route-map setmetricout permit 10
match ip address 10
set metric 200
set as-path prepend 1 1 1 1 <==== Prepend the AS1 four times to make path
longer for all routes

!
route-map setnexthop permit 10
set ip next-hop peer-address
!
route-map setweightin permit 10
match as-path 1
set ip next-hop peer-address
set weight 100

================================================
Output on R5:
=================================================

As you can see above, the trace went via the upper link!! As expected!

================================================
Output on R6:
=================================================

 

I hope that this has been beneficial to you.


To your success,

David Bombal
Managing Director
Network Experts Limited

Comments
Add New Search
Peter  - Cool   |2008-08-26 21:53:46
Thanks! Cool explanation
aries  - goog   |2008-10-06 02:56:46
very different and good.
Write comment
Name:
Email:
 
Title:
 
:D:):(:0:shock::confused:8):lol::x:P:oops::cry:
:evil::twisted::roll::wink::!::?::idea::arrow:
 
Please input the anti-spam code that you can read in the image.

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."