i=1
end=3
while [ $i -le $end]
do
    echo "server 127.0.0.1:300${i};"
    i=$((i + 1))
done