Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
We use the United States VPS, some will have 2 IP, some friends need more than a friend SEO IP support, the United States IP is very cheap, generally a few dollars one months. The service provider installed the system after the general only binding one IP, the other late purchase of IP need to manually bind themselves. In fact, many of the tutorials in this area many methods but some more cumbersome, but today we introduce and together to learn the method I personally think is relatively simple one, how to bind order IP and multiple IP bulk binding.
I. Plus a single IP first we open the Putty Software Connection server login server and enter:
Cd/etc/sysconfig/network-scripts #进入网卡配置目录
CP Ifcfg-eth0 ifcfg-eth0:0 #拷贝一个网卡配置文件
VI ifcfg-eth0:0 #用vi编辑器编辑
Opened with VI can be seen
device=eth0:0 #此处添加: 0, keeping the same file name, adding multiple IP increments sequentially
Onboot=yes #是否开机激活
Bootproto=static #静态IP, please enter DHCP if you need DHCP access
ipaddr=192.168.1.2 #此处修改为要添加的IP
netmask=255.255.255.0 #子网掩码根据你的实际情况作修改
Save after editing (press the keyboard I before you can edit and press ESC to enter: Wq save) and restart the NIC to enable the settings to take effect, or reboot the server.
Reboot Network card command: Service receptacle restart
Reboot server command: reboot
As long as there is no problem with the settings, the newly added IP becomes effective after reboot.
To see if IP is active: ifconfig
Two. IP break
To add an IP segment:
1cd/etc/sysconfig/network-scripts/
2vi IFCFG-ETH0-RANGE0
Device=eth0
Onboot=yes
Bootproto=static
ipaddr_start=192.168.2.2 #起始IP
ipaddr_end=192.168.2.254 #结束IP
Clonenum_start=1 #表示这段IP网卡号从eth0:1 start
netmask=255.255.255.0
Reboot the NIC or the server to see if it is successful after editing
Source: http://www.vpsjy.com/177.html