ubuntu批量添加ip脚本#!/bin/bashfor((i=0;i<=3;i=i+1))doecho"autoeth0:$i">>/etc/network/interfacesecho"ifaceeth0:$iinetstatic">>/etc/network/interfacesletj=$i+179echo"address45.41.89.$j">>/etc/network/interfacesecho"netmask255.255.255.248..
分类:
系统相关 时间:
2015-08-27 19:14:13
阅读次数:
282