現(xiàn)有IP:216.245.220.202 掩碼:255.255.255.240 需要綁定的網(wǎng)卡為ethe0 需要批量綁定的IP為216.245.220.202 - 216.245.220.210 vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 加入如下內(nèi)容: DEVICE=eth0-range0 ONBOOT=yes BOOTPROTO=static NETMASK=255.255.255.240 TYPE=Ethernet IPADDR_START=216.245.220.203 IPADDR_END=216.245.220.210 保存退出。 用Service network restart重啟網(wǎng)絡(luò)服務(wù)即可。 |