首页 > 代码库 > 『ORACLE』更改主机IP地址

『ORACLE』更改主机IP地址

[root@Annie ~]# cd /etc/sysconfig/network-scripts/
[root@Annie network-scripts]# ls

将IP:192.168.11.4 改为:192.168.11.5

[root@Annie network-scripts]# vi ifcfg-eth0

 

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)

DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.11.255
HWADDR=00:0C:29:30:10:DA
IPADDR=192.168.11.5
NETMASK=255.255.255.0
NETWORK=192.168.11.0
ONBOOT=yes
~
~
~
~
~
~
~
~
~
"ifcfg-eth0" 9L, 218C

[root@Annie network-scripts]# service network restart (让地址生效

 

『ORACLE』更改主机IP地址