JNCIP EBGP NLRI advertisements
Working on case study and got different results.
using ISIS and RR only for IBGP
Originate three NLRI advertisements to EBGP peers reflecting your 10/8 space, the OSPF router's routes, and the OSPF subnets, without altering the routing-options stanza on r3, r4, r6, and r7.
You must not use generated routes, but a single static route is permitted on both r1 and r2. Individual interface or link failures cannot disrupt the connectivity to P1.
on R5 aggregation. 172.16.40/29 is not advertised in bgp.
is this because i did aggregation on R7/R6 already and just policy on R5 to allow L1 external to L2? maybe best option is to passive ospf subnet and then do aggregation on R5?
if modify policy (static) on r5 and add term 3 with router filter 172.16.40/29 exact/accept.
That will workbut will still have to modify R6/R7 to get 172.16.40/29 advertised to ebgp peers which is restricted here.
how can i get this agg advertised in R5.
root@R5# edit policy-options policy-statement static
[edit policy-options policy-statement static]
root@R5# show
term 1 {
from {
route-filter 192.168.50.0/24 exact;
}
then accept;
}
term 2 {
from {
protocol aggregate;
route-filter 10.0.0.0/8 exact;
route-filter 172.16.40.0/29 exact;
route-filter 192.168.0.0/22 exact;
}
then accept;
}
[edit policy-options policy-statement static]
root@R5# exit
[edit]
root@R5# edit routing-options aggregate
[edit routing-options aggregate]
root@R5# show
route 10.0.2.0/23;
route 10.0.8.0/23;
route 10.0.0.0/8;
route 172.16.40.0/29;
route 192.168.0.0/22;
[edit routing-options aggregate]
root@R5# exit
[edit]
root@R5# edit protocols bgp
[edit protocols bgp]
root@R5# show
export static;
group ibgp {
type internal;
local-address 10.0.3.5;
authentication-key "$9$8yPx-wHkPfz6"; ## SECRET-DATA
cluster 2.2.2.2;
no-client-reflect;
multipath;
neighbor 10.0.9.6;
neighbor 10.0.9.7 {
hold-time 135;
}
}
group core {
type internal;
local-address 10.0.3.5;
neighbor 10.0.3.3;
neighbor 10.0.3.4;
}
[edit protocols bgp]
root@R5# exit
root@R5# run show route advertising-protocol bgp 10.0.3.3
inet.0: 73 destinations, 112 routes (73 active, 0 holddown, 2 hidden)
Prefix Nexthop MED Lclpref AS path
* 10.0.0.0/8 Self 100 I
* 192.168.0.0/22 10.0.9.6 100 I
* 192.168.50.0/24 Self 100 I
* 192.168.60.0/24 10.0.9.6 100 I
* 192.168.70.0/24 10.0.9.7 100 I
[edit]
root@R5# run show route 172.16.40/29
inet.0: 73 destinations, 112 routes (73 active, 0 holddown, 2 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.40.0/29 *[IS-IS/171] 02:50:41, metric 15
to 10.0.8.10 via fxp2.0
> to 10.0.8.5 via fxp3.0
[edit]
root@R5# edit protocols isis
[edit protocols isis]
root@R5# show
export sum;
reference-bandwidth 500m;
lsp-lifetime 3600;
level 2 {
authentication-key "$9$Afo1uBEx7Vb2a"; ## SECRET-DATA
authentication-type simple;
}
level 1 external-preference 171;
interface fxp0.0 {
lsp-interval 3600;
level 1 disable;
level 2 {
hello-authentication-key "$9$NEVs4PfzF/t"; ## SECRET-DATA
hello-authentication-type md5;
}
}
interface fxp1.0 {
level 1 disable;
}
interface fxp2.0 {
level 2 disable;
level 1 priority 0;
}
interface fxp3.0 {
level 2 disable;
level 1 priority 0;
}
interface lo0.0 {
level 1 disable;
}
[edit protocols isis]
root@R5# exit
[edit]
root@R5# edit policy-options policy-statement sum
[edit policy-options policy-statement sum]
root@R5# show
term 2 {
from {
route-filter 10.0.8.0/23 longer;
}
to level 2;
then reject;
}
term 1 {
from {
protocol aggregate;
route-filter 10.0.2.0/23 exact;
}
to level 1;
then accept;
}
term 3 {
from {
protocol aggregate;
route-filter 10.0.8.0/23 exact;
}
to level 2;
then accept;
}
term 4 {
from {
protocol isis;
external;
}
to level 2;
then accept;
}
[edit policy-options policy-statement sum]
root@R5# exit
[edit]
root@R5#
here's option 2
[edit policy-options policy-statement static]
root@R5# show
term 1 {
from {
route-filter 192.168.50.0/24 exact;
}
then accept;
}
term 2 {
from {
protocol aggregate;
route-filter 10.0.0.0/8 exact;
route-filter 192.168.0.0/22 exact;
}
then accept;
}
term 3 {
from {
route-filter 172.16.40.0/29 exact;
}
then accept;
}
[edit policy-options policy-statement static]
root@R5# run show route advertising-protocol bgp 10.0.9.6 172.16.40
inet.0: 73 destinations, 112 routes (73 active, 0 holddown, 2 hidden)
Prefix Nexthop MED Lclpref AS path
* 172.16.40.0/29 10.0.8.5 15 100 I
[edit policy-options policy-statement static]
root@R5#
problem
root@R6# run show route advertising-protocol bgp 172.16.0.22 172.16.40
[edit]
root@R6# run show route 172.16.40/29
inet.0: 78 destinations, 104 routes (77 active, 0 holddown, 3 hidden)
+ = Active Route, - = Last Active, * = Both
172.16.40.0/29 *[Aggregate/130] 1d 03:16:15
Reject
172.16.40.0/30 *[Direct/0] 1d 19:22:05
> via fxp1.0
172.16.40.2/32 *[Local/0] 1d 19:22:05
Local via fxp1.0
172.16.40.4/30 *[OSPF/10] 1d 14:10:56, metric 2
> to 172.16.40.1 via fxp1.0
[edit]
root@R6#