[j-nsp] JUNOS POLICY question
Kent Yu
kyu@opnet.com
Thu, 3 Oct 2002 13:48:09 -0400
This is a multi-part message in MIME format.
------=_NextPart_000_016E_01C26AE3.825404E0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MessageJunos qualified-next-hop is more like cisco's floating static =
route. As the preference or metric are different than the primary =
routes, they should not be active all the time.
To do load balancing, you need to configure all the next-hop routes and =
configure a forwarding table policy:
route 0.0.0.0/0 {
next-hop [ 10.1.1.2 10.1.1.3 ];
forwarding-table {
export test;
}
policy-statement test {
term 10 {
from protocol static;
then {
load-balance per-packet;
}
}
HTH
--kent
----- Original Message -----=20
From: Harshit Kumar=20
To: jnpr cisco=20
Cc: juniper-nsp@puck.nether.net=20
Sent: Wednesday, October 02, 2002 3:21 PM
Subject: RE: [j-nsp] JUNOS POLICY question
You can use qualified-next-hop statement. You can refer to this
documentation for syntax.
=
http://www.juniper.net/techpubs/software/junos54/swconfig54-routing/html/=
routing-tables-config6.html
--harshit
-----Original Message-----
From: jnpr cisco [mailto:junocisco@yahoo.com]=20
Sent: Wednesday, October 02, 2002 2:55 AM
To: Harshit Kumar
Subject: RE: [j-nsp] JUNOS POLICY question
Thanx for replying harshit,=20
any ways i worked around that issue,=20
how ever, =20
i need to know how can we load balance on static route to 0.0.0.0 =
with two next-hops.=20
it would be gr8 if u can help me with that,=20
thanx again,=20
rgds,=20
Harshit Kumar wrote:=20
What is ur IBGP config ?
-----Original Message-----
From: jnpr cisco [mailto:junocisco@yahoo.com]=20
Sent: Saturday, September 28, 2002 5:53 AM
To: juniper-nsp@puck.nether.net
Subject: [j-nsp] JUNOS POLICY question
This is regarding policy routing in JunOS,
we have applied=20
term T1 {
from {
protocol bgp;
route-filter 0.0.0.0/2 orlonger;
}
then {
local-preference 80;
accept;
}
}
term T3 {
from protocol bgp;
then {
local-preference 90;
}
AND since then! , i can see two routes one with 90 local =
preference, which is recieved from another IBGP neigbour, and the one =
with 80 Local Preference. How ever, when this router is advertising the =
routes it does'nt advertise the routes with 80 local-pref , even though =
Advertise-inactive flag is enabled.=20
could any one advise on why this ro! uter is not advertising the =
routes with Local-Pref of 80.=20
thanx,
------------------------------------------------------------------------
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
-------------------------------------------------------------------------=
---
Do you Yahoo!?
New DSL Internet Access from SBC & Yahoo!
------=_NextPart_000_016E_01C26AE3.825404E0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Junos qualified-next-hop is more like cisco's =
floating static=20
route. As the preference or metric are different than the primary =
routes, they=20
should not be active all the time.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>To do load balancing, you need to configure all =
the=20
next-hop routes and configure a forwarding =
table policy:</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>route 0.0.0.0/0 {<BR> next-hop [ =
10.1.1.2=20
10.1.1.3 ];</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>forwarding-table {<BR> export=20
test;<BR>}</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>policy-statement test {</FONT></DIV>
<DIV><FONT size=3D2>term 10 {<BR> from protocol=20
static;<BR> then=20
{<BR> load-balance=20
per-packet;</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2> }<BR>}</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV>HTH<BR>--kent</DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
<A title=3Dharshit@juniper.net =
href=3D"mailto:harshit@juniper.net">Harshit=20
Kumar</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
title=3Djunocisco@yahoo.com=20
href=3D"mailto:junocisco@yahoo.com">jnpr cisco</A> </DIV>
<DIV style=3D"FONT: 10pt arial"><B>Cc:</B> <A =
title=3Djuniper-nsp@puck.nether.net=20
=
href=3D"mailto:juniper-nsp@puck.nether.net">juniper-nsp@puck.nether.net</=
A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Wednesday, October 02, =
2002 3:21=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> RE: [j-nsp] JUNOS =
POLICY=20
question</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2>You can use qualified-next-hop<SPAN =
class=3D855151919-02102002>=20
statement. You can refer to =
this</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN class=3D855151919-02102002>documentation for=20
syntax.</SPAN></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN=20
=
class=3D855151919-02102002></SPAN></FONT></FONT></FONT></SPAN> </DIV=
>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN class=3D855151919-02102002><A=20
=
href=3D"http://www.juniper.net/techpubs/software/junos54/swconfig54-routi=
ng/html/routing-tables-config6.html">http://www.juniper.net/techpubs/soft=
ware/junos54/swconfig54-routing/html/routing-tables-config6.html</A></SPA=
N></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN=20
=
class=3D855151919-02102002></SPAN></FONT></FONT></FONT></SPAN> </DIV=
>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN=20
=
class=3D855151919-02102002>--harshit</SPAN></FONT></FONT></FONT></SPAN></=
DIV>
<DIV><SPAN class=3D174271719-02102002><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2><SPAN=20
=
class=3D855151919-02102002></SPAN></FONT></FONT></FONT></SPAN> </DIV=
>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original Message-----<BR><B>From:</B> =
jnpr cisco=20
[mailto:junocisco@yahoo.com] <BR><B>Sent:</B> Wednesday, October 02, =
2002=20
2:55 AM<BR><B>To:</B> Harshit Kumar<BR><B>Subject:</B> RE: [j-nsp] =
JUNOS=20
POLICY question<BR><BR></FONT></DIV>
<P>Thanx for replying harshit,=20
<P>any ways i worked around that issue,=20
<P>how ever, =20
<P>i need to know how can we load balance on static route to 0.0.0.0 =
with=20
two next-hops.=20
<P>it would be gr8 if u can help me with that,=20
<P>
<P>thanx again,=20
<P>rgds,=20
<P>
<P>
<P> <B><I>Harshit Kumar <HARSHIT@JUNIPER.NET></I></B>wrote:=20
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff =
2px solid">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<DIV>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN =
class=3D165464106-02102002><FONT=20
face=3DArial color=3D#0000ff>What is ur IBGP config=20
?</FONT></SPAN></FONT></FONT></DIV></DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr =
align=3Dleft><FONT=20
face=3DTahoma size=3D2>-----Original =
Message-----<BR><B>From:</B> jnpr cisco=20
[mailto:junocisco@yahoo.com] <BR><B>Sent:</B> Saturday, =
September 28,=20
2002 5:53 AM<BR><B>To:</B>=20
juniper-nsp@puck.nether.net<BR><B>Subject:</B> [j-nsp] JUNOS =
POLICY=20
question<BR><BR></FONT></DIV>This is regarding policy routing in =
JunOS,<BR><BR>we have applied <BR><BR>term T1 =
{<BR> =20
from {<BR> protocol=20
bgp;<BR> route-filter=20
0.0.0.0/2 orlonger;<BR> =
}<BR> then=20
{<BR> local-preference =
80;<BR> =20
accept;<BR> }<BR>}<BR>term T3 =
{<BR> =20
from protocol bgp;<BR> then=20
{<BR> local-preference =
90;<BR> }<BR><BR><BR>AND since then! , i can =
see two=20
routes one with 90 local preference, which is recieved from =
another IBGP=20
neigbour, and the one with 80 Local Preference. How ever, when =
this=20
router is advertising the routes it does'nt advertise the routes =
with 80=20
local-pref , even though Advertise-inactive flag is enabled.=20
<BR><BR>could any one advise on why this ro! uter is not =
advertising the=20
routes with Local-Pref of 80. <BR><BR>thanx,<BR><BR>
<P><BR>
<HR SIZE=3D1>
Do you Yahoo!?<BR>New <A=20
=
href=3D"http://rd.yahoo.com/evt=3D1207/*http://sbc.yahoo.com/">DSL =
Internet=20
Access</A> from SBC & Yahoo!</A></BLOCKQUOTE></BLOCKQUOTE>
<P><BR>
<HR SIZE=3D1>
Do you Yahoo!?<BR>New <A=20
href=3D"http://rd.yahoo.com/evt=3D1207/*http://sbc.yahoo.com/">DSL =
Internet=20
Access</A> from SBC & =
Yahoo!</A></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_016E_01C26AE3.825404E0--