From: Geoffrey Thomas Date: Sun, 15 Jun 2014 21:57:13 +0000 (-0700) Subject: Set the arp_notify sysctl on new interfaces, and set all sysctls before the interface... X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/commitdiff_plain/refs/heads/geofft?ds=sidebyside Set the arp_notify sysctl on new interfaces, and set all sysctls before the interface is brought up. --- 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