#!/bin/bash ifconfig fml-mac3 192.168.1.238 up ping -c 1 192.168.1.238 > /dev/null 2>&1 if [ $? -eq 0 ];then echo "success" > /dev/null 2>&1 else echo "fml-mac3 loading failed"
fi
ifconfig fml-mac6 172.20.3.12 up ping -c 1 172.20.3.12 > /dev/null 2>&1 if [ $? -eq 0 ];then echo "success" > /dev/null 2>&1 else echo "fml-mac6 loading failed"
fi exit 0