How to Create a Virtual IP in Solaris

August 7, 2007 – 7:36 pm

 Tip courtesy of Kyle Reynolds at http://www.camelrichard.org

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

Post a Comment