Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 2 virtual machines in my pc(rhel5 ,oel5)
I am trying to share data through internet connection.
I issued ping command but it got network unreachable.
Could anyone explain about how to set ip for linux machines ?
- Obviously i am going to share data between oracle databases.
Still i did n't update etc /hosts file.
Last edited by thiyagusham; 03-26-2013 at 12:46 PM.
Since you're using virtual machines, though, have you enabled bridging on your network devices? If you haven't, you won't be able to communicate correctly.
And again, since you're using both Red Hat Enterprise and Oracle Enterprise, have you contacted Red Hat and/or Oracle support??? Those are both commercial products that you are PAYING for, and as such, are paying for tech support.
Quote:
- Obviously i am going to share data between oracle databases.
Why would that be obvious? Oracle Linux is *TYPICALLY* used for Oracle, but can be used for other things as well
Quote:
Still i did n't update etc /hosts file.
Well, if you think you have to, wouldn't it be a good idea to DO IT??
Yes TBone , you asked many questions. I am being something quiet.
In my env , I can't ask everything (related to linux) to unix team.
Even i work with linux platform , we have certain limits .
I need some information with subnet mask. ehat actually it does ?
- I googled but clear. from attached screen shot what's your suggestion to us ?
Yes TBone , you asked many questions. I am being something quiet.
In my env , I can't ask everything (related to linux) to unix team.
Nowhere did I mention asking your unix/linux team. I directed you to the very easily-found documentation on Google, and told you about bridging from your VM machine.
Quote:
Even i work with linux platform , we have certain limits.
If you can't ask your co-workers some simple questions, then you have serious problems in your work environment. You should escalate those issues to your boss.
Quote:
I need some information with subnet mask. ehat actually it does ?
I googled but clear. from attached screen shot what's your suggestion to us ?
Since you don't say WHAT isn't clear, what do you think anyone can tell you? I suggested to you in my first reply that you enable bridging from your VM machines, and for you to contact either Red Hat or Oracle support. Have you done either? You don't say what kind of VM machine you're using, so again...with no details, there can't be much in the way of an answer.
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 oel5.myserver oel5 localhost.localdomain localhost
192.168.2.20 oel.myserver oel5
~
[root@oel5 etc]# hostname -i
127.0.0.1
[root@oel5 etc]# hostname
oel5.myserver
but i configred ip address as 192.168.2.20. but VM showing 127.0.0.1
What's the problem here ?
Thanks ..
Last edited by thiyagusham; 03-28-2013 at 12:49 PM.
Hello TBone ;
Small clarification. when i issuued
# hostname -i
# vi/etc/hosts
Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 oel5.myserver oel5 localhost.localdomain localhost
192.168.2.20 oel.myserver oel5
What's the problem here?
That doesn't clarify anything, since this is the first time you mentioned the /etc/hosts file, or issuing the hostname command. Why would this clarify anything? And you still haven't answered whether or not you've contacted Oracle/Red Hat, or what kind of VM's you're using, or if you've enabled bridging on your VM's yet. You got these suggestions, and haven't acknowledged them. Unless you answer questions and try things, there is little point in posting follow-ups.
And you have put incorrect entries in the /etc/hosts file. Again, you need to talk with your unix/linux folks and get them to explain things to you, or try looking up such things on your own. From very easily found /etc/hosts examples from Google: http://www.faqs.org/docs/securing/chap9sec95.html
Your localhost line is wrong, and you've defined two aliases for the SAME name...both for oel5.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.