|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
Thanks DukeNuke2,
Should I choose a different name for the second interface other than the previous one? Thanks, Deepak |
|
#4
|
||||
|
||||
|
yes, thats the only way it works...
|
|
#5
|
|||
|
|||
|
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
|
||||
|
||||
|
there is only one hostname. it's the name inside /etc/nodename.
|
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |