SUMMARY: How Do I Multi-IP a NIC on Solaris 7?

From: Sven LL Rafferty (sven@financialengines.com)
Date: Thu Nov 04 1999 - 14:02:38 CST


Question:

> Hi
>
> I need to multi-host some web servers on my Solaris box. It
> has two NICs,
> one for "incoming' traffic and one for "outgoing" traffic.
> Two different
> networks. I need to add more IP's to the incoming NIC for
> the web servers.
> How do I do this? Just add the IP and host name to the
> /etc/hosts file and
> add the IP to the hostname.hme0? TIA!

Summary:

> For each webserver, you'll need to configure an interface
> that attaches to one
> of your NIC cards.
>
> /usr/sbin/ifconfig hme0:1 inet 123.123.123.1 netmask
> 255.255.255.0 broadcast
>
> Note the "hme0:1". For each additional ip address add +1 to
> the number. hme0:2,
> hme0:3, hme0:4 -- up to hme0:256
>
> The bring it up:
> /usr/sbin/ifconfig hme0:1 up
>
> Verify it:
> /usr/sbin/ifconfig -a
>
> Now make it permanent in /etc/rc2.d/S72inetsvc. Find the
> line that says:
> "#/usr/sbin/ifconfig -a"
> and add a new line for each ip you want to bring up at boot time.
>
> For example:
> /usr/sbin/ifconfig hme0:1 inet <inet address1> netmask +
> broadcast + up
> /usr/sbin/ifconfig hme0:2 inet <inet address2> netmask +
> broadcast + up
> /usr/sbin/ifconfig hme0:3 inet <inet address3> netmask +
> broadcast + up
> /usr/sbin/ifconfig hme0:4 inet <inet address4> netmask +
> broadcast + up



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:31 CDT