Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jul 2001 09:40:46 -0700 (PDT)
From:      Bill Schoolcraft <bill@wiliweld.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   RE: interface aliases and routing
Message-ID:  <Pine.LNX.4.21.0107110932130.7559-100000@corten8.billschoolcraft.com>
In-Reply-To: <20010711111531.S2710-100000@zoraida.natserv.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 11 Jul 2001 it looks like Francisco Reyes composed:

FR-->On Mon, 2 Jul 2001, Lavender, Ben wrote:
FR-->
FR-->> Like this?
FR-->> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
FR-->> 	inet6 fe80::210:5aff:fe28:ca1f%xl0 prefixlen 64 scopeid 0x1
FR-->> 	inet 164.229.1.72 netmask 0xffffffc0 broadcast 164.229.1.127
FR-->> 	inet 164.229.1.74 netmask 0xffffffff broadcast 164.229.1.74
FR-->> 	ether 00:10:5a:28:ca:1f
FR-->> 	media: autoselect (100baseTX <full-duplex>) status: active
FR-->> 	supported media: autoselect 100baseTX <full-duplex> 100baseTX
FR-->> 10baseT/UTP <full-duplex> 10baseT/UTP 100baseTX <hw-loopback>
FR-->>
FR-->> This didn't work.
FR-->
FR-->You wrote previously that you wanted to communicate with different
FR-->subnets. Both of your addresses are in the same subnet, just different IP
FR-->addresses. Is this what you are trying to do?
FR-->
FR-->I have never tried aliasing an interface, but it may be that
FR-->trying to use two IP addresses withing the same subnet (if possible) would have a
FR-->different setup than trying to use two IP addresses on different subnets.
FR-->

Yes you can, I just had to do that for a Solaris customer who was
currently on a class C and needed to start migrating to a class B
on his net.

I setup the solaris box with an alias /etc/hostname.iprb0 and
/etc/hostname.iprb0:1 and then had to append the new network
number and mask in /etc/netmasks where the first line applied to
the first true interface and the second line to the aliased, I got
lucky there for I didn't know how to designate what line in
/etc/netmasks to what interface. 

I did the same on a Linux box with `ifconfig eth0:0 <ipaddr>
broadcast <bcastaddr> netmask <nmaskaddr> up`

And was able to communicate (ssh/telnet) on the new network. I
have NOT done it with FreeBSD though.

-- 
Bill Schoolcraft            
PO Box 210076                 -o)
San Francisco CA 94121         /\
"UNIX, A Way Of Life."        _\_v
http://forwardslashunix.com



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?Pine.LNX.4.21.0107110932130.7559-100000>