网口启动脚本


#!/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






发布时间:2021-1-22 10:08 Friday
  • 版权声明:除非注明,文章均为【舞乂IT-专注于网络技术分享】原创,欢迎转载!转载请注明本文地址,谢谢!

  • 作者:舞乂IT-专注于网络技术分享

    舞乂人生,打造不一样的世界!共同学习,共同努力,提升技能!!!!!

    上一篇:
    下一篇: