Changing IP address on Solaris 9 with multiple virtual IP addresses

Changing IP address on Solaris 9 with multiple virtual IP addresses

Post by Robert D » Fri, 10 Dec 2004 20:37:21



Hi

We are running Solaris 9 and have configured the one physical NIC with
2 IP addresses allowing us to run 2 web servers and keep both on port
80. Is changing the IP address assigned to each host as simple as
changing the entries in /etc/inet/hosts or do I need to start messing
with ifconfig?

TIA

Robert

 
 
 

Changing IP address on Solaris 9 with multiple virtual IP addresses

Post by Michael Tos » Fri, 10 Dec 2004 21:16:18



Quote:> Hi

> We are running Solaris 9 and have configured the one physical NIC with
> 2 IP addresses allowing us to run 2 web servers and keep both on port
> 80. Is changing the IP address assigned to each host as simple as
> changing the entries in /etc/inet/hosts or do I need to start messing
> with ifconfig?

You need at least to change /etc/inet/hosts.
This becomes effective after the next system boot.
To immediately change it with a reboot you need ifconfig.

--
Michael Tosch
IT Specialist
Managed Services Germany
Hewlett-Packard GmbH
Phone: +49 2407 575 313
Mail: michael.tosch:hp.com

 
 
 

Changing IP address on Solaris 9 with multiple virtual IP addresses

Post by Vlad Gram » Sat, 11 Dec 2004 00:48:03


Same as Michael said.

You may also need to modify /etc/hostname.<interface> for the virtual
interface in case you have an IP address in this file and not a name
from /etc/inet/hosts .

Vlad.

 
 
 

Changing IP address on Solaris 9 with multiple virtual IP addresses

Post by georg » Sat, 11 Dec 2004 02:20:26


This is called creating  cloned interface
if you have hme0 as interface
run "ifconfig plumb hme0:1:
it should then appear in the output of "ifconfig -a"
u can then assign ipaddress via ifconfig command
To make permanent
create a /etc/<new_hostname_for_new interface>.hme0:1 file containing one
line for the new interface name
then put an entry in /etc/hosts  so that solaris can map the new name to an
ip addess.
I hope I have got this right cos its been some time since I did it.
George