From owner-freebsd-net Mon Sep 21 16:29:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA11821 for freebsd-net-outgoing; Mon, 21 Sep 1998 16:29:58 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from dns.webwizard.org.mx ([148.245.50.27]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA11588 for ; Mon, 21 Sep 1998 16:28:50 -0700 (PDT) (envelope-from eculp@webwizard.org.mx) Received: from webwizard.org.mx (mexcom.net.mx [207.249.162.140]) by dns.webwizard.org.mx (8.8.8/8.8.7) with ESMTP id SAA08468; Mon, 21 Sep 1998 18:25:29 -0500 (CDT) Message-ID: <3606E068.C6EDB4BB@webwizard.org.mx> Date: Mon, 21 Sep 1998 18:25:28 -0500 From: Edwin Culp X-Mailer: Mozilla 4.5b2 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: "Cambria, Mike" CC: "'freebsd-net@freebsd.org'" Subject: Re: FreeBSD as Router using alias? References: <75ADD7496F0BD211ADC000104B8846CF056977@Rerun.Lucentctc.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org "Cambria, Mike" wrote: > Hi, > > I have a FreeBSD 2.2.6 system which was routing between two subnets, > 10.97.8.0 and 10.97.88.0. Both use the netmask of 255.255.255.0. > > The subnets were each on their own physical LAN segments. RIP worked > fine for this small network. I use routed -s (and have also used gated > just to play with it.) > > Now, I lost one of the physical subnets. I physically have both > 10.97.8.0 and 10.97.88.0 on the same physical segment. I've modified > the configuration to use an alias. Now I can't seem to get routed (or > gated) propagate routing information for the subnet configured via the > alias. > > rc.conf was: > > ifconfig_vx0="inet 10.97.8.0 netmask 255.255.255.0" > ifconfig_fxp0="inet 10.97.88.0 netmask 255.255.255.0" > > now: > > ifconfig_vx0="inet 10.97.8.0 netmask 255.255.255.0" > ifconfig_vx0_alias0="10.97.88.0 netmask 255.255.255.0" I've been doing it for about six months because it works so well that I have been lazy to install the replacement ethernet card :-) Last night I added a third network. Now I think I'll change it, but it's working fine. I had a problem with ifconfig_if0_alias, originally and I am bringing them up with a seperate script that is just ifconfig vx0 inet 10.97.8.0 netmask 255.255.255.224 alias ifconfig vx0 inet 10.97.88.0 netmask 255.255.255.0 alias I use this example because one is a /27 subnet and the other is a class C. Should work fine. This machine is a gateway between four networks and the internet so I haven't even added static routes:-) ed > > > I also tried using a netmask of 255.255.255.255 but 1) this doesn't work > either and 2) I don't believe it is what I need anyway. I do not want > another host entry on the same subnet, I want to "multinet" two subnet > networks on the same physical Ethernet and route between subnets. > > Is this supposed to even work (i.e. is multinetting even supported in > FreeBSD)? > > If so, is anyone else doing it and can you suggest what I might be doing > wrong? > > Thanks, > MikeC > > Michael C. Cambria Lucent Technologies > Member of Technical Staff Bell Labs Innovations > Voice: (978) 287 - 2807 300 Baker Avenue > Fax: (978) 287 - 2810 Concord, Massachusetts 01742 > Internet: mcambria@lucent.com > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message