Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Jun 2000 12:53:43 -0500
From:      "John Brooks" <john@day-light.com>
To:        <keith@mail.telestream.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   RE: HELP ifconfig -alias 
Message-ID:  <000c01bfcf17$0188c040$0b00a8c0@dle>
In-Reply-To: <Pine.LNX.4.10.10006051034060.19640-100000@mail.telestream.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Let me try this again, (sorry about the line wraps in the last msg).
Here's a cut/paste from my rc.conf. At least this seems to work for me or
then again maybe I just don't understand what you are asking. I've changed
my IP's to phony values. I have 128 IP addresses in a single NIC card. The
comments are just so that I know which acct that IP is pointed at. Hope
that makes it a little clearer.

network_interfaces="fxp0 lo0"		#List of interfaces
ifconfig_lo0="inet 127.0.0.1"		#Default loopback
ifconfig_fxp0="inet 63.169.99.2 netmask 255.255.255.128"	#dle
ifconfig_fxp0_alias0="inet 63.169.99.3 netmask 255.255.255.128" #vcf
ifconfig_fxp0_alias1="inet 63.169.99.4 netmask 255.255.255.128" #bns
ifconfig_fxp0_alias2="inet 63.169.99.5 netmask 255.255.255.128" #abc
ifconfig_fxp0_alias3="inet 63.169.99.6 netmask 255.255.255.128" #def
etc...

John


> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of
> keith@mail.telestream.com
> Sent: Monday, June 05, 2000 12:36 PM
> To: John Brooks
> Cc: freebsd-questions@FreeBSD.ORG
> Subject: RE: HELP ifconfig -alias
>
>
> Didn't work. Why would you suggest putting it in the rc.conf
> like that? I
> mean calling it xl0_alias5    then commenting it on the end
> of the line as
> "# first" ?
> Maybe I've done something wrong. Also, aren't you supposed to have an
> netmask of 255.255.255.255 for an alias?
>
> Keith
>
> =================================
> Keith W.
>
> At the helm <for better or worse>
> =================================
>
>
> On Mon, 5 Jun 2000, John Brooks wrote:
>
> > try something like this in your rc.conf:
> >
> > ifconfig_xl0_alias5="inet 63.169.99.15 netmask
> 255.255.255.0" # first
> > alias
> > ifconfig_xl0_alias6="inet 63.169.99.15 netmask
> 255.255.255.0" # second
> > alias
> > ifconfig_xl0_alias7="inet 63.169.99.15 netmask
> 255.255.255.0" # third
> > alias
> > etc...
> >
> > John
> >
> > >
> > >
> > > I've tried all morning to alias an IP on the nic of a
> machine and have
> > > done it the way I've always done it. For some reson it won't
> > > work though.
> > > Does anyone have a clue as to why I would get this
> > >
> > > # ifconfig xl0 inet 63.169.99.15 -alias
> > > ifconfig: ioctl (SIOCDIFADDR): Can't assign requested address
> > > #
> > >
> > > I'm at my whits end here.
> > >
> > > Thank  you.
> > >
> > > Keith
> > >
> >
> >
> >
> >
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> >
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
>




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000c01bfcf17$0188c040$0b00a8c0>