LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 04:53 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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-14-2009, 11:01 PM   #3
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

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


Reply



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 07:41 AM
Solaris Express CE and editing /etc/hosts , I do not have permission zillah Solaris / OpenSolaris 4 12-07-2007 03:32 AM
How to add hosts to Solaris server pranavojha Solaris / OpenSolaris 2 10-19-2007 08:12 AM
solaris 10: do I have to create my own hosts.deny? xpucto Solaris / OpenSolaris 1 11-15-2006 06:07 AM
solaris 9 rsh and /etc/hosts.equiv pymehta Solaris / OpenSolaris 3 01-19-2005 11:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:01 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
Open Source Consulting | Domain Registration