[j-nsp] multiple bgp routing-instances on one router
Dmitry Cherkasov
chd at intercom.net.ua
Mon Nov 14 15:24:26 EST 2005
Hello everybody,
On Mon, Nov 14, 2005 at 08:33:53AM +0100, Rafal Szarecki (WA/EPO) wrote:
RSWE>
RSWE> Hi all,
RSWE>
RSWE>
RSWE> It will not work as original request specified. This is because bot routing instances will export prefixes from partial.inet.0 (first on the list)
RSWE>
RSWE> I suggest to create: rib-group common-2 import-rib [ integral.inet.0 partial.inet.0] and use them in Integral routing instance.
Yes, that's right. I did exactly the way you propose.
RSWE>
RSWE> Other notes:
RSWE>
RSWE> - Because bot RIBs will contain exactly the same conten, what is a reason to keep multiple identical tables?
The matter is there are a handful of Partial tables. I need them because
some BGP downlinks do not like using the Integral table but prefer use
the table from some particular uplink.
RSWE> - If you do not need mpls, then you can use instance-type virtual-router. Then You not need to configute RT, RD.
RSWE>
I plan to implement MPLS in the network. This is one of preliminary
steps.
RSWE> Dimitriy, let me know more about application for this multiple routing tables, maybe ther will be more simple solution.
RSWE>
Thank you, Rafal. What I need the most is functionality. Also I'm looking for
the solutions that scale well. So probably simplicity is not my choice
;-)
Thank you
RSWE> Rafa? Szarecki JNCIE
RSWE>
RSWE> skype me <callto://Rafal_Szarecki/>
RSWE>
RSWE>
RSWE>
RSWE> > -----Original Message-----
RSWE> > From: juniper-nsp-bounces at puck.nether.net
RSWE> > [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of
RSWE> > Jake Bourgeois
RSWE> > Sent: Friday, November 11, 2005 7:00 PM
RSWE> > To: Dmitry Cherkasov
RSWE> > Cc: juniper-nsp at puck.nether.net
RSWE> > Subject: RE: [j-nsp] multiple bgp routing-instances on one router
RSWE> >
RSWE> >
RSWE> > If I understand your ultimate goal here you'll want something
RSWE> > like this
RSWE> >
RSWE> >
RSWE> > show routing-options
RSWE> >
RSWE> > rib-groups {
RSWE> > common {
RSWE> > import-rib [ partial.inet.0 integral.inet.0 ];
RSWE> > }
RSWE> > }
RSWE> >
RSWE> >
RSWE> >
RSWE> >
RSWE> > routing-instances {
RSWE> > Integral {
RSWE> > description Integral-VRF-Table;
RSWE> > instance-type vrf;
RSWE> > interface ge-1/3/0.200;
RSWE> > route-distinguisher 9991:0;
RSWE> > vrf-target import target:9991:0;
RSWE> > vrf-target export target:9991:1111;
RSWE> > protocols {
RSWE> > bgp {
RSWE> > group Local {
RSWE> > family inet {
RSWE> > unicast {
RSWE> > rib-group common; <<------
RSWE> > type internal;
RSWE> > neighbor 9.9.9.2;
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> > Partial {
RSWE> > description Partial-VRF-Table;
RSWE> > instance-type vrf;
RSWE> > interface ge-1/3/0.100;
RSWE> > route-distinguisher 9991:1111;
RSWE> > vrf-target import target:9991:1111;
RSWE> > vrf-target export target:9991:0;
RSWE> > protocols {
RSWE> > bgp {
RSWE> > group External {
RSWE> > type external;
RSWE> > family inet {
RSWE> > unicast {
RSWE> > rib-group common; <<----
RSWE> > }
RSWE> > neighbor 1.1.1.2 {
RSWE> > peer-as 1111;
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> > }
RSWE> >
RSWE> > For more info check
RSWE> > https://www.juniper.net/techpubs/software/junos/junos70/swconf
RSWE> > ig70-routi
RSWE> > ng/html/routing-generic-config6.html
RSWE> >
RSWE> > hths
RSWE> >
RSWE> >
RSWE> >
RSWE> > > -----Original Message-----
RSWE> > > From: juniper-nsp-bounces at puck.nether.net
RSWE> > > [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of Dmitry
RSWE> > > Cherkasov
RSWE> > > Sent: Friday, November 11, 2005 10:21 AM
RSWE> > > To: juniper-nsp at puck.nether.net
RSWE> > > Subject: [j-nsp] multiple bgp routing-instances on one router
RSWE> > >
RSWE> > > Hello everybody,
RSWE> > >
RSWE> > > What I try to do is the following:
RSWE> > >
RSWE> > > 1) separate routing instances for BGP tables from 3 eBGP neighbors
RSWE> > > 2) integral BGP-table for iBGP neighbors
RSWE> > >
RSWE> > > Routes are exported from eBGP tables to iBGP table and from
RSWE> > iBGP table
RSWE> > > to eBGP tables.
RSWE> > >
RSWE> > > JunOS 7.3, router M7i
RSWE> > >
RSWE> > > Here is the configuration:
RSWE> > >
RSWE> > > interfaces {
RSWE> > > unit 100 {
RSWE> > > description eBGP-neighbor-1
RSWE> > > vlan-id 100;
RSWE> > > family inet {
RSWE> > > address 1.1.1.1/30;
RSWE> > > }
RSWE> > > }
RSWE> > >
RSWE> > > ... similar for other eBGP-neighbors ...
RSWE> > >
RSWE> > > unit 200 {
RSWE> > > description iBGP-neighbor
RSWE> > > vlan-id 200;
RSWE> > > family inet {
RSWE> > > address 9.9.9.1/30;
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > routing-options {
RSWE> > > router-id 9.9.9.1;
RSWE> > > autonomous-system 9991;
RSWE> > > }
RSWE> > > routing-instances {
RSWE> > > Integral {
RSWE> > > description Integral-VRF-Table;
RSWE> > > instance-type vrf;
RSWE> > > interface ge-1/3/0.200;
RSWE> > > route-distinguisher 9991:0;
RSWE> > > vrf-target import target:9991:0;
RSWE> > > vrf-target export target:9991:1111;
RSWE> > > protocols {
RSWE> > > bgp {
RSWE> > > group Local {
RSWE> > > type internal;
RSWE> > > neighbor 9.9.9.2;
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > Partial {
RSWE> > > description Partial-VRF-Table;
RSWE> > > instance-type vrf;
RSWE> > > interface ge-1/3/0.100;
RSWE> > > route-distinguisher 9991:1111;
RSWE> > > vrf-target import target:9991:1111;
RSWE> > > vrf-target export target:9991:0;
RSWE> > > protocols {
RSWE> > > bgp {
RSWE> > > group External {
RSWE> > > type external;
RSWE> > > neighbor 1.1.1.2 {
RSWE> > > peer-as 1111;
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > > }
RSWE> > >
RSWE> > > Yet it does not work: the routes visible by 'show route table
RSWE> > > Partial.inet.0' does not appear in 'show route table
RSWE> > Integral.inet.0'
RSWE> > >
RSWE> > > Please advice, what I'm doing wrong?
RSWE> > >
RSWE> > >
RSWE> > > --
RSWE> > > -------------------------------------------------------
RSWE> > > Dmitry Cherkasov ISP "Intercom" (380)44 251-12-88
RSWE> > > http://www.intercom.net.ua DC1-UANIC CHD1-RIPE
RSWE> > > _______________________________________________
RSWE> > > juniper-nsp mailing list juniper-nsp at puck.nether.net
RSWE> > > http://puck.nether.net/mailman/listinfo/juniper-nsp
RSWE> > >
RSWE> >
RSWE> >
RSWE> >
RSWE> > _______________________________________________
RSWE> > juniper-nsp mailing list juniper-nsp at puck.nether.net
RSWE> > http://puck.nether.net/mailman/listinfo/juniper-nsp
RSWE> >
RSWE>
RSWE>
--
-------------------------------------------------------
Dmitry Cherkasov ISP "Intercom" (380)44 251-12-88
http://www.intercom.net.ua DC1-UANIC CHD1-RIPE
More information about the juniper-nsp
mailing list