上篇 RAC 修改 IP 介绍的是修改VIP,SCAN IP ,PUBLIC IP . 现在要修改的是私有网络的IP
修改 private ip
1 确保crs集群是打开的
可以用olsnodes –s 检查集群的状态
[root@sharkdb-rac-01 network-scripts]# olsnodes -s
sharkdb-rac-01 Active
sharkdb-rac-02 Active
2 检查网卡信息
[root@sharkdb-rac-01 network-scripts]# oifcfg getif
eth2 192.168.3.0 global cluster_interconnect
eth1 192.168.7.0 global public
3 修改私有网卡IP --添加方法
[root@sharkdb-rac-01 network-scripts]# oifcfg setif -global ethn2/192.168.8.0:cluster_interconnect
4 修改成功
[root@sharkdb-rac-01 network-scripts]# oifcfg getif
eth2 192.168.3.0 global cluster_interconnect
eth1 192.168.7.0 global public
ethn2 192.168.8.0 global cluster_interconnect
5 删除旧的私有网卡
[root@sharkdb-rac-01 network-scripts]# oifcfg delif -global eth2
[root@sharkdb-rac-01 network-scripts]# oifcfg getif
eth1 192.168.7.0 global public
ethn2 192.168.8.0 global cluster_interconnect
6 关闭CRS
[root@sharkdb-rac-01 network-scripts]# crsctl stop crs
7 修改私有网卡的系统IP地址
[root@sharkdb-rac-01 ~]# ifconfig
eth1 Link encap:Ethernet HWaddr 08:00:27:C8:85:B8
inet addr:192.168.7.203 Bcast:192.168.7.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fec8:85b8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:874 errors:0 dropped:64 overruns:0 frame:0
TX packets:336 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:73376 (71.6 KiB) TX bytes:48302 (47.1 KiB)
eth2 Link encap:Ethernet HWaddr 08:00:27:72:F6:2A
inet addr:192.168.8.203 Bcast:192.168.8.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe72:f62a/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:12209 (11.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:960 errors:0 dropped:0 overruns:0 frame:0
TX packets:960 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:967085 (944.4 KiB) TX bytes:967085 (944.4 KiB)
8 重启系统
reboot
9 检查是否报错了 ?
我上面 多输入个N 字母 后面起不来了
10 如何解决网卡修改错误,请看下一回
11 关于<Oracle优化新常态> 第二章 在第一章打赏的人,可以提前看到第二章,把邮箱留在留言中
过往文章目录
理科精华
文史经典
财经经典




