diff options
author | Kim Hagen <khagen@multi-development.com> | 2014-07-01 14:38:37 +0200 |
---|---|---|
committer | Kim Hagen <khagen@multi-development.com> | 2014-07-01 14:38:37 +0200 |
commit | d3c2fb0ebeb2a945ac76d724ff532f5b9cb01bf5 (patch) | |
tree | 510792616790c9d9577e7dfa371e5b38dd659497 /interface-templates/ip | |
parent | 66da1d0ad38e345176f0ec28ec59961e84dd61fa (diff) | |
download | vyatta-cfg-system-d3c2fb0ebeb2a945ac76d724ff532f5b9cb01bf5.tar.gz vyatta-cfg-system-d3c2fb0ebeb2a945ac76d724ff532f5b9cb01bf5.zip |
Bug #21 - Add the ability to adjust system ARP settings via the CLI on a per interface basis
Diffstat (limited to 'interface-templates/ip')
4 files changed, 12 insertions, 0 deletions
diff --git a/interface-templates/ip/disable-arp-filter/node.def b/interface-templates/ip/disable-arp-filter/node.def new file mode 100644 index 00000000..e41b0d8e --- /dev/null +++ b/interface-templates/ip/disable-arp-filter/node.def @@ -0,0 +1,3 @@ +help: Disable arp-filter on this interface +create:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/arp_filter\" " +delete:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$IFNAME/arp_filter\" " diff --git a/interface-templates/ip/enable-arp-accept/node.def b/interface-templates/ip/enable-arp-accept/node.def new file mode 100644 index 00000000..d5413737 --- /dev/null +++ b/interface-templates/ip/enable-arp-accept/node.def @@ -0,0 +1,3 @@ +help: Enable arp-accept on this interface +create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$IFNAME/arp_accept\" " +delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/arp_accept\" " diff --git a/interface-templates/ip/enable-arp-announce/node.def b/interface-templates/ip/enable-arp-announce/node.def new file mode 100644 index 00000000..fde37ce5 --- /dev/null +++ b/interface-templates/ip/enable-arp-announce/node.def @@ -0,0 +1,3 @@ +help: Enable arp-announce on this interface +create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$IFNAME/arp_announce\" " +delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/arp_announce\" " diff --git a/interface-templates/ip/enable-arp-ignore/node.def b/interface-templates/ip/enable-arp-ignore/node.def new file mode 100644 index 00000000..bd6aee52 --- /dev/null +++ b/interface-templates/ip/enable-arp-ignore/node.def @@ -0,0 +1,3 @@ +help: Enable arp-ignore on this interface +create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$IFNAME/arp_ignore\" " +delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$IFNAME/arp_ignore\" " |