Enable BGP flap damping and configure damping parameters:
- [edit]
- routing-options {
- autonomous-system 666;
- }
- protocols {
-
- bgp {
- damping;
-
- group group1 {
-
- traceoptions {
- file bgp-log size 1m files 10;
- flag damping;
- }
- import damp;
- type external;
- peer-as 10458;
- neighbor 192.168.2.30;
- }
- }
- }
- policy-options {
-
- policy-statement damp {
-
- from {
-
- route-filter 192.168.0.0/32 exact {
- damping high;
- accept;
- }
-
- route-filter 172.16.0.0/32 exact {
- damping medium;
- accept;
- }
-
- route-filter 10.0.0.0/8 exact {
- damping none;
- accept;
- }
- }
- }
-
- damping high {
- half-life 30;
- suppress 3000;
- reuse 750;
- max-suppress 60;
- }
-
- damping medium {
- half-life 15;
- suppress 3000;
- reuse 750;
- max-suppress 45;
- }
-
- damping none {
- disable;
- }
- }
To display damping parameters for this configuration, use the show policy damping command:
user@host> show policy damping
Damping information for "high":
Halflife: 30 minutes
Reuse merit: 750 Suppress/cutoff merit: 3000
Maximum suppress time: 60 minutes
Computed values:
Merit ceiling: 3008
Maximum decay: 24933
Damping information for "medium":
Halflife: 15 minutes
Reuse merit: 750 Suppress/cutoff merit: 3000
Maximum suppress time: 45 minutes
Computed values:
Merit ceiling: 6024
Maximum decay: 12449
Damping information for "none":
Damping disabled