CAC添加IP

 CAC提供多个IP,但是多余的IP需要自己手动配置,今天尝试了一下,将过程叙述如下:

首先打开配置文件:

vi /etc/network/interfaces 

 

 原始的CAC配置文件如下:

auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 162.248.xxx.xxx
gateway 162.248.xxx.1
netmask 255.255.255.0
sysctl kernel.hostname=c999943039-cloudpro-947289196.cloudatcost.com
hostname c999943039-cloudpro-947289196.cloudatcost.com

 

将添加的IP如下:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 162.248.xxx.xxx
gateway 162.248.xxx.1
netmask 255.255.255.0
sysctl kernel.hostname=c999943039-cloudpro-947289196.cloudatcost.com
hostname c999943039-cloudpro-947289196.cloudatcost.com

auto eth0:0
iface eth0:0 inet static
    address 162.248.164.xxy
    netmask 255.255.255.0

 

成功后保存,重启配置:

/etc/init.d/networking restart

 

posted @ 2016-11-29 16:52  海天孤雁  阅读(351)  评论(0编辑  收藏  举报