3
ip=`ifconfig | grep -A10 en0 | grep "inet " | head -1 | awk '{ print $2; }'`
6
ip=`ifconfig | grep -A10 en1 | grep "inet " | head -1 | awk '{ print $2; }'`
10
ip=`ifconfig | grep -A10 vnic0 | grep "inet " | head -1 | awk '{ print $2; }'`
14
cat receive.template | sed -e "s/IP/$ip/" > receive.conf
15
env exabgp.log.processes=false exabgp.log.reactor=false exabgp.tcp.bind="127.0.0.1" exabgp.tcp.port=1790 ../../../sbin/exabgp receive.conf $*
17
echo "get some IP somewhere on this machine please"