Go Back   The UNIX and Linux Forums > Operating Systems > Solaris
google site



Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Closed Thread
English Japanese Spanish French German Portuguese Italian Powered by Powered by Google
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-05-2009
Registered User
 

Join Date: Oct 2008
Location: New Delhi, India
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Hi All,

I am having a sun server. The primary network interface is having name "sun1" and IP address "192.168.2.10". Now when I add second network interface with different IP address "10.1.1.100" and same hostname, it doesn't work.

What I want to know is that should the second interface having different hostname like IP address or can any one tell me how to configure second network interface with different IP address...

Thanks in advance,
Deepak

Here is the output of /etc/inet/hosts, /etc/inet/ipnodes, /etc/nodename, /etc/hostname.hme0 and /etc/hostname.hme1 files:


Code:
#cat /etc/inet/hosts
192.168.2.10      sun1    loghost
10.1.1.100         sun1


Code:
#cat /etc/inet/ipnodes
192.168.2.10      sun1    loghost
10.1.1.100         sun1


Code:
#cat /etc/nodename
sun1


Code:
#cat /etc/hostname.hme0
sun1


Code:
#cat /etc/hostname.hme1
sun1

Thanks,
Deepak

Last edited by DukeNuke2; 12-05-2009 at 06:04 AM..
Sponsored Links
  #2  
Old 12-05-2009
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 3,528
Thanks: 1
Thanked 8 Times in 8 Posts
two possibilities:
1. put the ip inside the "hostname.interface" file
2. choose ANY OTHER name (not the same name as for the other interface) and enter it with the ip inside /etc/hosts and put that name inside "hostname.interface"
  #3  
Old 12-05-2009
Registered User
 

Join Date: Oct 2008
Location: New Delhi, India
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks DukeNuke2,

Should I choose a different name for the second interface other than the previous one?

Thanks,
Deepak
  #4  
Old 12-05-2009
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 3,528
Thanks: 1
Thanked 8 Times in 8 Posts
yes, thats the only way it works...
  #5  
Old 12-05-2009
Registered User
 

Join Date: Oct 2008
Location: New Delhi, India
Posts: 160
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks again !

I did as per your suggestion and it works. One more trouble for you, how can I work with only one hostname even if we have multiple interfaces. We simply can't or there are any way??

Thanks again,
Deepak
  #6  
Old 12-05-2009
DukeNuke2's Avatar
Soulman
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 3,528
Thanks: 1
Thanked 8 Times in 8 Posts
there is only one hostname. it's the name inside /etc/nodename.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Confussed with entries in /etc/hostname.<interface> file... Reboot Solaris 3 10-05-2008 04:45 PM
Problem with a Network Interface aldowsary AIX 7 10-09-2007 09:26 PM
Network interface Qfe, ce, bge ... unclefab Solaris 1 10-30-2006 07:37 AM
/etc/hostname.interface file ghuber Solaris 1 01-26-2006 10:29 AM
Network Interface witt UNIX for Dummies Questions & Answers 4 06-07-2001 06:32 PM



All times are GMT -4. The time now is 07:34 AM.