CONFIGURE EBGP NEIGHBORSHIP IN JUNOS

To configure BGP peer session on “A” [p2p type=”slug” value=”router-basics”]Router [/p2p]This document will help understand[p2p type=”slug” value=”ebgp-vs-ibgp”] eBGP [/p2p]configuration across 2 JUNOS enabled [p2p type=”slug” value=”bgp-neighbor-states”]BGP[/p2p] Routers in different AS. Below is the diagram showing connectivity between devices, their [p2p type=”slug” value=”ip-addressing-scheme-ipv4"]IP address [/[/p2p]d AS number each belongs to –configure-ebgp-neighborship-in-junos

 

TO CONFIGURE THE BGP PEER SESSION ON “HUB” ROUTER –

Step 1 –
Configure the interface to Peers A


[e[edit interfaces]er@HUB# set ge-1/2/0 unit 0 description to-A
user@HUB# set ge-1/2/0 unit 0 family inet address 192.168.1.1/30 
Step 2 –
Set the autonomous system (AS) number
[e[edit interfaces]er@HUB# set autonomous-system 1
Step 3 –
Create the BGP group, and add the external neighbor addresses.
[e[edit protocols bgp group external-peers]er@HUB# set neighbor 192.168.1.2

Step 4 –
Specify the autonomous system (AS) number of the external AS.

[e[edit protocols bgp group external-peers]er@HUB# set peer-as 2

Step 5 –
Set the peer type to external BGP (EBGP)

[e[edit protocols bgp group external-peers]er@HUB# set type external

TO CONFIGURE THE BGP PEER SESSION ON “A” ROUTER –

Step 6 –
Configure the interface to Peer HUB

[e[edit interfaces]er@A# set ge-1/2/0 unit 0 description to-HUB
user@A# set ge-1/2/0 unit 0 family inet address 192.168.1.2/30
Step 7 –
Set the autonomous system (AS) number.
[e[edit routing-options]er@A# set autonomous-system 2

Step 8 –
Create the BGP group, and add the external neighbor addresses.

[e[edit protocols bgp group external-peers]er@A# set neighbor 192.168.1.1

Step 9 –
Specify the autonomous system (AS) number of the external AS.

[e[edit protocols bgp group external-peers]er@A# set peer-as 1

Step 10 –
Set the peer type to external BGP (EBGP).

[e[edit protocols bgp group external-peers]er@A# set type external

VERIFICATION –

From configuration mode, confirm your configuration by entering the show interfaces, show protocols, and show routing-options commands.

Some of BGP status and neighborship command include –

  • show bgp neighbor
  • show bgp group

Additionally “Show BGP Summary” command output also provides information in addition to BGP neighorship –

user@HUB> show bgp summary
Groups: 1      Peers: 1      Down peers: 0
Table          Tot Paths  Act Paths Suppressed    History    Damp State    Pending
inet.0                 0          0                       0                     0              0                       0Peer                     AS      InPkt     OutPkt    OutQ   Flaps Last Up/Dwn         State|#Active/Received/Accepted/Damped…
192.168.1.2         22       8559       8470       0             0       2d   17:11:36          0/0/0/0

Please follow and like us:
error

Related Posts

Add Comment

Social Media Auto Publish Powered By : XYZScripts.com
Select your currency
USD United States (US) dollar

Checkout : E-STORE for latest release "JNCIP-SEC & JNCIA-SEC Interview Q&A " Dismiss