LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-14-2009, 05:44 AM   #1
furqan_sindhu
LQ Newbie
 
Registered: May 2006
Posts: 25
Blog Entries: 1

Rep: Reputation: 15
Question Solaris - /etc/hosts


Hello All,

I have a Solaris server which has 2 entries as given below

123.234.345.456 Server1 MS
987.876.765.654 Server1 MS


Now, actually both IPs, point to the same physical server, i.e. multiple interfaces. I would like to know what is the impact of having such config in /etc/hosts.

if we do like "ssh Server1", what IP would it try? and what if one interface is down, will it automatically try the other interface???
 
Old 10-14-2009, 05:53 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
These are hardly IP addresses. Each component is a byte so should be in the 0-255 range. Anyway, there is no round robin done when the backend is /etc/hosts so I guess the first IP address is always picked when you resolve "Server1" and communication just fails if this interface is down.
 
1 members found this post helpful.
Old 10-15-2009, 12:01 AM   #3
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 10:43 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can't restrict sshd access through hosts.allow and hosts.deny but was working earlier farhan Linux - Security 4 04-18-2008 08:41 AM
Solaris Express CE and editing /etc/hosts , I do not have permission zillah Solaris / OpenSolaris 4 12-07-2007 04:32 AM
How to add hosts to Solaris server pranavojha Solaris / OpenSolaris 2 10-19-2007 09:12 AM
solaris 10: do I have to create my own hosts.deny? xpucto Solaris / OpenSolaris 1 11-15-2006 07:07 AM
solaris 9 rsh and /etc/hosts.equiv pymehta Solaris / OpenSolaris 3 01-19-2005 12:07 PM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration