发表于 2018-8-21 08:34:23

linux 静态ip设置shell版本

  参照网上设置linux 静态ip的教程,为了练习相应shell脚本,本人特为之编写了一个自动化设置静态ip的脚本,相应设置信息均以shell命令完成,如需改动也可以再在脚本里改动相应内容,具体shell代码如下:
  


[*]#! /bin/sh -
[*]
[*]# the shell used for redhat linux or redhat-based linux os
[*]cat > /etc/sysconfig/network-scripts/ifcfg-eth0
页: [1]
查看完整版本: linux 静态ip设置shell版本