Quantcast
Channel: All Routing posts
Viewing all articles
Browse latest Browse all 8688

Re: BGP and the BOGON/MARTIAN listings

$
0
0

 

On Juniper, you can try create a static route for each next-hop used for blackholed routes
Select either discard or reject as the next-hop action:

 

labroot@re0> show configuration routing-options           
static {
route 192.0.2.101/32 discard;
route 192.0.2.103/32 reject;
route 192.0.2.105/32 discard;
}

labroot@re0# show interfaces dsc
unit 0 {
    family inet {
        address 192.0.2.102/32 {
            destination 192.0.2.101;
        }
        address 193.0.2.104/32 {
            destination 192.0.2.103;
        }
        address 192.0.2.106/32 {
            destination 192.0.2.105;
        }
    }
}

labroot@re0# run show interfaces terse dsc
Interface               Admin Link Proto    Local                 Remote
dsc                     up    up
dsc.0                   up    up   inet     192.0.2.102         --> 192.0.2.101
                                            192.0.2.106         --> 192.0.2.105
                                            193.0.2.104         --> 192.0.2.103

protocols {
bgp {
import blackhole-by-route;
}
}
policy-options {
policy-statement blackhole-by-route {
term specific-routes {
from {
route-filter 10.10.10.1/32 exact;
route-filter 10.20.20.2/32 exact;
route-filter 10.30.30.3/32 exact;
route-filter 10.40.40.4/32 exact;
}
then {
next-hop 192.0.2.101
}
}
}
}
 
Refer to the following doc:
 
 

Viewing all articles
Browse latest Browse all 8688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>