Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Feb 1999 13:02:13 -0800
From:      Mike Smith <mike@smith.net.au>
To:        "Chris Aubuchon" <chrisa@commercial-letter.com>
Cc:        "'Keith Woodman'" <keith@lightningweb.com>, "'Yev'" <phate1@ix.netcom.com>, "'Langa Kentane'" <LKentane@mweb.com>, freebsd-stable@FreeBSD.ORG
Subject:   Re: Binding more ip addresses to one card 
Message-ID:  <199902262102.NAA09442@dingo.cdrom.com>
In-Reply-To: Your message of "Fri, 26 Feb 1999 15:04:12 CST." <003d01be61cb$90448ea0$1600000a@earth.commercial-letter.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > -----Original Message-----
> > From: owner-freebsd-stable@FreeBSD.ORG
> > [mailto:owner-freebsd-stable@FreeBSD.ORG]On Behalf Of Keith Woodman
> > Sent: Friday, February 26, 1999 1:50 PM
> > To: Yev
> > Cc: Langa Kentane; freebsd-stable@FreeBSD.ORG
> > Subject: Re: Binding more ip addresses to one card
> > 
> > 
> > ifconfig eth0:1 your.other.ip.here netmask ?.?.?.?  broadcast ?.?.?.?
> > ifconfig eth0:2 your.other.ip.here netmask ?.?.?.?  broadcast ?.?.?.?
>                                              ^^^^^^^
> Actually, for aliases, the netmask should be 255.255.255.255

Only if you already have an address bound to that interface with an 
open netmask.

eg.

ifconfig ed0 1.2.3.4 netmask 255.255.255.0
ifconfig ed0 1.2.3.5 netmask 255.255.255.255 alias
ifconfig ed0 5.5.5.5 netmask 255.255.255.0 alias
ifconfig ed0 5.5.5.8 netmask 255.255.255.255

In each case, the aliases with all-1s netmasks have that netmask 
because the address they're adding is already in a range that's 
attached to the interface.

-- 
\\  Sometimes you're ahead,       \\  Mike Smith
\\  sometimes you're behind.      \\  mike@smith.net.au
\\  The race is long, and in the  \\  msmith@freebsd.org
\\  end it's only with yourself.  \\  msmith@cdrom.com




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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902262102.NAA09442>