disable exporting default gateway via bgp
This commit is contained in:
@@ -12,8 +12,7 @@ protocol kernel kernel4 {
|
|||||||
scan time 10;
|
scan time 10;
|
||||||
merge paths yes;
|
merge paths yes;
|
||||||
ipv4 {
|
ipv4 {
|
||||||
# Importing only default route, we're their default gateway so they dont need rest
|
import none;
|
||||||
import filter { if net = 0.0.0.0/0 then { igp_metric = 100; accept; } reject; };
|
|
||||||
export all;
|
export all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -23,7 +22,7 @@ protocol kernel kernel6 {
|
|||||||
scan time 10;
|
scan time 10;
|
||||||
merge paths yes;
|
merge paths yes;
|
||||||
ipv6 {
|
ipv6 {
|
||||||
import filter { if net = ::/0 then { igp_metric = 100; accept; } reject; };
|
import none;
|
||||||
export all;
|
export all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user