From 22d8af42037f3b17f516817374e1eed879e16f05 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Sun, 15 Jun 2014 14:57:13 -0700 Subject: [PATCH] Set the arp_notify sysctl on new interfaces, and set all sysctls before the interface is brought up. --- debian/changelog | 7 +++++++ vif-invirtroute | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index a4ab8b3..aeb13f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +invirt-xen-config (0.0.54) UNRELEASED; urgency=low + + * Set the arp_notify sysctl on new interfaces, and set all sysctls + before the interface is brought up. + + -- Geoffrey Thomas Sun, 15 Jun 2014 14:56:20 -0700 + invirt-xen-config (0.0.53) unstable; urgency=low * Fix machine UUID assignment after SQLAlchemy started returning Unicode diff --git a/vif-invirtroute b/vif-invirtroute index 4872758..ffa7c73 100755 --- a/vif-invirtroute +++ b/vif-invirtroute @@ -31,10 +31,11 @@ dev=${dev:-${vif}} case "$command" in online|add) - ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up echo 1 >/proc/sys/net/ipv4/conf/${dev}/proxy_arp - echo 1 >/proc/sys/net/ipv4/conf/${dev}/rp_filter - xenstore-write "$XENBUS_PATH/feature-gso-tcpv4" 0 + echo 1 >/proc/sys/net/ipv4/conf/${dev}/arp_notify + echo 1 >/proc/sys/net/ipv4/conf/${dev}/rp_filter + ifconfig ${dev} ${main_ip} netmask 255.255.255.255 up + xenstore-write "$XENBUS_PATH/feature-gso-tcpv4" 0 if [ x${qemu_online} != xyes ]; then ethtool -K ${dev} tx off fi -- 1.7.9.5