Thanks Jeff, Your suggestion will work in my particular case since I have two 3 vpn connections each either 192.168.7.1, *.8.1 or *.9.1. I will take a look at IPMask however. thanks again
john >> network=`expr $ptpaddr : '\([0-9]*\.[0-9]*\.[0-9]*\.\)'`0 >> >> This works ok under red hat linux, but lrp gives >> >> # bash test >> exp: arith: syntax error: "192.168.9.234 : >\([0-9]*\.[0-9]*\.[0-9]*\.\)" >> >network=`echo $ptpaddr | sed >'s/\([0-9]*\.[0-9]*\.[0-9]\)\.[0-9]/\1.0/'` > >However, I am not happy with this solution because netmasks do not >have to be on byte boundaries. > >A more general solution would be to use David Douthitt's >"ipmask" program >(http://leaf.sourceforge.net/pub/oxygen/packages/ipmask.lrp). >You could _______________________________________________ Leaf-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/leaf-user
