*BSD News Article 76405


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!disco.iinet.net.au!wa.news.telstra.net!act.news.telstra.net!nsw.news.telstra.net!asstdc.scgt.oz.au!walkabout!imb
From: imb@walkabout.asstdc.com.au (michael butler)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: named on a virtual IP interface
Date: 19 Aug 1996 07:09:00 GMT
Organization: Assorted C Software
Lines: 28
Message-ID: <4v93uc$n9r@asstdc.scgt.oz.au>
References: <ulfDwA1EJ.KHB@netcom.com>
NNTP-Posting-Host: walkabout.asstdc.com.au
X-Newsreader: TIN [version 1.2 PL2]

Ulf Schmidt (ulf@netcom.com) wrote:
: Hi,
: I am having some problems with FreeBSD (2.1.5R) and virtual IPs.
: I set a virtual IP interface like this:
: ifconfig de0 194.64.170.15 alias netmask 0xffffffff

: Problems: 
: - I can't delete this interface. I studied the man pages for ifconfig,
:   but everytime I try to delete the alias I delete the entiere interface,
:   so I have to reconfigure at the computers terminal.

'ifconfig de0 inet 194.64.170.15 -alias' will remove the alias.

: - I can't find any command which lists all the alias interfaces. 
:   ifconfig -au doesn't show them

'netstat -in' does this.

: - web servers work fine on virtual IPs, but I can't get bind to work on
:   a virtual IP. So I can ping the virtual interface, but a dns request
:   times out.

you need 'route add 194.64.170.15 localhost'

Note that named scans the interfaces at start-up and not afterward (unlike
gated) so the alias must be there before it's started .. else 'ndc restart',

	michael