summaryrefslogtreecommitdiff
path: root/src/etc/sysctl.d/30-vyos-router.conf
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-31 22:34:14 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-31 22:35:14 +0200
commit58a77a7aea020d32fc4c90301b9937609fc8a0eb (patch)
treead258b3f0bdf540b105ac2cf23f561531755e08a /src/etc/sysctl.d/30-vyos-router.conf
parent7171feb554af4a192b447f17a7fba2f7d14326af (diff)
downloadvyos-1x-58a77a7aea020d32fc4c90301b9937609fc8a0eb.tar.gz
vyos-1x-58a77a7aea020d32fc4c90301b9937609fc8a0eb.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
Diffstat (limited to 'src/etc/sysctl.d/30-vyos-router.conf')
-rw-r--r--src/etc/sysctl.d/30-vyos-router.conf6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/sysctl.d/30-vyos-router.conf b/src/etc/sysctl.d/30-vyos-router.conf
index 90abb2413..e03d3a29c 100644
--- a/src/etc/sysctl.d/30-vyos-router.conf
+++ b/src/etc/sysctl.d/30-vyos-router.conf
@@ -72,6 +72,12 @@ net.ipv4.conf.default.send_redirects=1
# Increase size of buffer for netlink
net.core.rmem_max=2097152
+# 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
+
# Enable packet forwarding for IPv6
net.ipv6.conf.all.forwarding=1