玛丽莲 发表于 2010-4-9 13:45:03

linux服务器中的双ip设置

//进入目录
#cd /etc/sysconfig/network-scripts/
#cp ifcfg-eth0 ifcfg-eth0:0
//编辑ifcfg-eth0:0
#vi ifcfg-eth0:0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
USERCTL='no'
NETMASK='255.255.255.0'
//子网掩码
#BOOTPROTO='static'
//协议
#DEVICE='eth0:0'
//虚拟网卡号
#IPADDR='192.168.0.9'
//自己设定的IP
#TYPE='Ethernet'
#ONBOOT='yes'
//开机激活
#NETWORK='192.168.0.0'
//网域
#BROADCAST='192.168.0.255'
//广播
//保存退出
#wq
//激活虚拟的网卡
#ifup eh0:0

jameshpf 发表于 2010-8-11 16:57:39

学习了

jameshpf 发表于 2010-8-11 16:57:49

支持你

jameshpf 发表于 2010-8-11 16:57:57

加油

黑旗爵 发表于 2014-6-12 23:36:57

{:6_269:}
页: [1]
查看完整版本: linux服务器中的双ip设置