CentOS修改IP

编辑 /etc/sysconfig/network-scripts/ifcfg-eth0 然后 service network restart

DEVICE=eth0
BOOTPROTO=none
NM_CONTROLLED=yes
ONBOOT=yes
TYPE=Ethernet
UUID="39e9be0d-39fa-46ab-a0f9-e3f7ca7e4546"
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
NAME="System eth0"
HWADDR=50:e5:49:50:48:c9
PEERROUTES=yes
IPADDR=10.0.1.161
NETMASK=255.255.252.0
GATEWAY=10.0.0.1
DNS1=192.168.1.2
USERCTL=no

上一篇:BZOJ 2599: [IOI2011]Race( 点分治 )


下一篇:DB2相关数据库命令