Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 1996 06:17:36 -0500 (CDT)
From:      SysAdmin <flaq@synwork.com>
To:        Anthony Fleisher <fleisher@mind.net>
Cc:        us@microtronic.de, questions@freebsd.org
Subject:   Re: virtual IPs - more specific question
Message-ID:  <Pine.BSI.3.94.961002061556.24971A-100000@synwork.com>
In-Reply-To: <2.2.32.19961001234349.00a05944@mind.net>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Tue, 1 Oct 1996, Anthony Fleisher wrote:

> At 12:32 PM 8/17/96 +0200, you wrote:
> >Hi,
> >I now know that a named works on a virtual IP. At least it does under
> >Linux if I configure the interface as follows (on Linux 2.0.7):
> >/sbin/ifconfig eth0:0 x.x.x.x netmask 255.255.255.192 broadcast 194.64.170.63
> >/sbin/route add -host 194.64.170.41 dev eth0:0
> >
> >Unfortunatly, I can't get this IP aliasing to work under FreeBSD. If I try
> >to set an alias w/ FreeBSD and specify a netmask other than 0xffffffff, I
> >get:
> ># ifconfig de0 194.64.170.16 alias netmask 0xffffffc0
> >ifconfig: ioctl (SIOCAIFADDR): File exists
> ># ifconfig de0 194.64.170.16 alias netmask 0xffffffff
> >works fine, but then a named won't respond on that interface.
> >
> I believe that you need to kill named and restart it AFTER the interface is
> aliased.
> We had named setup on a box with several aliases, and it responded to
> requests on all of them.

Actually, alias IP's must have a netmask of 255.255.255.255

So use ifconfig de0 194.64.170.16 netmask 255.255.255.255 alias

Mike

~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
    Syn-Work Media, Inc.   | WWW Development & Hosting | Life Safety    
       http://www.synwork.com | Systems Integration       | CCTV           
   mike@synwork.com       | Voice/Data/Fiber          | Access Control 
     Flaq on IRC            | Dukane Distributor        | BICSI/RCDD     
                   :|:|:|: Powered By FreeBSD :|:|:|:
		     Turning PC's Into Workstations
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.961002061556.24971A-100000>