BGP Configuration on JunOS


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

show bgp summary


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 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 can be reach via em0.0 (through J2)

Now lets change it…route will be reached via em1.0 (through J3)

Configure local preference on R1

Import the policy into BGP group *screenshot missing…I forgot haha*


Basic QoS Configuration in JunOS

Leave a comment

Default traffic allocation dalam Juniper Router itu 1:19, alias 95:5

95% traffic untuk Best Effort (BE) dan 5% traffic sisa untuk Network Control (NC)

(mungkin lo harus nyebrang2 artikel dulu untuk liat best-effort dan network control dalam QoS itu apa dan gunanya apa)

Link ane

Dalam juniper, BE dan NC ini adalah 2 dari 4 forwarding-class yang bisa dikonfig

Lets see the “show class-of-service”

Ada BE, NC, AF (Assured-Forwarding), dan EF (Expedited-Forwarding)

If you familiar with AF31, AF42,atau EF…yup…this is DSCP (differentiated service code point)


Setting CoS (Class of Service) for specific address(es)

Contoh kita pengen LAN kita ( pake CoS EF

First, create the rule…firewall rule

Jgn lupa yang laen juga (implicit deny/silent discard soalnya nanti)

The show

Second, apply to the interface (the logics are same right?!?)

Eh…kita settingnya kan pake Expedited Forwarding, dapet brp bandwidth tuh?? Kan blum diset ??

Bisa ga di rubah untuk BE 20%, AF 30%, EF 40%, dan NC 10% ??

Bisa…nyok kita setting


Changing Class-of-Service priority bandwidth between Queue

First, create CUSTOM MAPPING for CoS

Lets see the show

Second, we DEFINE that custom mapping (CUSTOM-BE and his friends)

Third, set the interface that we want to apply that Custom CoS Mapping

And here’s the complete configuration


Andddd…by the way…kita bisa kasi nama buat masing2 queue loh

Trus klo mau kasi custom dscp trus apply ke interface gimana?? (ini bukan basic lagi namanya -_-; )

Trus masukin ke interface (di hierarki class-of-service, bukan di interfacenya)

Older Entries