CentOS设置静态IP
oracle服务器要求静态IP
so,let's go
[root@xyhui ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
示例文件如下:
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) DEVICE=eth0 BOOTPROTO=none HWADDR=00:0C:29:AB:F9:6D ONBOOT=yes NETMASK=255.255.255.0 IPADDR=192.168.1.103 GATEWAY=192.168.1.1 TYPE=Ethernet USERCTL=no IPV6INIT=no PEERDNS=yes
:wq保存退出之后,记得
[root@xyhui ~]# service network restart
重启网卡
也可以GUI方式设置。在 System -> Administration -> Network编辑响应的网卡,然后重新active.