How to Create a Virtual IP in Solaris


Tags:
                                  

1) create /etc/hostname.<interfacename>:<n> containing the hostname of the virtual IP

        example:

        /etc/hostname.hme0:1


2) add the hostname and virtual IP to /etc/hosts


3) use the following commands to configure the interface:


   ifconfig <interfacename>:<n> plumb

        example:

        ifconfig hme0:1 plumb


   ifconfig <interfacename>:<n> <IP address> netmask <netmask> broadcast + up

        example:

        ifconfig hme0:1 10.67.1.141 netmask 255.255.255.0 broadcast + up


Why the Virtual IP address got reset to 0.0.0.0 after reboot? How to keep it permanent? TIA.

To make the virtual interface persist following a reboot, you can add the ip address or hostame in the file /etc/hostname.hme0:1

Thanks a lot for the above guidelines. This made my work very simple. Once again thanks very much....