Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Aug 1996 15:29:12 -0400 (EDT)
From:      satan@yoss.canweb.net
To:        questions@freebsd.org
Subject:   ip aliasing
Message-ID:  <Pine.BSF.3.91.960827151919.5781A-100000@yoss.canweb.net>
In-Reply-To: <2.2.32.19960827092109.0092166c@mailhost.epoch.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
My original question was:

> >I am having trouble configuring my server for virtual ips.
> >Its 'main' ip is 152.160.182.16 (ifconfig)
> >I do the following
> >ifconfig ed0 inet 152.160.5.1 alias 
> >route add -host 152.160.5.1 localhost
> >The route command fails with 'file exists' error, and I cant ping
> >the server on 152.160.5.1, even from a local machine (same LAN).
> >Now, I have no problem aliasing to ips on same subnet, ie., 
> >aliasing to 152.160.182.224, for example.  So I suspect this is a 
> >problem with netmask on ifconfig, but I cant figure out what it 
> >should be.

On Tue, 27 Aug 1996, Greg Healy wrote:
> shouldn't you try
> ifconfig ed0 alias 152.160.5.1 netmask 255.255.255.255

I tried that too, with same results.  Both of these commands put the 
152.160.5.1 into the routing table (netstat -nr), but I cant ping that 
address.

On Tue, 27 Aug 1996, Mike <flaq@synwork.com> wrote:
> For an IP alias, I use:
>
> ifconfig ed0 xxx.xxx.xxx.xxx netmask 255.255.255.255 alias
>
> I don't think you should have to add a route.

Without the route, I still cannot ping that ip.
Since the syntax of ifconfig command does not appear to make any 
difference, perhaps something else needs to be setup?  The primary ip of 
152.160.182.16 has absolutely no problems.

--Stan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.960827151919.5781A-100000>