From a5c4c649d51fc7400d2aa0fcba235e84ee43a9d6 Mon Sep 17 00:00:00 2001 From: Daniil Baturin <daniil@baturin.org> Date: Sun, 18 Nov 2018 19:28:32 +0100 Subject: T992: add commands for ECMP options. --- templates/system/ip/multipath/ignore-unreachable-nexthops/node.def | 5 +++++ templates/system/ip/multipath/layer4-hashing/node.def | 4 ++++ templates/system/ip/multipath/node.def | 1 + templates/system/ipv6/multipath/layer4-hashing/node.def | 5 +++++ templates/system/ipv6/multipath/node.def | 1 + 5 files changed, 16 insertions(+) create mode 100644 templates/system/ip/multipath/ignore-unreachable-nexthops/node.def create mode 100644 templates/system/ip/multipath/layer4-hashing/node.def create mode 100644 templates/system/ip/multipath/node.def create mode 100644 templates/system/ipv6/multipath/layer4-hashing/node.def create mode 100644 templates/system/ipv6/multipath/node.def diff --git a/templates/system/ip/multipath/ignore-unreachable-nexthops/node.def b/templates/system/ip/multipath/ignore-unreachable-nexthops/node.def new file mode 100644 index 00000000..a37d455a --- /dev/null +++ b/templates/system/ip/multipath/ignore-unreachable-nexthops/node.def @@ -0,0 +1,5 @@ +help: Ignore next hops that are not in the ARP table + +create: sudo sysctl -w net.ipv4.fib_multipath_use_neigh=1 >/dev/null +delete: sudo sysctl -w net.ipv4.fib_multipath_use_neigh=0 >/dev/null + diff --git a/templates/system/ip/multipath/layer4-hashing/node.def b/templates/system/ip/multipath/layer4-hashing/node.def new file mode 100644 index 00000000..6cc7e3e2 --- /dev/null +++ b/templates/system/ip/multipath/layer4-hashing/node.def @@ -0,0 +1,4 @@ +help: Use layer 4 information for ECMP hashing + +create: sudo sysctl -w net.ipv4.fib_multipath_hash_policy=1 >/dev/null +delete: sudo sysctl -w net.ipv4.fib_multipath_hash_policy=0 >/dev/null diff --git a/templates/system/ip/multipath/node.def b/templates/system/ip/multipath/node.def new file mode 100644 index 00000000..3625e902 --- /dev/null +++ b/templates/system/ip/multipath/node.def @@ -0,0 +1 @@ +help: IPv4 multipath settings diff --git a/templates/system/ipv6/multipath/layer4-hashing/node.def b/templates/system/ipv6/multipath/layer4-hashing/node.def new file mode 100644 index 00000000..97ffdc61 --- /dev/null +++ b/templates/system/ipv6/multipath/layer4-hashing/node.def @@ -0,0 +1,5 @@ +help: Use layer 4 information for ECMP hashing + +create: sudo sysctl -w net.ipv4.fib_multipath_hash_policy=1 >/dev/null +delete: sudo sysctl -w net.ipv4.fib_multipath_hash_policy=0 >/dev/null + diff --git a/templates/system/ipv6/multipath/node.def b/templates/system/ipv6/multipath/node.def new file mode 100644 index 00000000..76bf4372 --- /dev/null +++ b/templates/system/ipv6/multipath/node.def @@ -0,0 +1 @@ +help: IPv6 multipath settings -- cgit v1.2.3