Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

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/64 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/64 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/64 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/64 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.localdomain   ol5-112-rac1-priv
192.168.1.102   ol5-112-rac2-priv.localdomain   ol5-112-rac2-priv
# Virtual
192.168.0.103   ol5-112-rac1-vip.localdomain    ol5-112-rac1-vip
192.168.0.104   ol5-112-rac2-vip.localdomain    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..
0
walkerdba
Asked:
walkerdba
  • 5
  • 3
  • 2
  • +2
1 Solution
 
walkerdbaAuthor Commented:
very urgent please thank you....
0
 
savoneCommented:
You should add them to /etc/hosts file if you want to resolve the names without DNS.
0
 
savoneCommented:
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.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
walkerdbaAuthor Commented:
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..
0
 
savoneCommented:
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
0
 
walkerdbaAuthor Commented:
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.localdomain   ol5-112-rac1-priv
192.168.1.102   ol5-112-rac2-priv.localdomain   ol5-112-rac2-priv
# Virtual
192.168.0.103   ol5-112-rac1-vip.localdomain    ol5-112-rac1-vip
192.168.0.104   ol5-112-rac2-vip.localdomain    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 ?
0
 
simon3270Commented:
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.
0
 
walkerdbaAuthor Commented:
Sir my question is etho is private or public
eth1 is public or private please confirm
0
 
Duncan RoeSoftware DeveloperCommented:
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?
0
 
MazdajaiCommented:
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?
0
 
Duncan RoeSoftware DeveloperCommented:
My bad, you did post both ifconfigs in the original Q. You have 2 networks: 10.0.0/24 and 192.168.2.0/64. Both machines are connected to both networks. Both networks are private.
Looking at packet numbers in these, at least rc1 has communicated with a system other than rc2 on network 10.0.0.0.
Really need to understand better what is your real question.
0
 
walkerdbaAuthor Commented:
fine
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now