Play time with JunOS BGP !!!
This article will cover e-BGP, i-BGP, Route Advertisement, and Local Preference configuration on JunOS
Network Design
e-BGP configuration
e-BGP on J1 (J2 and J3 can be done accordingly)
set router-id first…
And then set neighborship
i-BGP configuration
i-BGP on J2 (J3 can be done accordingly)
We can see that J2 has 2 groups…1 for i-BGP peers and 1 for e-BGP peers
BGP Neighborship
Lets take a look at BGP Neighborship on J3 after all converges
BGP Route Advertisement
BGP Route Advertisement on J1 (J2 and J3 can be done accordingly)
Set policy for advertising the routes, for example we want J1 to advertise 1.1.1.1 from its loopback
Then export the policy into BGP group external
Route advertisement verification on J2
Route advertisement on J2 is slightly a little bit different, we export the policy ABOVE the BGP group (right after we set protocol bgp)
So, both internal and external BGP get the routes
Verification on J1
Configuring Path Modification via Local Preference
Accourding to “show route protocol bgp”, we get information that route 2.2.2.2 can be reach via em0.0 (through J2)
Now lets change it…route 2.2.2.2 will be reached via em1.0 (through J3)
Configure local preference on R1
Import the policy into BGP group *screenshot missing…I forgot haha*
Verification
Jul 30, 2017 @ 16:37:49
Mas Miftah, mau tanya , bagaimana verifikasi (command) di Juniper untuk mengecek apakah prefix suatu pelanggan sudah di advertise ke suatu AS ?
Aug 02, 2017 @ 18:07:46
show route protocol bgp
https://forums.juniper.net/t5/Routing/JUNOS-equivalent-of-Cisco-s-quot-show-ip-bgp-quot-command/td-p/227817
Nov 24, 2020 @ 19:14:24
Mas miftah saya mau tanya, saya tertarik dengan BGP, sekiranya untuk pemula bisa menggunakan simulator apa ya? apakah bisa menggunakan GNS3? kalo bisa lebih baik menggunakan image cisco yg berapa ya mas? terima kasih
Jan 23, 2021 @ 19:12:44
3650 juga bisa