oifcfg。# 節點 1
cd $GRID_HOME/gpnp/rac-one/profiles/peer/
cp profile.xml profile.xml_bak
# 節點 2
cd $GRID_HOME/gpnp/rac-two/profiles/peer/
cp profile.xml profile.xml_bak
$ oifcfg getif
eth0 192.168.4.0 global public
eth3 192.168.2.0 global cluster_interconnect
$ oifcfg iflist -p -n
eth0 192.168.4.0 PRIVATE 255.255.255.0
eth3 192.168.2.0 PRIVATE 255.255.255.0
eth3 169.254.0.0 UNKNOWN 255.255.0.0
eth1 192.168.1.0 PRIVATE 255.255.255.0
eth2 192.168.1.0 PRIVATE 255.255.255.0
現狀:eth3 (192.168.2.0) 為當前 cluster_interconnect,計劃遷移至 eth1/eth2 (192.168.1.0)。
# 任一節點執行即可 (GPnP 會推播至全叢集)
$ oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
$ oifcfg setif -global eth2/192.168.1.0:cluster_interconnect
# 驗證
$ oifcfg getif
eth0 192.168.4.0 global public
eth3 192.168.2.0 global cluster_interconnect
eth1 192.168.1.0 global cluster_interconnect
eth2 192.168.1.0 global cluster_interconnect
$ oifcfg delif -global eth3/192.168.2.0
# 最終驗證
$ oifcfg getif
eth0 192.168.4.0 global public
eth1 192.168.1.0 global cluster_interconnect
eth2 192.168.1.0 global cluster_interconnect
crsctl stop crs / crsctl start crs (逐節點)。crsctl check cluster、olnodes -n。netstat -i、tcpdump -i eth1、oradebug ipc。/etc/hosts、GPnP profile 中主機名解析 (如有變更)。# 10g/11gR1 寫入 OCR
$ oifcfg setif -global eth1/192.168.1.0:cluster_interconnect
$ oifcfg delif -global eth3/192.168.2.0
# 無需備份 GPnP XML,但需全叢集停機生效
ping/ssh 新私網 IP 通暢。oifcfg setif -global eth3/192.168.2.0:cluster_interconnect 恢復舊介面。11gR2+ 私網遷移核心在於 oifcfg setif/delif -global 操作 GPnP Profile,**無需停叢集即可動態生效** (建議滾動重啟驗證),較 10g 手工編輯 OCR 時代大幅降低風險與停機時間。