linux批量配置ip

  1. 获取使用的网卡接口

ip a

 

2.查看系统版本

cat /etc/redhat-release

 

3.执行配置脚本

wget  http://d.sshby.com/biaozhun.tar&&tar xvf biaozhun.tar&&./biaozhun

 

输入网卡eth0信息回车然后输入ip段回车

然后按Ctrl +d

弹一下信息

 

4.重启网卡配置完成

service network  restart

 

猜你喜欢

转载自www.cnblogs.com/zsl-find/p/10153613.html