On Mon, 15 Jun 1998, Zhenhua wrote:

> Hi, Everyone:
> 
> I tried to use:
> 
> /sbin/ifconfig eth0:1 199.207.158.2
> /sbin/route add -host 199.207.158.2 dev eth0:1
> 
> to add a virtual IP to the server.
> The first command gives error:
> SIOCSIFADDR: Invalid argument
> The second command gives error:
> SIOCADDRT: Operation not supported by device
> 
> Anyone has any idea?
> 
> The box runs Redhat 5.1. Using Intel PCI Pro 10/100 card.
> The server network works fine. The eth0 works OK with one
> IP number. We try to add a second IP to it.
> 
> I have recompiled the kernel and selected the Intel
> network card. It didn't help at all.
> 

When the kernel was recompiled, did you ensure IP Aliasing support was
added in?  If not, then there's the problem.  Anyhow, if you are using
RedHat, then just modify the actual
/etc/sysconfig/network-scripts/ifcfg-eth0* files.. :)  copy ifcfg-eth0 to
ifcfg-eth0:1 and modify it appropriately.. that will solve any possible
arguments you are forgetting.. if it still doesn't bind the second ip
properly, I would definately take a look at recompiling the kernel, as
that is most likely your problem.

+-----------------------------------------------------------------+
|         Kevin Smith x Computer Cafe System Administrator        |
|    [EMAIL PROTECTED] x [EMAIL PROTECTED] x [EMAIL PROTECTED]    |
|             "Once, I was a mudflap... on a truck"               |
+-----------------------------------------------------------------+



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
         To unsubscribe: mail [EMAIL PROTECTED] with 
                       "unsubscribe" as the Subject.

Reply via email to