Author Topic: export route BGP by status neighbor?  (Read 1401 times)

soundbear

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
export route BGP by status neighbor?
« on: June 29, 2011, 05:47:41 am »
Hi all,

Please help me resolve this case:

................R3
...............// (link 1)
..R1 === R2
...............\\ (link 2)
................R4


R1, R2 ins AS1.
R3 in AS2.
R4 in AS3
R1 advertise 4 prefixs: 10.0.0/24, 10.0.1/24, 10.0.2/24, 10.0.3/24 to R2, and R2 adverties them to R3, R4

My system has 2 link IXP to internet, but bandwidth is very low. So if 1 in 2 link DOWN, I don't want to advertise full route to IXP AS:
+ If both of 2 link 1 & 2 UP, RT2 will advertise 4 prefixs from RT1 (10.0.0/24-10.0.3/24)to RT3 & RT4
+ If link 1 or link 2 DOWN, RT2 just advertises only 1 prefix (10.0.3.0/24) to another AS.

My device is MX80 (Juniper JUNOS 10.2R4.8).
I can't find any policy to do this. Please let share to me.

Thanks


screenie.

  • Global Moderator
  • Atomic Playboy
  • *****
  • Posts: 1315
  • Karma: +1/-0
    • View Profile
Re: export route BGP by status neighbor?
« Reply #1 on: June 29, 2011, 06:47:24 am »
Don't think it can be done with policies. Look into eventscripting!.
Regards, Screenie
------------------------
JNSS, JNCIA, JNCIS, JNCIP, JNCI

soundbear

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: export route BGP by status neighbor?
« Reply #2 on: June 30, 2011, 04:03:16 am »
:d i found it.
Use policy with condition : if-route-exits. This solution likes Cisco 's "advertise map".
Some guys recommend me use "event script", but it's so hard with me, i don't know about script by Perl, C.
Any body know clearly about this?please share with me
Thanks