summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2008-06-25 15:37:02 -0700
committerStig Thormodsrud <stig@vyatta.com>2008-06-25 15:37:02 -0700
commit03f80363921a3fdb080414f0ba52dc10797fbb3a (patch)
treeedd2e1f8baf539896b1a504ddecf0cfd0d890319 /templates
parentc7bd09b302c75daaea3290236d9c6b8696edb7a8 (diff)
downloadvyatta-cfg-system-03f80363921a3fdb080414f0ba52dc10797fbb3a.tar.gz
vyatta-cfg-system-03f80363921a3fdb080414f0ba52dc10797fbb3a.zip
Add cli to enable proxy arp on a interface.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/ethernet/node.tag/ip/enable-proxy-arp/node.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/interfaces/ethernet/node.tag/ip/enable-proxy-arp/node.def b/templates/interfaces/ethernet/node.tag/ip/enable-proxy-arp/node.def
new file mode 100644
index 00000000..e125e5c5
--- /dev/null
+++ b/templates/interfaces/ethernet/node.tag/ip/enable-proxy-arp/node.def
@@ -0,0 +1,3 @@
+help: Set to enable proxy-arp on this interface
+create:expression: "sudo sh -c \"echo 1 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp\" "
+delete:expression: "sudo sh -c \"echo 0 > /proc/sys/net/ipv4/conf/$VAR(../../@)/proxy_arp\" "