Configure basic BGP

How to configure BGP on juniper Router

Juniper Advanced Network Administrator

BGP means Border gateway protocol. it isĀ  exterior gateway protocol(EGP) that is exchange routing information to another AS number. in this tutorial we share how to configure basic BGP on juniper router.

set interfaces em0 unit 0 description Contected-R2
set interfaces em0 unit 0 family inet address 172.16.10.1/30
set routing-options autonomous-system 100
set protocols bgp group external-peers type external
set protocols bgp group external-peers peer-as 200
set protocols bgp group external-peers neighbor 172.16.10.2
set interfaces em0 unit 0 description Contected-R1
set interfaces em0 unit 0 family inet address 172.16.10.2/30
set routing-options autonomous-system 200
set protocols bgp group ebgps type external
set protocols bgp group ebgps peer-as 100
set protocols bgp group ebgps neighbor 172.16.10.1
set interfaces em1 unit 0 description Contected-R3
set interfaces em1 unit 0 family inet address 172.16.11.2/30
set routing-options autonomous-system 200
set protocols bgp group external-peers type external
set protocols bgp group external-peers peer-as 300
set protocols bgp group external-peers neighbor 172.16.11.1
set interfaces em1 unit 0 description Contected-R1
set interfaces em1 unit 0 family inet address 172.16.11.1/30
set routing-options autonomous-system 300
set protocols bgp group external-peers type external
set protocols bgp group external-peers peer-as 200
set protocols bgp group external-peers neighbor 172.16.11.2

 

commit

Verify BGP

show bgp summary

show bgp group

1 thought on “How to configure BGP on juniper Router

Leave a Reply

Your email address will not be published. Required fields are marked *