You are on page 1of 13

Technologies

ZOOM

BGP Neighbor

Technologies

ZOOM

1.81 S0 1.82 S1
In router B Router BGP 110 neighbor 1.93 ? or neighbor 1.90 ?

A AS 110 IBGP

1.94 S1 1.93 S0

B

1.85 S0

C
1.86 S1 1.89 S0 1.90 S1

In router C Router BGP 110 neighbor 1.82 ? or neighbor 1.85 ?

D

0.81 S0 1.20.1/24 Router BGP 110 neighbor 10.0.10.0.255.94 S1 1.0.0.90 S1 In router C Interface loopback 1 IP add 10.0. BGP messages Destination IP = Neighbor IP Source IP = Primary IP of Outgoing Interface BGP check source IP in its neighbor command.1 update-source loopback 12 B(config)#int loopback 12 B(config-if)#ip add 10.20.85 S0 C 1.1 D On Router B B(config)#router BGP 110 B(config-router)#neighbor 10.93 S0 ZOOM A AS 110 IBGP B In router B Interface loopback 12 IP add 10.20. BGP Neighbor 1.20.93 S0 Technologies ZOOM A AS 110 IBGP B In router B Interface loopback 12 IP add 10.86 S1 1.82 S1 Technologies 1.20.89 S0 1.20.1 1.1/24 Router BGP 110 neighbor 10.1 remote-as 110 B(config-router)#neighbor 10.81 S0 1.10.82 S1 1.1 255.10.90 S1 In router C Interface loopback 1 IP add 10.0.86 S1 1.10.BGP Neighbor 1.0.1 D Loopback interface should be used for forming neighbor relationship.1/24 Router BGP 110 neighbor 10.1 1.94 S1 1. if no match Message will be discarded.0 .255.85 S0 C 1.1/24 Router BGP 110 neighbor 10.89 S0 1.0.0.0.10.

20.2 S0 B EBGP F 11.0/8 S2 S0 2.0 255.2/30 S0 S1 10. 0.255.0. the Next-hop IP address used to reach the next AS.255.1 255.1/30 B AS 523 On Router A A(config)#router BGP 278 A(config-router)#neighbor 10.0 s 1 Next Hop in BGP OSPF AS 110 Technologies ZOOM S2 2.EBGP Neighbor 10.2 S1 1.255.1.1.20.0 255.1.0.20.1/30 S0 10.0.0 A(config)#ip route 10.0.0.0.0. not a router-byrouter routing protocol.1 B 11. .0/8 AS 5252 E AS 2121 BGP is an AS-by-AS routing protocol.2.2/30 Technologies ZOOM A AS 278 S1 10.1 S0 1.0. 0.0 s 0 A(config)#ip route 10.0.255.10.0.0.1 3.20.2.20.1 update-source loopback 12 A(config-router)#neighbor 10.0.1 ebgp-multihop 2 A(config)#int loopback 12 A(config-if)#ip add 10.255.1 AS 5252 NH 192. next hop ≠ next router.1 remote-as 523 A(config-router)#neighbor 10.255.168.2 IBGP C EBGP S1 3.

Next Hop in BGP OSPF AS 5252 5252.1 S0 C 2. B(config-router)#neighbor 192.2 S1 3.1 Technologies ZOOM S0 1.1 AS 110 AS NH 192.0/8 S2 IBGP 2.2 next-hop-self BGP Troubleshooting Technologies ZOOM Clearing BGP neighbor relationship On modification or implementation of new policy.0.0/8 AS 5252 E AS 2121 If Router C doesn't know how to reach 1. resetting BGP peers is required.168.0/8 S2 B 11.  Check for neighbor command in both route.1 3.0.1 it cannot reach 11. R#clear ip bgp *| <neighbor IP> BGP resets connection and starts from Idle State. BGP takes time to show results.168.0. If BGP State is Idle or Active for long time.0.0.2. .2 S1 1. For instant implementation of policies. R#clear ip bgp *| <neighbor IP> soft out|in Clear only BGP updates.0 network.0. TCP connection will not be reset.2.  Check for route exist in routing table to reach neighbor.2 S0 EBGP EBGP F 11.0.0.1 B B 11.NH 1.

S.  Non transitive – Only for that router should not be pass to neighbors. R(config-Router)#aggregate-address <network> <mask> [summary-only] BGP Metric Technologies ZOOM BGP metric is called as Attributes or Rich Metric. Metric Characteristics.BGP Summarization Technologies ZOOM  BGP Supports auto and manual summary.  Optional – May not be recognized by every vendor  Mandatory – Must be present in updates.  Manual summary can be done at any point in network.  Discretionary – May be present in updates  Transitive – Send to other neighbors.  Well Known – Recognized by all the vendors. – Summary can carry network belonging to multiple A.  Partial – Proprietary .

0.0.0.0.0.0.0/8 12.0.0/8 12. AS path : 2007 AS 2007 11.  AS Path is Well known.BGP Attributes Technologies ZOOM BGP Attributes contain following  AS Path  Next hop  Origin  Local preference  Multi Exit Discriminator  Weight AS Path Technologies ZOOM  List of AS through which updates has traversed.0.  Path with shortest AS path list is more desirable. mandatory and transitive attribute.0/8 11.0/8 AS200 AS2003 .

AS 123 11.1.1 S0 1.  “I” is better then “e” and “e” is better then “?” .0.1 B 11.1 IBGP S0 2. mandatory and transitive attribute.168.0/8 AS 123 NH 192.0. – IGP (i) • network command – EGP (e) • Redistributed from EGP – Incomplete (?) • Redistributed from IGP or static  The origin attribute is well-known.0/8 AS 110 S1 1.0. and transitive. mandatory.1.2 S2 2.0.0.0.2 B C Origin Technologies ZOOM  Origin inform all AS in Internetwork how network got introduced into BGP.0/8 F AS 123 NH 192.1 B 11.Next Hop Technologies ZOOM  BGP is AS by AS routing Protocol  Next hop ≠ next router  Next hop = IP to reach next AS  Next hop well known.168.

0/8 .  It is advertised only to IBGP neighbor within an AS.  Default value is 100  Local preference is Well known.Local Preference Technologies ZOOM  Local preference define how data traffic should exit from an AS. discretionary and transitive only to IBGP neighbor.0.0. Local Preference Technologies ZOOM A My AS 123 B C AS 21117 AS 1220 AS 125 AS 179 11.  Path with highest preference value is more desirable.

0.0.0/24 C AS 12200 B .1 LP 100 AS 21117 C LP 250 AS 1220 AS 125 AS 179 11.Local Preference Technologies ZOOM A My AS 123 B 11.0.2.15.0/8 Multi Exit Discriminator Technologies ZOOM A My AS 123 192.0.

2.1 C AS 12200 B Multi Exit Discriminator Technologies ZOOM  MED define how the data traffic should enter an AS.2.  MED is used to advertised to EBGP neighbor only.15.15.  Path with less MED is more desirable.  Default is value 0.  MED is optional and non transitive.Multi Exit Discriminator Technologies ZOOM A My AS 123 192. .0/24 192.

 Path with the highest weight is more desirable.0/8 Weight Technologies ZOOM  Weight is Cisco’s attribute.0.0.0.  Weight is partial attribute. .0. it is not advertised to any neighbor.1 Technologies Weight 300 AS 21117 ZOOM A My AS 123 Weight 500 C B AS 1220 AS 179 11.  Weight is configured locally to each router.  Default weight is 32768 for local network and 0 for other.Weight 11.

0.0.0.0.1 Technologies ZOOM A My AS 123 B LP 250 C LP 100 AS 21117 12.0/8 AS 1220 14.0.0.1 14.0.0.0.0/8 AS 179 11.0/8 .0) – Prefer shortest AS path – Prefer lowest origin code (IGP < EGP < incomplete) – Prefer lowest MED (from other AS) – Prefer a path from EBGP neighbor over IBGP neighbor – Prefer the path through the closest IGP neighbor – Prefer oldest route for EBGP neighbor – Prefer the path with the lowest neighbor BGP router ID Route Map for BGP policy 13. no AS loops and a valid next hop route for path selection processes: – Prefer highest weight (local to router) – Prefer highest local preference (global within AS) – Prefer route originated by the local router (next hop = 0.0.0.0.0.0/8 AS 125 13.0.0.0.1 12.1 11.BGP Path Selection Processes Technologies ZOOM BGP Consider only (synchronized).0.0.

0.0.0/8 C My AS 123 ISP B 61.0.0 Set Local preference 250 C LP 100 AS 21117 AS 1220 AS 125 AS 179 11.0.0.0/8 Multi-homing AS Technologies ZOOM ISP A 112.0.Route Map for BGP policy Technologies ZOOM A My AS 123 B Route-map BGP Match IP add 11.0/8 Global ISP X A B Global ISP Y .0.0.