BGP: LAB: BGP ENABLING AND PEERING


bgp enabling

Here, BGP enabling and peering process with peers, both are explained

 

1. How to enable BGP

Config:

router#conf t

router#router bgp <AS Number>

 

2. How to do the peering process

Explanation for Router, R1:

First two segments

Assigns ip to Loopback0 and Serial0/0

Third segment:

router bgp 100

/Syntax to enable bgp: router bgp AS number/

no synchronization

/Given in bgp attributes section/

bgp log-neighbor-changes

neighbor 2.2.2.2 remote-as 200

/ Syntax to explicitly define neighbor: neighbor <> remote-as <AS number> /

/ In bgp, neighbors have to be explicitly defined using above command. whereas in other protocols simple enable the protocol on required interfaces, then these interfaces become neighbors, there is no requirement of defining neighbor /

neighbor 2.2.2.2 update-source loopback0

/ In bgp by default, neighbor ship is formed with physical interfaces.

Here for neighbor ship, virtual interface loopback0 is used. It has to be updated using above command/

Fourth Segment:

ip route 0.0.0.0 0.0.0.0 10.1.1.2

/ Before making bgp neighbor ship, route between two devices must be present in routing table

So, default route is configured /

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s