Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Oct 1996 01:33:44 -0300 (EST)
From:      Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br>
To:        jkh@time.cdrom.com (Jordan K. Hubbard)
Cc:        sameer@c2.net, freebsd-questions@freebsd.org, dillon@best.com
Subject:   Re: ip aliases entire cidr blocks
Message-ID:  <199610020433.BAA03119@mailhost.coppe.ufrj.br>
In-Reply-To: <3656.844222127@time.cdrom.com> from "Jordan K. Hubbard" at "Oct 1, 96 07:08:47 pm"

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
#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



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?199610020433.BAA03119>