Bug#449098: init.d script patch for multiple addresses per interface
Hi How do I get multiple IPv4 addresses per interface without aliases? Cheers, Adrian signature.asc Description: This is a digitally signed message part.
Bug#449098: init.d script patch for multiple addresses per interface
Well... we have a bridge (br0) that have multiple ipaddresses... ... the script didn't work ;).. so this is the fix.. but you're right... hmm... I'll check the config tomorrow.. On Jan 27, 2008, at 15:03, Adrian Friedli wrote: Hi How do I get multiple IPv4 addresses per interface without aliases? Cheers, Adrian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#449098: init.d script patch for multiple addresses per interface
--- natpmp 2008-01-23 12:10:57.0 +0100 +++ /etc/init.d/natpmp 2008-01-23 12:35:36.0 +0100 @@ -54,8 +55,10 @@ # Get the IP address of this interface. ADDR=`$IP addr show dev $IF 2/dev/null | grep ^ *inet .* $IF\$ | cut -d -f 6 | cut -d / -f 1` if [ -n $ADDR ] ; then - # Add the IP address to the argument list. - BIND_ARGS=$BIND_ARGS -a $ADDR + for a in $ADDR; do + # Add the IP address to the argument list. + BIND_ARGS=$BIND_ARGS -a $a + done else echo Could not get IP address of interface $IF. Skipping. 2 fi -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]