通過配置文件批量添加IP地址的問題﹖
藍森林 http://www.lslnet.com 2006年6月6日 21:33
在做規模測試時要在一個网卡上添加100個IP,通過配置文件/etc/hosts行嗎﹖
>>> 此貼的回复 >>
cd /etc/sysconfig/network-scripts
cp ifcfg-eth0 ifcfg-eth0:1
vi ifcfg-eth0:1
然后改動相應的地方,一般有兩個
1. device=eth0-------->device=eth0:1
2. IP地址
重啟一般就可以了﹗﹗
|