To configure BGP peer session on “A” Router. This doc will assist perceive eBGP configuration throughout 2 Junos enabled BGP Routers in numerous AS.
Instance State of affairs: eBGP Neighborship in Junos
Under is the diagram displaying connectivity between units, their IP tackle and AS quantity every belongs to –
To Configure the BGP Peer Session on “HUB” Router –
Step 1
Configure the interface to Friends A
[edit interfaces]consumer@HUB# set ge-1/2/0 unit 0 description to-A
consumer@HUB# set ge-1/2/0 unit 0 household inet tackle 192.168.1.1/30
Step 2
Set the autonomous system (AS) quantity
[edit interfaces]consumer@HUB# set autonomous-system 1
Step 3
Create the BGP group, and add the exterior neighbor addresses.
[edit protocols bgp group external-peers]consumer@HUB# set neighbor 192.168.1.2
Step 4
Specify the autonomous system (AS) variety of the exterior AS.
[edit protocols bgp group external-peers]consumer@HUB# set peer-as 2
Step 5
Set the peer kind to exterior BGP (EBGP)
[edit protocols bgp group external-peers]consumer@HUB# set kind exterior
To Configure the BGP Peer Session on “A” Router –
Step 6
Configure the interface to Peer HUB
[edit interfaces]consumer@A# set ge-1/2/0 unit 0 description to-HUB
consumer@A# set ge-1/2/0 unit 0 household inet tackle 192.168.1.2/30
Step 7
Set the autonomous system (AS) quantity.
[edit routing-options]consumer@A# set autonomous-system 2
Step 8
Create the BGP group, and add the exterior neighbor addresses.
[edit protocols bgp group external-peers]consumer@A# set neighbor 192.168.1.1
Step 9
Specify the autonomous system (AS) variety of the exterior AS.
[edit protocols bgp group external-peers]consumer@A# set peer-as 1
Step 10
Set the peer kind to exterior BGP (EBGP).
[edit protocols bgp group external-peers]consumer@A# set kind exterior
Verification
From configuration mode, verify your configuration by getting into the present interfaces, present protocols, and present routing-options instructions.
A few of BGP standing and neighborship command embrace –
- present bgp neighbor
- present bgp group
Moreover “Present BGP Abstract” command output additionally gives data along with BGP neighorship –
consumer@HUB> present bgp abstract
Teams: 1 Friends: 1 Down friends: 0
Desk Tot Paths Act Paths Suppressed Historical past Damp State Pending
inet.0 0 0 0 0 0 0Peer AS InPkt OutPkt OutQ Flaps Final Up/Dwn State|#Energetic/Obtained/Accepted/Damped…
192.168.1.2 22 8559 8470 0 0 2nd 17:11:36 0/0/0/0
Proceed Studying:
eBGP vs iBGP: Know the distinction between eBGP and iBGP
Are you Making ready in your subsequent Interview?
Should you ware getting ready in your nest job interview, then test our e-book on BGP Interview Q&A in downloadable PDF Format defined with related Diagrams.