藍森林首頁 | 返回主頁 | 本站地圖 | 站內搜索 | 聯系信箱 |
 您目前的位置﹕首頁 > 自由軟件 > 技術交流 > 系統管理


通過配置文件批量添加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地址 重啟一般就可以了﹗﹗



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 藍森林网站 版權所有。 E-mail : webmaster@lslnet.com