centos下修改ip:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes 开机自动启用
BOOTPROTO=static 静态
IPADDR= IP地址
NETMASK= 子网掩码
GATEWAY= 网关
DNS1= DNS
service network restart
centos下修改ip:
vi /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes 开机自动启用
BOOTPROTO=static 静态
IPADDR= IP地址
NETMASK= 子网掩码
GATEWAY= 网关
DNS1= DNS
service network restart