이 페이지의 이전 버전을 보고 있습니다. 현재 버전 보기.

현재와 비교 페이지 이력 보기

« 이전 버전 6 다음 »

 

 

 

 

 

 

 

 

 

네트워크명 변경
ifconfig -a
vi /etc/udev/rules.d/70-persistent-net.rules
cd /etc/sysconfig/network-scripts
mv ifcfg-<pubic ip 할당 NIC명> ifcfg-eth0
mv ifcfg-<private ip 할당 NIC명> ifcfg-eth1
[root@rac2 ~]# ifconfig -a
eth2      Link encap:Ethernet  HWaddr 08:00:27:9B:01:9E
          inet addr:10.0.1.102  Bcast:10.0.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe9b:19e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:332 errors:0 dropped:0 overruns:0 frame:0
          TX packets:220 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32398 (31.6 KiB)  TX bytes:32196 (31.4 KiB)

eth3      Link encap:Ethernet  HWaddr 08:00:27:06:0D:38
          inet addr:10.0.5.102  Bcast:10.0.5.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe06:d38/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:756 (756.0 b)  TX bytes:1428 (1.3 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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2944 (2.8 KiB)  TX bytes:2944 (2.8 KiB)
[root@rac2 ~]# vi /etc/udev/rules.d/70-persistent-net.rules
Old
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:76:c1:bf", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:67:3c:e6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:9b:01:9e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:06:0d:38", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3"
New
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:9b:01:9e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:06:0d:38", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
[root@rac2 rules.d]# cd /etc/sysconfig/network-scripts
[root@rac2 network-scripts]# mv ifcfg-Auto_eth2 ifcfg-eth0
[root@rac2 network-scripts]# mv ifcfg-Auto_eth3 ifcfg-eth1

 

vi /etc/sysconfig/network
HOSTNAME=rac2

 

oracle 유저 : vi .bash_profile
export ORACLE_HOSTNAME=rac2
export ORACLE_SID=racdb2

 

grid 유저 : vi .bash_profile
export ORACLE_HOSTNAME=rac2
export ORACLE_SID=+ASM2

 

vi /etc/inittab
id:3:initdefault:

 

시스템 재기동
reboot

 

기능 테스트
ping -c 3 rac1
ping -c 3 rac1-priv
ping -c 3 rac2
ping -c 3 rac2-priv
nslookup rac-scan

ssh rac1 date
ssh rac1-priv date
ssh rac2 date
ssh rac2-priv date
[root@rac1 ~]# ping -c 3 rac1
PING rac1 (10.0.1.101) 56(84) bytes of data.
64 bytes from rac1 (10.0.1.101): icmp_seq=1 ttl=64 time=0.028 ms
64 bytes from rac1 (10.0.1.101): icmp_seq=2 ttl=64 time=0.071 ms
64 bytes from rac1 (10.0.1.101): icmp_seq=3 ttl=64 time=0.056 ms

--- rac1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2006ms
rtt min/avg/max/mdev = 0.028/0.051/0.071/0.019 ms

[root@rac1 ~]# ping -c 3 rac1-priv
PING rac1-priv (10.0.5.101) 56(84) bytes of data.
64 bytes from rac1-priv (10.0.5.101): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from rac1-priv (10.0.5.101): icmp_seq=2 ttl=64 time=0.053 ms
64 bytes from rac1-priv (10.0.5.101): icmp_seq=3 ttl=64 time=0.056 ms

--- rac1-priv ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.023/0.044/0.056/0.014 ms

[root@rac1 ~]# ping -c 3 rac2
PING rac2 (10.0.1.102) 56(84) bytes of data.
64 bytes from rac2 (10.0.1.102): icmp_seq=1 ttl=64 time=0.819 ms
64 bytes from rac2 (10.0.1.102): icmp_seq=2 ttl=64 time=0.643 ms
64 bytes from rac2 (10.0.1.102): icmp_seq=3 ttl=64 time=0.634 ms

--- rac2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2008ms
rtt min/avg/max/mdev = 0.634/0.698/0.819/0.090 ms

[root@rac1 ~]# ping -c 3 rac2-priv
PING rac2-priv (10.0.5.102) 56(84) bytes of data.
64 bytes from rac2-priv (10.0.5.102): icmp_seq=1 ttl=64 time=0.745 ms
64 bytes from rac2-priv (10.0.5.102): icmp_seq=2 ttl=64 time=0.610 ms
64 bytes from rac2-priv (10.0.5.102): icmp_seq=3 ttl=64 time=0.707 ms

--- rac2-priv ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2014ms
rtt min/avg/max/mdev = 0.610/0.687/0.745/0.060 ms

[root@rac1 ~]# nslookup rac-scan
Server:		127.0.0.1
Address:	127.0.0.1#53

Name:	rac-scan
Address: 10.0.1.120

[root@rac1 ~]# ssh rac1 date
The authenticity of host 'rac1 (10.0.1.101)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)  
root@rac1's password: 
2017. 04. 15. (토) 23:37:03 KST

[root@rac1 ~]# ssh rac1 date
The authenticity of host 'rac1 (10.0.1.101)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,10.0.1.101' (RSA) to the list of known hosts.
root@rac1's password: 
2017. 04. 15. (토) 23:37:18 KST

[root@rac1 ~]# ssh rac1-priv date
The authenticity of host 'rac1-priv (10.0.5.101)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-priv,10.0.5.101' (RSA) to the list of known hosts.
root@rac1-priv's password: 
2017. 04. 15. (토) 23:37:36 KST

[root@rac1 ~]# ssh rac2 date
The authenticity of host 'rac2 (10.0.1.102)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,10.0.1.102' (RSA) to the list of known hosts.
root@rac2's password: 
2017. 04. 15. (토) 23:37:47 KST

[root@rac1 ~]# ssh rac2-priv date
The authenticity of host 'rac2-priv (10.0.5.102)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2-priv,10.0.5.102' (RSA) to the list of known hosts.
root@rac2-priv's password: 
2017. 04. 15. (토) 23:38:06 KST
[root@rac2 ~]# ping -c 3 rac1
PING rac1 (10.0.1.101) 56(84) bytes of data.
64 bytes from rac1 (10.0.1.101): icmp_seq=1 ttl=64 time=0.325 ms
64 bytes from rac1 (10.0.1.101): icmp_seq=2 ttl=64 time=0.417 ms
64 bytes from rac1 (10.0.1.101): icmp_seq=3 ttl=64 time=0.942 ms

--- rac1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 0.325/0.561/0.942/0.272 ms


[root@rac2 ~]# ping -c 3 rac1-priv
PING rac1-priv (10.0.5.101) 56(84) bytes of data.
64 bytes from rac1-priv (10.0.5.101): icmp_seq=1 ttl=64 time=0.377 ms
64 bytes from rac1-priv (10.0.5.101): icmp_seq=2 ttl=64 time=0.519 ms
64 bytes from rac1-priv (10.0.5.101): icmp_seq=3 ttl=64 time=0.517 ms

--- rac1-priv ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 0.377/0.471/0.519/0.066 ms


[root@rac2 ~]# ping -c 3 rac2
PING rac2 (10.0.1.102) 56(84) bytes of data.
64 bytes from rac2 (10.0.1.102): icmp_seq=1 ttl=64 time=0.023 ms
64 bytes from rac2 (10.0.1.102): icmp_seq=2 ttl=64 time=0.042 ms
64 bytes from rac2 (10.0.1.102): icmp_seq=3 ttl=64 time=0.046 ms

--- rac2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.023/0.037/0.046/0.010 ms


[root@rac2 ~]# ping -c 3 rac2-priv
PING rac2-priv (10.0.5.102) 56(84) bytes of data.
64 bytes from rac2-priv (10.0.5.102): icmp_seq=1 ttl=64 time=0.016 ms
64 bytes from rac2-priv (10.0.5.102): icmp_seq=2 ttl=64 time=0.049 ms
64 bytes from rac2-priv (10.0.5.102): icmp_seq=3 ttl=64 time=0.056 ms

--- rac2-priv ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 0.016/0.040/0.056/0.018 ms

[root@rac2 ~]# nslookup rac-scan
Server:		127.0.0.1
Address:	127.0.0.1#53

Name:	rac-scan
Address: 10.0.1.120

[root@rac2 ~]# ssh rac1 date
The authenticity of host 'rac1 (10.0.1.101)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,10.0.1.101' (RSA) to the list of known hosts.
root@rac1's password: 
2017. 04. 15. (토) 23:39:25 KST

[root@rac2 ~]# ssh rac1-priv date
The authenticity of host 'rac1-priv (10.0.5.101)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-priv,10.0.5.101' (RSA) to the list of known hosts.
root@rac1-priv's password: 
2017. 04. 15. (토) 23:39:35 KST

[root@rac2 ~]# ssh rac2 date
The authenticity of host 'rac2 (10.0.1.102)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,10.0.1.102' (RSA) to the list of known hosts.
root@rac2's password: 
2017. 04. 15. (토) 23:39:46 KST

[root@rac2 ~]# ssh rac2-priv date
The authenticity of host 'rac2-priv (10.0.5.102)' can't be established.
RSA key fingerprint is 6c:aa:b3:f6:9b:9d:3b:88:fe:7a:ce:6d:10:ee:0c:eb.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2-priv,10.0.5.102' (RSA) to the list of known hosts.
root@rac2-priv's password: 
2017. 04. 15. (토) 23:39:55 KST

 

  • 레이블 없음