当前位置: 技术问答>linux和unix
用什么命令增加ip?
来源: 互联网 发布时间:2015-09-23
本文导语: 用什么命令增加ip? | cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0 vi /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=eth0:0 IP=... your new IP you need restart your network service ...
用什么命令增加ip?
|
cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0
vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
IP=... your new IP
you need restart your network service
vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
DEVICE=eth0:0
IP=... your new IP
you need restart your network service