From 58a77a7aea020d32fc4c90301b9937609fc8a0eb Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 31 Jul 2021 22:34:14 +0200 Subject: 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 --- src/etc/sysctl.d/30-vyos-router.conf | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/etc/sysctl.d/30-vyos-router.conf') 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 -- cgit v1.2.3