Solved

BGP Juniper Route advertisement

Posted on 2009-07-11
4
678 Views
Last Modified: 2012-08-14
Hi,
I want to know that in Juniper routers, is it required to advertise networks when configuring BGP?
In Cisco routers we use the network command to tell which route to advertise. Is that required in Juniper routers as well? Can someone please tell me what the configuration would be in Juniper router for that?  
0
Comment
Question by:shwaqar82
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 5

Expert Comment

by:JanSc
ID: 24833616
Yes, always nescesary to advertise networks.

In Juniper OS: set vrouter trust-vr protocol bgp network x.x.x.x/y check z.z.z.z/y
where z.z.z.z/y is IP of subnet/interface connected to BGP cloud, and x.x.x.x/y is internal network to be advertised.
Can also be done trough web interface (interfaces/routing sector) z.z.z.z is your virtual interface in BGP
0
 

Author Comment

by:shwaqar82
ID: 24835944
I believe the command you just told is ScreenOS command not JUNOS....I am working on JUNOS actually
0
 
LVL 4

Accepted Solution

by:
szfeco earned 500 total points
ID: 25954841
with Junos you can create an export policy and export directly connected networks or any other networks.

Like this:
set policy-options policy-statement my_policy term direct-to-bgp from protocol direct
set policy-options policy-statement my_policy term direct-to-bgp then accept
set policy-options policy-statement my_policy term default then reject

set protocols bgp group my_group neighbor 1.1.1.1 export my_export_policy

it will advertise the directly connected networks.

HTH,
szfeco
0

Featured Post

Free NetCrunch network monitor licenses!

Only on Experts-Exchange: Sign-up for a free-trial and we'll send you your permanent license!

Here is what you get: 30 Nodes | Unlimited Sensors | No Time Restrictions | Absolutely FREE!

Act now. This offer ends July 14, 2017.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question