From owner-freebsd-questions Tue Oct 1 21:34:25 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA01108 for questions-outgoing; Tue, 1 Oct 1996 21:34:25 -0700 (PDT) Received: from mailhost.coppe.ufrj.br (root@cisigw.coppe.ufrj.br [146.164.2.31]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA01103 for ; Tue, 1 Oct 1996 21:34:20 -0700 (PDT) Received: (from jonny@localhost) by mailhost.coppe.ufrj.br (8.7.5/8.7.3) id BAA03119; Wed, 2 Oct 1996 01:33:44 -0300 (EST) From: Joao Carlos Mendes Luis Message-Id: <199610020433.BAA03119@mailhost.coppe.ufrj.br> Subject: Re: ip aliases entire cidr blocks To: jkh@time.cdrom.com (Jordan K. Hubbard) Date: Wed, 2 Oct 1996 01:33:44 -0300 (EST) Cc: sameer@c2.net, freebsd-questions@freebsd.org, dillon@best.com In-Reply-To: <3656.844222127@time.cdrom.com> from "Jordan K. Hubbard" at "Oct 1, 96 07:08:47 pm" X-Mailer: ELM [version 2.4ME+ PL14 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk #define quoting(Jordan K. Hubbard) // > I'd like to have my freebsd box reply to all addresses in a // > CIDR block. Is there something I can do so that: // > // > ifconfig de0 alias 208.139.36.32 255.255.255.240 I'm having problems with this kind of interface alias. Although most of them are stetic, I'd like to make the alias to the lo0 interface and let RIP announce the route for me. Also, the aliased IPs would be in another subnetwork. Is there any foreseeable problem in this approach ? ifconfig de0 inet 146.164.2.31 netmask 255.255.255.192 ifconfig de0 inet 146.164.63.4 netmask 255.255.255.192 ifconfig lo0 inet 127.0.0.1 # These are for a virtual subnet. ifconfig lo0 inet 146.164.63.193 netmask 255.255.255.255 alias ifconfig lo0 inet 146.164.63.194 netmask 255.255.255.255 alias ... To start plauing: I could not make routed export the routes for those addresses, but gated solved this problem using static routes entries. My system is currently a 2.1.0, but I plan to upgrade to 2.1.5 in the very near future. Jonny -- Joao Carlos Mendes Luis jonny@gta.ufrj.br +55 21 290-4698 ( Job ) jonny@cisi.coppe.ufrj.br Network Manager UFRJ/COPPE/CISI Universidade Federal do Rio de Janeiro