diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-31 22:36:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-31 22:36:51 +0200 |
commit | f9fa7becc1d537e459849298818f84325e701702 (patch) | |
tree | 527221d232f02fe5e8fb88de00ca8872433419d7 | |
parent | ec1a49d431957e1edfec09f17ca459b0b69d3e28 (diff) | |
download | vyatta-cfg-system-f9fa7becc1d537e459849298818f84325e701702.tar.gz vyatta-cfg-system-f9fa7becc1d537e459849298818f84325e701702.zip |
sysctl: T3716: remove IPv4/6 routes from FIB when link goes down
For more information see:
* https://programmersought.com/article/62242485344/
* https://www.spinics.net/lists/netdev/msg332453.html
* https://github.com/FRRouting/frr/blob/master/doc/user/Useful_Sysctl_Settings.md
-rw-r--r-- | sysconf/vyatta-sysctl.conf | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysconf/vyatta-sysctl.conf b/sysconf/vyatta-sysctl.conf index 01ae92f8..e140afa2 100644 --- a/sysconf/vyatta-sysctl.conf +++ b/sysconf/vyatta-sysctl.conf @@ -92,3 +92,9 @@ net.ipv4.neigh.default.gc_thresh3 = 8192 net.ipv6.neigh.default.gc_thresh1 = 1024 net.ipv6.neigh.default.gc_thresh2 = 4096 net.ipv6.neigh.default.gc_thresh3 = 8192 + +# Remove IPv4 and IPv6 routes from forward information base when link goes down +net.ipv4.conf.all.ignore_routes_with_linkdown=1 +net.ipv4.conf.default.ignore_routes_with_linkdown=1 +net.ipv6.conf.all.ignore_routes_with_linkdown=1 +net.ipv6.conf.default.ignore_routes_with_linkdown=1 |