walkerdba
asked on
public private
in my rc1 machine
the /etc/hosts file is
[root@rc1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:06:10:4B
inet addr:192.168.2.55 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe06:104b/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:239 errors:0 dropped:0 overruns:0 frame:0
TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35537 (34.7 KiB) TX bytes:11873 (11.5 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:06:10:55
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe06:1055/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:223 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33926 (33.1 KiB) TX bytes:12572 (12.2 KiB)
Interrupt:67 Base address:0x20a4
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:16436 Metric:1
RX packets:2060 errors:0 dropped:0 overruns:0 frame:0
TX packets:2060 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4420688 (4.2 MiB) TX bytes:4420688 (4.2 MiB)
[root@rc1 ~]#
in my rc2 machine this is /et/hosts
[root@rc2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:4A:C2:8D
inet addr:192.168.2.77 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe4a:c28d/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15131 (14.7 KiB) TX bytes:10084 (9.8 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:4A:C2:97
inet addr:10.0.0.7 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe4a:c297/6 4 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14531 (14.1 KiB) TX bytes:10492 (10.2 KiB)
Interrupt:67 Base address:0x20a4
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:16436 Metric:1
RX packets:1721 errors:0 dropped:0 overruns:0 frame:0
TX packets:1721 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570844 (3.4 MiB) TX bytes:3570844 (3.4 MiB)
[root@rc2 ~]#
This is the model of rac /etc/hosts file
ok
127.0.0.1 localhost.localdomain localhost
# Public
192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1
192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2
# Private
192.168.1.101 ol5-112-rac1-priv.localdom ain ol5-112-rac1-priv
192.168.1.102 ol5-112-rac2-priv.localdom ain ol5-112-rac2-priv
# Virtual
192.168.0.103 ol5-112-rac1-vip.localdoma in ol5-112-rac1-vip
192.168.0.104 ol5-112-rac2-vip.localdoma in ol5-112-rac2-vip
# SCAN
192.168.0.105 ol5-112-scan.localdomain ol5-112-scan
192.168.0.106 ol5-112-scan.localdomain ol5-112-scan
192.168.0.107 ol5-112-scan.localdomain ol5-112-scan
What and where should I add my ip address for rc1 and rc2 for private and public address and scan
Can u please make a real /etc/hosts file for my grid machine..
the /etc/hosts file is
[root@rc1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:06:10:4B
inet addr:192.168.2.55 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe06:104b/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:239 errors:0 dropped:0 overruns:0 frame:0
TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35537 (34.7 KiB) TX bytes:11873 (11.5 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:06:10:55
inet addr:10.0.0.6 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe06:1055/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:223 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:33926 (33.1 KiB) TX bytes:12572 (12.2 KiB)
Interrupt:67 Base address:0x20a4
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:16436 Metric:1
RX packets:2060 errors:0 dropped:0 overruns:0 frame:0
TX packets:2060 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4420688 (4.2 MiB) TX bytes:4420688 (4.2 MiB)
[root@rc1 ~]#
in my rc2 machine this is /et/hosts
[root@rc2 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:4A:C2:8D
inet addr:192.168.2.77 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe4a:c28d/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:113 errors:0 dropped:0 overruns:0 frame:0
TX packets:71 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15131 (14.7 KiB) TX bytes:10084 (9.8 KiB)
Interrupt:67 Base address:0x2024
eth1 Link encap:Ethernet HWaddr 00:0C:29:4A:C2:97
inet addr:10.0.0.7 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:29ff:fe4a:c297/6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14531 (14.1 KiB) TX bytes:10492 (10.2 KiB)
Interrupt:67 Base address:0x20a4
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:16436 Metric:1
RX packets:1721 errors:0 dropped:0 overruns:0 frame:0
TX packets:1721 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3570844 (3.4 MiB) TX bytes:3570844 (3.4 MiB)
[root@rc2 ~]#
This is the model of rac /etc/hosts file
ok
127.0.0.1 localhost.localdomain localhost
# Public
192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1
192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2
# Private
192.168.1.101 ol5-112-rac1-priv.localdom
192.168.1.102 ol5-112-rac2-priv.localdom
# Virtual
192.168.0.103 ol5-112-rac1-vip.localdoma
192.168.0.104 ol5-112-rac2-vip.localdoma
# SCAN
192.168.0.105 ol5-112-scan.localdomain ol5-112-scan
192.168.0.106 ol5-112-scan.localdomain ol5-112-scan
192.168.0.107 ol5-112-scan.localdomain ol5-112-scan
What and where should I add my ip address for rc1 and rc2 for private and public address and scan
Can u please make a real /etc/hosts file for my grid machine..
You should add them to /etc/hosts file if you want to resolve the names without DNS.
In order to make you a hosts file, I need the following information.
server hostname and IP
for each entry... It is simple you can do it yourself. Just add lines to the /etc/hosts file for each machine name and IP. Here is an example line:
192.168.2.55 rc1
Thats it, keep adding lines for each address.
server hostname and IP
for each entry... It is simple you can do it yourself. Just add lines to the /etc/hosts file for each machine name and IP. Here is an example line:
192.168.2.55 rc1
Thats it, keep adding lines for each address.
ASKER
What is private public and virtual address
etho is private?
etho is public ?
virtual ?
SCAN ?
in the dummy above can you add all these
I gave you the output of ifconfig of both machines
below..
etho is private?
etho is public ?
virtual ?
SCAN ?
in the dummy above can you add all these
I gave you the output of ifconfig of both machines
below..
Add this to your /etc/hosts file.
192.168.2.55 rc1
10.0.0.6 rc1
192.168.2.77 rc2
10.0.0.7 rc2
192.168.2.55 rc1
10.0.0.6 rc1
192.168.2.77 rc2
10.0.0.7 rc2
ASKER
the dummy is
127.0.0.1 localhost.localdomain localhost
# Public
192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1
192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2
# Private
192.168.1.101 ol5-112-rac1-priv.localdom ain ol5-112-rac1-priv
192.168.1.102 ol5-112-rac2-priv.localdom ain ol5-112-rac2-priv
# Virtual
192.168.0.103 ol5-112-rac1-vip.localdoma in ol5-112-rac1-vip
192.168.0.104 ol5-112-rac2-vip.localdoma in ol5-112-rac2-vip
# SCAN
192.168.0.105 ol5-112-scan.localdomain ol5-112-scan
192.168.0.106 ol5-112-scan.localdomain ol5-112-scan
192.168.0.107 ol5-112-scan.localdomain ol5-112-scan
Where exactly in this file we attach the eth0 ?
127.0.0.1 localhost.localdomain localhost
# Public
192.168.0.101 ol5-112-rac1.localdomain ol5-112-rac1
192.168.0.102 ol5-112-rac2.localdomain ol5-112-rac2
# Private
192.168.1.101 ol5-112-rac1-priv.localdom
192.168.1.102 ol5-112-rac2-priv.localdom
# Virtual
192.168.0.103 ol5-112-rac1-vip.localdoma
192.168.0.104 ol5-112-rac2-vip.localdoma
# SCAN
192.168.0.105 ol5-112-scan.localdomain ol5-112-scan
192.168.0.106 ol5-112-scan.localdomain ol5-112-scan
192.168.0.107 ol5-112-scan.localdomain ol5-112-scan
Where exactly in this file we attach the eth0 ?
There is no ordering in /etc/hosts (assuming that all of the IP addresses are unique) - you just add the lines where you want.
The "#Private", "#Public" etc labels are just that - labels used by humans reading this file. they have no impact on any program using it.
Since neither of your IP addresses (192.168.2.77 or 10.0.0.7) are on the same subnet as any of the exisitng IP addresse in your file, they don't really "belong" in any section. They are both "Private" addresses in that they won't normally be routed, but that's the case for all of the addresses inyour existing hosts file too.
The "#Private", "#Public" etc labels are just that - labels used by humans reading this file. they have no impact on any program using it.
Since neither of your IP addresses (192.168.2.77 or 10.0.0.7) are on the same subnet as any of the exisitng IP addresse in your file, they don't really "belong" in any section. They are both "Private" addresses in that they won't normally be routed, but that's the case for all of the addresses inyour existing hosts file too.
ASKER
Sir my question is etho is private or public
eth1 is public or private please confirm
eth1 is public or private please confirm
According to RFC1918, both eth0 and eth1 have private addresses. By the way, eth0 is E-T-H-NOUGHT - that 4th character is a zero.
That is the question you insisted on having answered. But that answer doesn't tell you whether any Network Interface Card (NIC) is connected to the Internet or an in_house router. One of them would have to be, in order to give access to networks not connected directly to either NIC.
In http:#a39213364, you said you would post output from ifconfig on both systems, but there is no such post. Please post that information now. Also while you are doing that, please add output from ip route list (i.e. post output from ifconfig;ip route list). It might not mean a lot to you, but it will help us give you an answer.
On which subject, what is your actual problem that you need to resolve?
That is the question you insisted on having answered. But that answer doesn't tell you whether any Network Interface Card (NIC) is connected to the Internet or an in_house router. One of them would have to be, in order to give access to networks not connected directly to either NIC.
In http:#a39213364, you said you would post output from ifconfig on both systems, but there is no such post. Please post that information now. Also while you are doing that, please add output from ip route list (i.e. post output from ifconfig;ip route list). It might not mean a lot to you, but it will help us give you an answer.
On which subject, what is your actual problem that you need to resolve?
Looking at the ifconfigs, it appears that the servers use eth1 to communicates to other nodes. (private)
Do you have a database server that sits in the 10 subnet?
Do you have a database server that sits in the 10 subnet?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
fine
ASKER