From 424324b52ff7931b321f2734225c102d910e87fa Mon Sep 17 00:00:00 2001 From: Arnaud Andre Date: Wed, 16 Sep 2015 13:21:37 +0200 Subject: [PATCH] vrrp_switch.sh: shorten VRRP interface name. Replace dot separator by / in sysctl cmd to be compatible with vlan interface. --- vrrp_switch.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vrrp_switch.sh b/vrrp_switch.sh index 61a500c..a1addae 100755 --- a/vrrp_switch.sh +++ b/vrrp_switch.sh @@ -17,7 +17,7 @@ adv_int\t\t$adv_int naddr\t\t$naddr ips\t\t$ips" > /tmp/state.vrrp_${vrid}_${ifname} -interface=vrrp_${ifname}_${vrid} +interface=${ifname}_${vrid} echo $ips @@ -42,9 +42,9 @@ case "$state" in for ip in $ips; do ip -$family addr add $ip dev $interface - sysctl -w net.ipv6.conf.$interface.autoconf=0 - sysctl -w net.ipv6.conf.$interface.accept_ra=0 - sysctl -w net.ipv6.conf.$interface.forwarding=1 + sysctl -w net/ipv6/conf/$interface/autoconf=0 + sysctl -w net/ipv6/conf/$interface/accept_ra=0 + sysctl -w net/ipv6/conf/$interface/forwarding=1 done ip link set dev $interface up