What should be hostname for second network interface?


 
Thread Tools Search this Thread
Operating Systems Solaris What should be hostname for second network interface?
# 1  
Old 12-05-2009
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 07:04 AM..
# 2  
Old 12-05-2009
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
Thanks DukeNuke2,

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

Thanks,
Deepak
# 4  
Old 12-05-2009
yes, thats the only way it works...
# 5  
Old 12-05-2009
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
there is only one hostname. it's the name inside /etc/nodename.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Adding a network interface to a bonded interface

I have a RHEL 5 system with a bonded interface configure using only one network port (eth0). So I have config file for ifcfg-bond0 and ifcfg-eth. I'd like to configure eth5 to be the second SLAVE in the bond. My question is, after I modify ifcfg-eth5, can I add eth5 to the bond0 interface without... (1 Reply)
Discussion started by: westmoreland
1 Replies

2. Solaris

No network cable But Network interface is UP and Running

I've one Netra 240 After changing main board and system configuration card reader, Network is not accessible any more, Network interfaces are always UP and Running even when there is no cable connected to Network interfaces. I tried to restart and plumb/unplumb with no luck. ifconfig -a... (7 Replies)
Discussion started by: samer.odeh
7 Replies

3. IP Networking

network interface -

Hello, Please, how can i create a network interface with a routable IP address on linux (ubuntu) ? AND How can i desactivate an interface? Thank you so much for help. (1 Reply)
Discussion started by: chercheur857
1 Replies

4. IP Networking

Network interface-

Hello, Please what's the difference between: AND Thank you so much (3 Replies)
Discussion started by: chercheur857
3 Replies

5. UNIX and Linux Applications

Access to network interface (Mac-network)

Hi, I'm a italian student. For my thesis I develop a gateway with protocol 6lowpan. For that I must access to network interface to develope my personal stack based on standard 802.15.4. Can you help me? I need an explanation for that. (0 Replies)
Discussion started by: berny88
0 Replies

6. Solaris

configure zones to have different network interface and network

i need to configure a zone to use different interface (bge2) than global and have connected to completely different network switch & to use its own defaultrouter and hosts file .. is it possible ..if so ..how ? Thanks (9 Replies)
Discussion started by: skamal4u
9 Replies

7. Solaris

Confused with entries in /etc/hostname.<interface> file...

Hi.. Every one, I have servers installed with solaris 10.We have configured our servers for IPMP and we have respective entries in /etc/hostname.<interface> for every physical interface. for example one of the file contains : # more /etc/hostname.ce6 super-ce6 netmask + broadcast + group... (3 Replies)
Discussion started by: Reboot
3 Replies

8. Linux

Get info on network interface

Hello everybody, How can link network interface to the output of lspci -vv. Basicly i need to know who is the manufacturer of a specific interface, for example eth0 {Is it an Intel, or Broadcome, or something else}. Is there a way to find that out? Thanx (5 Replies)
Discussion started by: aleksey
5 Replies

9. Solaris

/etc/hostname.interface file

I recently brought up a second network interface adapter in my Solaris 8 box. I configured the /etc/hostname.interface (hostname.ce1 in this case) with the hostname of the new adapter. I then added that hostname to the /etc/hosts file. Problem is when I reboot the ce1 interface is plumbed, but... (1 Reply)
Discussion started by: ghuber
1 Replies

10. UNIX for Dummies Questions & Answers

Network Interface

Hi ! Does anyone know how can i get information about my network interface ... if it works in half or full duplex mode !! Thx in adivance ! Witt (4 Replies)
Discussion started by: witt
4 Replies
Login or Register to Ask a Question