Junos
Reply
Contributor
zvitins
Posts: 132
Registered: ‎12-04-2009
0

Virtual router routes

Hello,

 

I have j2350 device with junos [9.6R2.11].

I have created one BGP instance and two virtual routers with BGP.

I successfully get routes from all bgp instances:

I have 3 subnets with servers on ge-0/0/1 each subnet have own unit.


 

 

I want to know, is it possible to to create configuration on this device, that one test subnet with servers get all routes, second subnet get routes only from local bgp and one virtual router and third subnet get routes only from  local bgp.

 

Thanks.

 



 


 


Super Contributor
mnarine
Posts: 179
Registered: ‎10-03-2009
0

Re: Virtual router routes

Haven't did this myself but with JunOS filters you should be able to accomplish what you need.

Contributor
zvitins
Posts: 132
Registered: ‎12-04-2009
0

Re: Virtual router routes

Hello,

 

maybe you have link to docs and manual?

 

Super Contributor
mnarine
Posts: 179
Registered: ‎10-03-2009
0

Re: Virtual router routes

Check the admin guide for Virtual Routing Instances.  They have some examples on using filters.  This should give you a base to accomplish your requirements.

 

-Mike

Contributor
zvitins
Posts: 132
Registered: ‎12-04-2009
0

Re: Virtual router routes

Hello,

 

I found docs about config-guide-routing in Technical  Documentation.

 

I created rib-groups:

 

user@device> show configuration routing-options    
interface-routes {
    rib-group inet ALL-NET;
}
rib-groups {
    ALL-NET {
        import-rib [ inet.0 RT1.inet.0 RT2.inet.0 ];
    }
}

 

 

my routing instance is:

 

 

user@device> show configuration routing-instances RT1    
instance-type virtual-router;
interface ge-0/0/0.1;
interface lo0.2;
routing-options {
    interface-routes {
        rib-group inet ALL-NET;
    }
}

 

I can see my test subnet in all routing tables [ inet.0 RT1.inet.0 RT2.inet.0 ] and I successfully advertise this subnet to my bgp neighbors.

 

But as I understand it is not enough, because I can not access any recourses via my bgp peer and they can not access my server.

 

What should I looking for next?

 

Thanks.

 

 

 

 

Copyright© 1999-2013 Juniper Networks, Inc. All rights reserved.