In order to advertise the aggregated routes (and default routes) via BGP, it should exists in the routing table, that's the #1 rule. If these summarized routes (/16) are not existing and only smaller subnets are learned via the IGP(e.g. OSPF,IS-IS), then configure static route and next hop e.g. Null0.
Juniper:
routing-options {graceful-restart;
rib inet6.0 {
static {
route fd41:c8be:2153:f400::/64 discard;
route ::0/0 {
discard;
no-install;
static {
route 172.16.0.0/16 discard;
route 0.0.0.0/0 {
discard;
no-install;
In display set format:
set routing-options graceful-restart
set routing-options rib inet6.0 static route fd41:c8be:2153:f400::/64 discard
set routing-options rib inet6.0 static route ::0/0 discard
set routing-options rib inet6.0 static route ::0/0 no-install
set routing-options static route 172.16.0.0/16 discard
set routing-options static route 0.0.0.0/0 discard
set routing-options static route 0.0.0.0/0 no-install
Cisco:
router staticaddress-family ipv4 unicast
0.0.0.0/0 Null0
172.16.0.0/16 Null0
!
address-family ipv6 unicast
::/0 Null0
fd41:c8be:2153:f400::/64 Null0
In formal:
router static address-family ipv4 unicast 172.16.0.0/16 Null0
router static address-family ipv4 unicast 0.0.0.0/0 Null0
router static address-family ipv6 unicast ::/0 Null0
router static address-family ipv6 unicast fd41:c8be:2153:f400::/64 Null0
No comments:
Post a Comment