*BSD News Article 98971


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.caldera.com!enews.sgi.com!news.sgi.com!howland.erols.net!news-peer.sprintlink.net!news-pull.sprintlink.net!news-in-east.sprintlink.net!news.sprintlink.net!Sprint!207.43.3.4!gryphon.phoenix.net!not-for-mail
From: "Greg" <gking@this.aint.my.address.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: ifconfig alias problem
Date: Fri, 4 Jul 1997 07:05:19 -0600
Organization: Balls.Org
Lines: 37
Message-ID: <5pisjf$l32$1@gryphon.phoenix.net>
References: <5pi65v$3h6@news.interlog.com>
Reply-To: "Greg" <gking@neither.is.this.com>
NNTP-Posting-Host: gking.balls.org
X-Newsreader: Microsoft Outlook Express 4.71.0544.0
X-MimeOLE: Produced By Microsoft MimeOLE Engine V4.71.0544.0
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:43925

Are you supplying the netmask? Also after putting the alias in the rc.conf,
you must also type it into the command-line or reboot for the changes to
take affect.

Here is how my alis line looks :

ifconfig de0 alias xxx.x.xxx.xx netmask 0xffffffff

Greg


>When I add 'alias 192.168.1.10' to the ifconfig_ed0 line in rc.conf,
>ifconfig shows that 192.168.1.10 is the broadcast for the card's real
>address.
>
>Then I tried to configure ed0 without the alias and try to add it after
>with 'ifconfig ed0 alias 192.168.1.10'. It gave me the error 'ifconfig:
>ioctl (SIOCAIFADDR): File exists'. Then the output of 'ifconfig ed0'
>looked the way I thought it should - one line for each address - but I
>couldn't ping 192.168.1.10.
>
>Ideas? Any help is greatly appreciated!
>
>Thanks,
>
>Patrick
>
>
>--
>Patrick McConnell (patrick@interlog.com)
>Finger info: http://www.interlog.com/~patrick/finger
>
>"640k ought to be enough for anybody."
>        -Bill Gates, 1981
>