diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-07-31 22:34:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-07-31 22:35:14 +0200 |
commit | 58a77a7aea020d32fc4c90301b9937609fc8a0eb (patch) | |
tree | ad258b3f0bdf540b105ac2cf23f561531755e08a /src/etc/sysctl.d/30-vyos-router.conf | |
parent | 7171feb554af4a192b447f17a7fba2f7d14326af (diff) | |
download | vyos-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.conf | 6 |
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 |