Junos
Showing results for 
Search instead for 
Do you mean 
Reply
New User
Posts: 1
Registered: ‎10-14-2010
0 Kudos

redistribute static route into VRF

Folks,

   can someone help me with a JUNOS cfg similar to this Cisco cfg

 

 I have a L3VPN setup:  PE1 ----- PE2

 

on PE1 I have the below cfg.  What is a similar cfg for JUNOS, how can I redistribute static routes under VRF to send

it across to the other PE. Thanks

 

 ip vrf red

rd 3:3

route-target export 3:4

route-target import 4:5

!

router bgp 1

neigh PE2 remote 1

addr vpnv4

neigh PE2 activate

addr ipv4 vrf red

redistribute static

!

ip route vrf red 33.3.3.3 255.255.255.255 null0

!

Highlighted
Trusted Expert
Trusted Expert
Posts: 328
Registered: ‎08-26-2009
0 Kudos

Re: redistribute static route into VRF

hi,

 

Configuring a Simple Full-Mesh VPN Topology chapter of JUNOS Software VPNs Configuration Guide should help you. To redistribute static routes you need to configure VPN export policy (vrf-export).

 

Follow carefully the example. Of course, one can use LDP instead of RSVP.

jtb

Contributor
Posts: 10
Registered: ‎05-09-2017
0 Kudos

Re: redistribute static route into VRF

how to redistribute DIRECT route into VRF?

Distinguished Expert
Posts: 1,915
Registered: ‎06-06-2011
0 Kudos

Re: redistribute static route into VRF

[ Edited ]

https://www.juniper.net/documentation/en_US/junos/topics/example/policy-duplicating-routes.html

https://www.juniper.net/documentation/en_US/junos/topics/example/routing-table-import.html

 

 BTW- did you read the doc that jtb pointed you to? It has example, you just need to modify it to suite your environment, so don't add a community, don't use protocol bgp and ospf in the policy, instead use protocol direct, and replace the RI with your own RI.

example shown should help. Instead of using all the protocols such bgp, use from protocol direct

[KUDOS PLEASE! If you think I earned it!
If this solution worked for you please flag my post as an "Accepted Solution" so others can benefit..]