From owner-freebsd-questions Wed Jul 11 9:42:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ruby.he.net (ruby.he.net [216.218.187.2]) by hub.freebsd.org (Postfix) with ESMTP id E31B137B403 for ; Wed, 11 Jul 2001 09:42:23 -0700 (PDT) (envelope-from bill@wiliweld.com) Received: from corten8.billschoolcraft.com (adsl-63-193-247-201.dsl.snfc21.pacbell.net [63.193.247.201]) by ruby.he.net (8.8.6/8.8.2) with ESMTP id JAA28380 for ; Wed, 11 Jul 2001 09:42:27 -0700 Date: Wed, 11 Jul 2001 09:40:46 -0700 (PDT) From: Bill Schoolcraft X-Sender: bill@corten8.billschoolcraft.com To: freebsd-questions@FreeBSD.ORG Subject: RE: interface aliases and routing In-Reply-To: <20010711111531.S2710-100000@zoraida.natserv.net> Message-ID: System-ID: [en] (I; Linux 2.2.17-21mdk i86pc) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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 ) status: active FR-->> supported media: autoselect 100baseTX 100baseTX FR-->> 10baseT/UTP 10baseT/UTP 100baseTX 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 broadcast netmask 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