[j-nsp] multiple bgp routing-instances on one router
Dmitry Cherkasov
chd at intercom.net.ua
Sat Nov 12 14:43:03 EST 2005
On Fri, Nov 11, 2005 at 10:00:06AM -0800, Jake Bourgeois wrote:
JB>
JB> If I understand your ultimate goal here you'll want something like this
JB>
Thank you Jake for pointing me the right way.
Yet your advice on configuration as I see needs some correction: the
same rib-group does not work for passing routes in both directions. To
make it work i configured two rib-groups: Integral-Partial and
Partial-Integral which differs in the order of mentioning the tables.
Each routing-instance should use the rib-group in which its own table
is mentioned at the first place (is primary).
JB>
JB> show routing-options
JB>
JB> rib-groups {
JB> common {
should be:
Partial-Integral {
JB> import-rib [ partial.inet.0 integral.inet.0 ];
}
Integral-Partial {
import-rib [ integral.inet.0 partial.inet.0 ];
JB> }
JB> }
JB>
JB>
JB>
JB>
JB> routing-instances {
JB> Integral {
JB> description Integral-VRF-Table;
JB> instance-type vrf;
JB> interface ge-1/3/0.200;
JB> route-distinguisher 9991:0;
JB> vrf-target import target:9991:0;
JB> vrf-target export target:9991:1111;
JB> protocols {
JB> bgp {
JB> group Local {
JB> family inet {
JB> unicast {
JB> rib-group common; <<------
should be:
rib-group Integral-Partial;
JB> type internal;
JB> neighbor 9.9.9.2;
JB> }
JB> }
JB> }
JB> }
JB> Partial {
JB> description Partial-VRF-Table;
JB> instance-type vrf;
JB> interface ge-1/3/0.100;
JB> route-distinguisher 9991:1111;
JB> vrf-target import target:9991:1111;
JB> vrf-target export target:9991:0;
JB> protocols {
JB> bgp {
JB> group External {
JB> type external;
JB> family inet {
JB> unicast {
JB> rib-group common; <<----
should be:
rib-group Partial-Integral;
JB> }
JB> neighbor 1.1.1.2 {
JB> peer-as 1111;
JB> }
JB> }
JB> }
JB> }
JB> }
JB> }
JB>
JB> For more info check
JB> https://www.juniper.net/techpubs/software/junos/junos70/swconfig70-routi
JB> ng/html/routing-generic-config6.html
JB>
JB> hths
JB>
JB>
JB>
JB> > -----Original Message-----
JB> > From: juniper-nsp-bounces at puck.nether.net
JB> > [mailto:juniper-nsp-bounces at puck.nether.net] On Behalf Of
JB> > Dmitry Cherkasov
JB> > Sent: Friday, November 11, 2005 10:21 AM
JB> > To: juniper-nsp at puck.nether.net
JB> > Subject: [j-nsp] multiple bgp routing-instances on one router
JB> >
JB> > Hello everybody,
JB> >
JB> > What I try to do is the following:
JB> >
JB> > 1) separate routing instances for BGP tables from 3 eBGP neighbors
JB> > 2) integral BGP-table for iBGP neighbors
JB> >
JB> > Routes are exported from eBGP tables to iBGP table and from iBGP table
JB> > to eBGP tables.
JB> >
JB> > JunOS 7.3, router M7i
JB> >
JB> > Here is the configuration:
JB> >
JB> > interfaces {
JB> > unit 100 {
JB> > description eBGP-neighbor-1
JB> > vlan-id 100;
JB> > family inet {
JB> > address 1.1.1.1/30;
JB> > }
JB> > }
JB> >
JB> > ... similar for other eBGP-neighbors ...
JB> >
JB> > unit 200 {
JB> > description iBGP-neighbor
JB> > vlan-id 200;
JB> > family inet {
JB> > address 9.9.9.1/30;
JB> > }
JB> > }
JB> > }
JB> > routing-options {
JB> > router-id 9.9.9.1;
JB> > autonomous-system 9991;
JB> > }
JB> > routing-instances {
JB> > Integral {
JB> > description Integral-VRF-Table;
JB> > instance-type vrf;
JB> > interface ge-1/3/0.200;
JB> > route-distinguisher 9991:0;
JB> > vrf-target import target:9991:0;
JB> > vrf-target export target:9991:1111;
JB> > protocols {
JB> > bgp {
JB> > group Local {
JB> > type internal;
JB> > neighbor 9.9.9.2;
JB> > }
JB> > }
JB> > }
JB> > }
JB> > Partial {
JB> > description Partial-VRF-Table;
JB> > instance-type vrf;
JB> > interface ge-1/3/0.100;
JB> > route-distinguisher 9991:1111;
JB> > vrf-target import target:9991:1111;
JB> > vrf-target export target:9991:0;
JB> > protocols {
JB> > bgp {
JB> > group External {
JB> > type external;
JB> > neighbor 1.1.1.2 {
JB> > peer-as 1111;
JB> > }
JB> > }
JB> > }
JB> > }
JB> > }
JB> > }
JB> >
JB> > Yet it does not work: the routes visible by 'show route table
JB> > Partial.inet.0' does not appear in 'show route table Integral.inet.0'
JB> >
JB> > Please advice, what I'm doing wrong?
--
-------------------------------------------------------
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