Master CCNA

How to Master CCNA Ebook

 

 

My book will help you Master CCNA

Master CCNP SWITCH

How to master CCNP SWITCH ebook

 

 

My book will help you Master CCNP SWITCH

Master CCNP ROUTE

How to master CCNP ROUTE Ebook

 

 

My book will help you Master CCNP ROUTE

Print

BGP Attribute MED

Written by Rene Molenaar on . Posted in BGP

Scenario:

The biggest ISP in the carribean needs your help with BGP. One of the junior BGP network engineers configured some new sites but has trouble influencing traffic patterns. Show him how to configure BGP MED and you'll have the day off to enjoy the beach and some nice sunshine.

Goal:

  • All IP addresses have been preconfigured for you as specified in the topology picture.
  • Configure IBGP in AS 1.
  • Configure EBGP between AS1 and AS 2.
  • Advertise the 4.4.4.0 /24 network on router Jamaica.
  • Ensure AS 1 will use the link between Cuba and Jamaica for traffic towards network 4.4.4.0 /24. You are only allowed to use the MED (metric) BGP attribute for this.

IOS:

c3640-jk9o3s-mz.124-16.bin

Topology:

BGP Attribute MED

Video Solution:

You need to a flashplayer enabled browser to view this YouTube video

You need to register to download the GNS3 Topology File. (Registration is Free!)

Related Articles
Only registered users can write comments!

Comments (5)

  • avatar
    ReneMolenaar
    Quote:
    Suriname should also use the route via Cuba right, so the next-hop-self (for neighbor Suriname) is required on both Cuba and Haiti right ?

    That's correct. In this lab however Suriname doesn't use Haiti anymore but when it does you need to make sure the next hop is resolvable.

    Quote:
    But what about the neighbor relationship between Cuba and Haiti - should they be configured as next-hop-self aswell (if not - their routes to AS2 will be invalid without an IGP underneath) ?

    Good question. The same thing applies here...router Cuba will have to know about the link between Haiti and Jamaica. Router Haiti will have to know about the link between Cuba and Jamaica.

    You can either advertise those links in a routing protocol or you can use the BGP next-hop-self command. If you use next-hop-self Haiti and Cuba will advertise themselves as the next-hop and not router Jamaica.

    Quote:
    If I configure Haiti and Cuba as next-hop-self (IE they both announce themselves as the next-hop to each other) - Router Suriname will only get ONE bgp path/route to 4.4.4.0/24 - the one through Cuba (why is that ?!)

    That's strange...even when you reset the BGP neighbors? Check if router Haiti and Cuba both have learned network 4.4.4.0/24 through EBGP and that they have a working IBGP adjacency with router Suriname. They should advertise this network through IBGP.

  • avatar
    uscallesen

    I simply cannot understand this behavior.

    This is debugs from Suriname:

    Quote:
    Suriname#
    *Mar 1 00:01:05.555: BGP(0): 192.168.12.2 rcvd UPDATE w/ attr: nexthop 192.168.12.2, origin i, localpref 100, metric 200, path 2
    *Mar 1 00:01:05.559: BGP(0): 192.168.12.2 rcvd 4.4.4.0/24
    *Mar 1 00:01:11.715: BGP(0): Revise route installing 1 of 1 routes for 4.4.4.0/24 -> 192.168.12.2(main) to main IP table
    *Mar 1 00:01:11.735: BGP(0): 192.168.13.3 rcvd UPDATE w/ attr: nexthop 192.168.13.3, origin i, localpref 100, metric 100, path 2
    *Mar 1 00:01:11.735: BGP(0): 192.168.13.3 rcvd 4.4.4.0/24
    *Mar 1 00:01:11.735: BGP(0): Revise route installing 1 of 1 routes for 4.4.4.0/24 -> 192.168.13.3(main) to main IP table
    *Mar 1 00:01:11.735: BGP(0): updgrp 1 - 192.168.12.2 updates replicated for neighbors: 192.168.13.3
    *Mar 1 00:01:11.735: BGP(0): updgrp 1 - 192.168.12.2 updates replicated for neighbors: 192.168.13.3
    *Mar 1 00:01:11.747: BGP(0): 192.168.12.2 rcv UPDATE about 4.4.4.0/24 -- withdrawn

    Why on earth is the route to 4.4.4.0/24 via 192.168.12.2 (metric 200) 'withdrawn' ? - it makes perfectly sense that it's not present in the routning table - but why is it not present in the BGP table ?!? :'(

    Quote:

    Suriname
    Network Next Hop Metric LocPrf Weight Path
    *> 1.1.1.0/24 0.0.0.0 0 32768 i
    *>i4.4.4.0/24 192.168.13.3 100 100 0 2 i

    Cuba
    Network Next Hop Metric LocPrf Weight Path
    *>i1.1.1.0/24 192.168.13.1 0 100 0 i
    *> 4.4.4.0/24 192.168.34.4 100 0 2 i

    Haiti
    Network Next Hop Metric LocPrf Weight Path
    *>i1.1.1.0/24 192.168.12.1 0 100 0 i
    *>i4.4.4.0/24 192.168.23.3 100 100 0 2 i
    * 192.168.24.4 200 0 2 i
  • avatar
    uscallesen

    Question :) And this admittedly goes beyond lab - Suriname should also use the route via Cuba right, so the next-hop-self (for neighbour Suriname) is required on both Cuba and Haiti right ?

    But what about the neighbor relationship between Cuba and Haiti - should they be configured as next-hop-self aswell (if not - their routes to AS2 will be invalid without an IGP underneath) ?

    If I configure Haiti and Cuba as next-hop-self (IE they both announce themselves as the next-hop to each other) - Router Suriname will only get ONE bgp path/route to 4.4.4.0/24 - the one through Cuba (why is that ?!)

  • avatar
    ReneMolenaar

    I just loaded my final configuration and set "next-hop-self" for Cuba and Haiti. This is what happens:

    Router Haiti can get to network 4.4.4.0 through Cuba or Jamaica. You can see this in the BGP table. It installs the route through Cuba because of the MED.

    Router Cuba uses the direct link to get to network 4.4.4.0 through Jamaica.

    BGP will only advertise the best path. Router Haiti only advertises network 4.4.4.0 with next hop 3.3.3.3. So does router Cuba.

    Router Suriname will end up with a single entry for network 4.4.4.0 / 24 in its routing table.

  • avatar
    uscallesen

    Thanks alot for the feedback Rene (and for another great lab)